fix(topup): add currency symbol to amounts in RechargeCard

- What: 在充值卡显示的实付与节省金额前加入美元符号 `$`。
- Why: 满足 issue #1881,要求在金额前标注货币单位以减少歧义。
- Files: src/components/topup/RechargeCard.jsx
- Note: 这是局部修复。建议后续实现统一的 currency formatter(Intl.NumberFormat)并从后端/配置读取货币代码以支持本地化与多币种。

Closes #1881
This commit is contained in:
キュビビイ
2025-10-02 12:25:07 +08:00
parent 2938246f2e
commit 2290acc86c

View File

@@ -368,8 +368,8 @@ const RechargeCard = ({
fontSize: '12px',
margin: '4px 0'
}}>
{t('实付')} {actualPay.toFixed(2)}
{hasDiscount ? `${t('节省')} ${save.toFixed(2)}` : `${t('节省')} 0.00`}
{t('实付')} ${actualPay.toFixed(2)}
{hasDiscount ? `${t('节省')} $${save.toFixed(2)}` : `${t('节省')} $0.00`}
</div>
</div>
</Card>