diff --git a/src/features/wallet/wallet-logs-block.tsx b/src/features/wallet/wallet-logs-block.tsx index 9e8b209..4a8a39e 100644 --- a/src/features/wallet/wallet-logs-block.tsx +++ b/src/features/wallet/wallet-logs-block.tsx @@ -24,7 +24,8 @@ export const WALLET_FLOW_FILTERS: { value: string; labelKey: string }[] = [ export const CREDIT_FLOW_FILTERS: { value: string; labelKey: string }[] = [ { value: "", labelKey: "wallet.creditFlow.all" }, { value: "bet", labelKey: "wallet.creditFlow.bet" }, - { value: "credit_release", labelKey: "wallet.creditFlow.credit_release" }, + { value: "game_settlement", labelKey: "wallet.creditFlow.game_settlement" }, + { value: "rebate", labelKey: "wallet.creditFlow.rebate" }, { value: "bill_settlement", labelKey: "wallet.creditFlow.bill_settlement" }, ]; @@ -37,7 +38,9 @@ const FLOW_LABEL_FALLBACKS: Record = { "wallet.flow.refund": "退款", "wallet.flow.reversal": "冲正", "wallet.creditFlow.all": "全部", - "wallet.creditFlow.bet": "占用额度", + "wallet.creditFlow.bet": "下注冻结", + "wallet.creditFlow.game_settlement": "开奖结算", + "wallet.creditFlow.rebate": "账期回水", "wallet.creditFlow.credit_release": "释额", "wallet.creditFlow.bill_settlement": "账期收付", "wallet.creditFlow.win_credit": "中奖释额", @@ -59,7 +62,14 @@ function txnStatusLabel( status: string, t: (key: string, options?: { defaultValue?: string }) => string, ): string { - return t(`wallet.txnStatus.${status}`, { defaultValue: status }); + const fallback: Record = { + accrued: "已计提", + in_bill: "已入账单", + settled: "已结清", + reversed: "已冲正", + }; + + return t(`wallet.txnStatus.${status}`, { defaultValue: fallback[status] ?? status }); } type WalletLogsBlockProps = { @@ -125,6 +135,7 @@ export function WalletLogsBlock({ ? "h-8 rounded-full bg-[#07459f] px-3 text-xs font-bold text-white hover:bg-[#063b88]" : "h-8 rounded-full border-[#dce7f7] bg-white px-3 text-xs font-bold text-[#32518d] hover:bg-[#f8fbff]" } + disabled={logsLoading && filter === f.value} onClick={() => onFilterChange(f.value)} > {f.label} @@ -142,7 +153,7 @@ export function WalletLogsBlock({

{t("wallet.totalRecords", { total: logs.total })}

-