diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index 33f5eac..827b377 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -91,12 +91,12 @@ export default function Home() { } const statCards = [ - { label: '藏品数', value: stats.totalCount, color: '#3b82f6', icon: '📦' }, - { label: '总成本', value: formatMoney(stats.totalCost) + '万', color: '#22c55e', icon: '💰' }, - { label: '总收入', value: formatMoney(stats.totalRevenue) + '万', color: '#06b6d4', icon: '📈' }, - { label: '评级数', value: stats.gradedCount, color: '#8b5cf6', icon: '⭐' }, - { label: '预期利润', value: formatMoney(stats.expectedProfit) + '万', color: stats.expectedProfit >= 0 ? '#f59e0b' : '#ef4444', icon: '🎯' }, - { label: '总利润', value: formatMoney(stats.totalProfit) + '万', color: stats.totalProfit >= 0 ? '#10b981' : '#f43f5e', icon: '💵' } + { label: '藏品数', value: stats.totalCount, color: '#3b82f6' }, + { label: '总成本', value: formatMoney(stats.totalCost) + '万', color: '#22c55e' }, + { label: '总收入', value: formatMoney(stats.totalRevenue) + '万', color: '#06b6d4' }, + { label: '评级数', value: stats.gradedCount, color: '#8b5cf6' }, + { label: '预期利润', value: formatMoney(stats.expectedProfit) + '万', color: stats.expectedProfit >= 0 ? '#f59e0b' : '#ef4444' }, + { label: '总利润', value: formatMoney(stats.totalProfit) + '万', color: stats.totalProfit >= 0 ? '#10b981' : '#f43f5e' } ] return ( @@ -151,7 +151,7 @@ export default function Home() { onMouseOut={e => { e.currentTarget.style.transform = 'translateY(0)' }} onClick={() => window.location.hash = '#/stats'} > -