fix: remove dashboard amount wrappers

This commit is contained in:
hectorzhao
2026-08-28 10:27:31 +08:00
parent 171c7d38e8
commit 0b84370270
3 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -4942,7 +4942,7 @@ npm run verify:phase8
| 用例ID | 场景 | 预期 |
| --- | --- | --- |
| TC-UI-REVIEW-001 | 查看客户端登录、工作台和账户余额 | 登录页存在“返回官网”;工作台四张指标卡的数字使用同一字体、字号、字重和颜色账户状态不显示“余额水位”;账户余额页金额为继承系统字体、常规字重的普通大号黑字,顶部仅显示左侧图标和“账户余额”标题;客户端右上角无待审核任务按钮 |
| TC-UI-REVIEW-001 | 查看客户端登录、工作台和账户余额 | 登录页存在“返回官网”;工作台四张指标卡的数字均为`.metric-card > strong`直接文本,不使用金额专用类或`MoneyText`包装,并使用同一字体、字号、字重和颜色账户状态不显示“余额水位”;账户余额页金额为继承系统字体、常规字重的普通大号黑字,顶部仅显示左侧图标和“账户余额”标题;客户端右上角无待审核任务按钮 |
| TC-UI-REVIEW-002 | 首次打开批量任务、发送详情和上行短信 | 三个日期区间均为北京时间近7天(含当天) |
| TC-UI-REVIEW-003 | 查看不同状态的短信发送记录和回执 | 用户态状态为中文;未知协议值显示“状态未知” |
| TC-UI-REVIEW-004 | 对比两端同一应用的CMPP状态 | 两端均按已连接、已断开、未开通显示 |
+6 -6
View File
@@ -10,7 +10,7 @@ import {
WalletCards,
} from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { Button, Chart, MoneyText, Table, Tag, type TableColumn } from '@/components/ui';
import { Button, Chart, Table, Tag, type TableColumn } from '@/components/ui';
import { clientApi, type DashboardResponse } from '@/api/adminApi';
import { createLineOption, createPieOption } from '@/theme/chartOptions';
import { formatDateTime } from '@/utils/dateTime';
@@ -97,8 +97,8 @@ export function ClientHome() {
<div className="dashboard-grid dashboard-grid--four">
<div className="surface metric-card metric-card--featured">
<span></span>
<strong><MoneyText>¥{formatAmount(availableBalance)}</MoneyText></strong>
<small> <MoneyText>¥{formatCents(account?.balanceCents)}</MoneyText></small>
<strong>¥{formatAmount(availableBalance)}</strong>
<small> ¥{formatCents(account?.balanceCents)}</small>
</div>
<div className="surface metric-card">
<span></span>
@@ -107,12 +107,12 @@ export function ClientHome() {
</div>
<div className="surface metric-card">
<span></span>
<strong><MoneyText>¥{formatCents(dashboard?.today.spendCents)}</MoneyText></strong>
<strong>¥{formatCents(dashboard?.today.spendCents)}</strong>
<small></small>
</div>
<div className="surface metric-card">
<span></span>
<strong><MoneyText>¥{formatCents(todayRefundCents)}</MoneyText></strong>
<strong>¥{formatCents(todayRefundCents)}</strong>
<small>退</small>
</div>
</div>
@@ -171,7 +171,7 @@ export function ClientHome() {
</div>
<div>
<span></span>
<strong>{latestRecharge ? <MoneyText>¥{formatCents(latestRecharge.amountCents)}</MoneyText> : '暂无充值'}</strong>
<strong>{latestRecharge ? `¥${formatCents(latestRecharge.amountCents)}` : '暂无充值'}</strong>
</div>
</div>
</div>
-4
View File
@@ -157,10 +157,6 @@
color: var(--color-text-muted);
}
.metric-card--featured strong {
color: var(--color-text-strong);
}
.metric-card span {
color: var(--color-text-muted);
font-size: var(--font-size-sm);