fix: 首页功能图标改回emoji,规避Vite动态class tree-shake问题
This commit is contained in:
@@ -34,12 +34,12 @@ const checkinDays = computed(() => {
|
||||
})
|
||||
|
||||
const features = [
|
||||
{ label: '月子餐', bg: '#fff0f4', color: '#f43f5e', icon: 'fire-o', path: '/meal' },
|
||||
{ label: '护理记录', bg: '#fffbeb', color: '#f59e0b', icon: 'notes-o', path: '/care/records' },
|
||||
{ label: '健康档案', bg: '#f0fdf4', color: '#10b981', icon: 'records-o', path: '/grow' },
|
||||
{ label: '服务包', bg: '#eff6ff', color: '#3b82f6', icon: 'gift-o', path: '/service/orders' },
|
||||
{ label: '我的月嫂', bg: '#f5f3ff', color: '#8b5cf6', icon: 'manager-o', path: '/nanny' },
|
||||
{ label: '账户余额', bg: '#fff7ed', color: '#f97316', icon: 'balance-o', path: '/account' },
|
||||
{ label: '月子餐', bg: '#fff0f4', icon: '🍲', path: '/meal' },
|
||||
{ label: '护理记录', bg: '#fffbeb', icon: '📋', path: '/care/records' },
|
||||
{ label: '健康档案', bg: '#f0fdf4', icon: '💊', path: '/grow' },
|
||||
{ label: '服务包', bg: '#eff6ff', icon: '🛁', path: '/service/orders' },
|
||||
{ label: '我的月嫂', bg: '#f5f3ff', icon: '👩', path: '/nanny' },
|
||||
{ label: '账户余额', bg: '#fff7ed', icon: '💳', path: '/account' },
|
||||
]
|
||||
|
||||
const today = new Date().toLocaleDateString('zh-CN', { year: 'numeric', month: 'long', day: 'numeric' })
|
||||
@@ -95,7 +95,7 @@ const today = new Date().toLocaleDateString('zh-CN', { year: 'numeric', month: '
|
||||
@click="router.push(f.path)"
|
||||
>
|
||||
<div class="feat-circle" :style="{ background: f.bg }">
|
||||
<i :class="'van-icon van-icon-' + f.icon" :style="{ fontSize: '26px', color: f.color }" />
|
||||
<span class="feat-icon">{{ f.icon }}</span>
|
||||
</div>
|
||||
<span class="feat-label">{{ f.label }}</span>
|
||||
</div>
|
||||
@@ -258,6 +258,7 @@ const today = new Date().toLocaleDateString('zh-CN', { year: 'numeric', month: '
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
|
||||
}
|
||||
.feat-icon { font-size: 24px; line-height: 1; }
|
||||
.feat-label { font-size: 12px; font-weight: 600; color: #374151; text-align: center; }
|
||||
|
||||
/* ── Schedule Card ── */
|
||||
|
||||
Reference in New Issue
Block a user