From 7a92c0d43039654f3598ce632987bfc66d335113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Wed, 8 Apr 2026 12:41:09 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.53=20-=20=E9=A6=96=E9=A1=B5=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9A=E5=8E=BB=E6=8E=89=E5=9B=BE=E6=A0=87+?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E4=BF=9D=E7=95=991=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Home.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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'} > -
{card.icon}
+
{card.value}
{card.label}