fix: 背景改为浅白色,图标改为更清晰的样式,卡片改为浅色系
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-28 12:59:02 +00:00
parent ef4dceba1b
commit 4539be1559
2 changed files with 21 additions and 16 deletions

View File

@@ -1,33 +1,35 @@
<template> <template>
<text class="icon" :class="'icon-' + name" :style="iconStyle">{{ iconChar }}</text> <view class="icon-wrapper" :style="iconStyle">
<text class="icon-text">{{ iconChar }}</text>
</view>
</template> </template>
<script> <script>
// 简单图标映射
const icons = { const icons = {
home: '🏠', home: '🏠',
user: '👤', user: '👤',
chart: '📊', chart: '📊',
product: '📦', product: '📦',
add: '+', add: '',
search: '🔍', search: '🔍',
order: '📋', order: '📋',
edit: '', edit: '✏️',
check: '✓', check: '✓',
close: '✕', close: '✕',
stock: '🏭', stock: '🏭',
alert: '⚡', alert: '⚡',
in: '', in: '⬇️',
out: '', out: '⬆️',
customer: '👥', customer: '👥',
money: '💳', money: '💰',
logout: '↩', logout: '↩',
right: '', right: '',
left: '', left: '',
down: '', down: '',
lock: '🔐', lock: '🔐',
filter: '▼',
calendar: '📅', calendar: '📅',
setting: '⚙', setting: '⚙',
wechat: '💬', wechat: '💬',
cash: '💵', cash: '💵',
alipay: '💙', alipay: '💙',
@@ -57,10 +59,12 @@ export default {
</script> </script>
<style> <style>
.icon { .icon-wrapper {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; display: flex;
display: inline-block; align-items: center;
text-align: center; justify-content: center;
}
.icon-text {
line-height: 1; line-height: 1;
} }
</style> </style>

View File

@@ -276,7 +276,7 @@ export default {
<style> <style>
.page { .page {
min-height: 100vh; min-height: 100vh;
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); background: #f5f5f5;
padding: 30rpx; padding: 30rpx;
} }
@@ -424,7 +424,7 @@ export default {
.menu-card { .menu-card {
width: 18%; width: 18%;
aspect-ratio: 1; aspect-ratio: 1;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: linear-gradient(135deg, #e0e5ec 0%, #ffffff 100%);
border-radius: 12rpx; border-radius: 12rpx;
margin: 8rpx; margin: 8rpx;
display: flex; display: flex;
@@ -432,6 +432,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 6rpx; padding: 6rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
} }
.menu-card:active { .menu-card:active {