mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-01 04:31:47 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user