From e3b40259f4953de85ec91f597bd132ef5dfdb029 Mon Sep 17 00:00:00 2001 From: 12975 <1297598740@qq.com> Date: Sun, 1 Feb 2026 18:58:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=B4=A6=E6=88=B7?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E7=BB=84=E4=BB=B6=E5=8F=8A=E6=A0=B8=E5=BF=83?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/account/AccountCard/AccountCard.tsx | 8 +++++++- src/types/index.ts | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/account/AccountCard/AccountCard.tsx b/src/components/account/AccountCard/AccountCard.tsx index 75fdb43..588a302 100644 --- a/src/components/account/AccountCard/AccountCard.tsx +++ b/src/components/account/AccountCard/AccountCard.tsx @@ -136,9 +136,15 @@ export const AccountCard: React.FC = ({ - {formatCurrency(account.balance, account.currency).replace(/[^0-9.,-]/g, '')} + {formatCurrency((account.balance + (account.frozen_balance || 0)), account.currency).replace(/[^0-9.,-]/g, '')} + {(account.frozen_balance || 0) > 0 && ( +
+ 可用: {formatCurrency(account.balance, account.currency)} + 冻结: {formatCurrency(account.frozen_balance || 0, account.currency)} +
+ )}

{account.name}

diff --git a/src/types/index.ts b/src/types/index.ts index 96324c4..60382fa 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -141,6 +141,7 @@ export interface Account { name: string; type: AccountType; balance: number; + frozen_balance?: number; currency: CurrencyCode; icon: string; isCredit: boolean;