fix(dashboard): 营收趋势图浮窗改为浅色风格,与 UI 一致

营收趋势分析的柱状图/折线图 Tooltip 此前写死深色背景
(#1F2937 / #1A1A1A),与 Ydisks 蓝色系浅色 UI 不符。
统一为白底 + 浅灰边框 + 软阴影,与分类饼图浮窗一致;
折线图 activeDot 中心由深色改为白色。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ChristandClaude Opus 4.8 committed 2026-06-30 22:36:00 +08:00
1 parent 89be178a02
commit cf109ae6ce
2 files changed
+16 -8

No files matched your search

+15 -7
View File
@@ -424,16 +424,18 @@ const Dashboard: React.FC = () => {
/>
<Tooltip
contentStyle={{
backgroundColor: '#1F2937',
backgroundColor: '#fff',
borderRadius: '16px',
border: 'none',
boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)',
border: '1px solid #e5e7eb',
boxShadow: '0 10px 25px -5px rgba(0, 0, 0, 0.1)',
padding: '12px 16px'
}}
labelStyle={{ color: '#6b7280', fontWeight: 500 }}
itemStyle={{ color: '#0094f7', fontWeight: 600 }}
cursor={{ fill: 'rgba(0, 148, 247, 0.08)' }}
formatter={(value) => {
const num = Number(value);
return `营收: ¥${num.toFixed(2)}`;
return [`¥${num.toFixed(2)}`, '营收'];
}}
/>
<Bar
@@ -474,12 +476,18 @@ const Dashboard: React.FC = () => {
/>
<CartesianGrid vertical={false} stroke="#F3F4F6" strokeDasharray="3 3" />
<Tooltip
contentStyle={{ background: '#1A1A1A', borderRadius: '16px', border: 'none', boxShadow: '0 10px 40px rgba(0,0,0,0.2)' }}
contentStyle={{
backgroundColor: '#fff',
borderRadius: '16px',
border: '1px solid #e5e7eb',
boxShadow: '0 10px 25px -5px rgba(0, 0, 0, 0.1)',
padding: '12px 16px'
}}
labelStyle={{ color: '#6b7280', fontWeight: 500 }}
itemStyle={{ color: '#0094f7', fontWeight: 600 }}
labelStyle={{ color: '#888' }}
cursor={{ stroke: '#0094f7', strokeWidth: 2, strokeDasharray: '4 4' }}
/>
<Area type="monotone" dataKey="amount" stroke="#0094f7" strokeWidth={4} fillOpacity={1} fill="url(#colorAmount)" activeDot={{ r: 8, fill: '#1A1A1A', stroke: "#0094f7", strokeWidth: 2 }} />
<Area type="monotone" dataKey="amount" stroke="#0094f7" strokeWidth={4} fillOpacity={1} fill="url(#colorAmount)" activeDot={{ r: 8, fill: '#fff', stroke: "#0094f7", strokeWidth: 2 }} />
</AreaChart>
</ResponsiveContainer>
)}
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ydisks闲鱼助手 - 自动发货与管家系统</title>
<meta name="description" content="Ydisks闲鱼助手 - 自动回复、自动发货、订单管理、AI智能议价一体化解决方案" />
<script type="module" crossorigin src="/static/assets/index-WNdAs3ij.js"></script>
<script type="module" crossorigin src="/static/assets/index-yhnDCVg7.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-jAhq_csJ.css">
</head>
<body>