{t('充值数量')}:
{renderQuotaWithAmount(topUpCount)}
{t('实付金额')}:
{amountLoading ? (
) : (
{renderAmount()}
{hasDiscount && (
{Math.round(discountRate * 100)}%
)}
)}
{hasDiscount && !amountLoading && (
<>
{t('原价')}:
{`${originalAmount.toFixed(2)} ${t('元')}`}
{t('优惠')}:
{`- ${discountAmount.toFixed(2)} ${t('元')}`}
>
)}
{t('支付方式')}:
{(() => {
const payMethod = payMethods.find(
(method) => method.type === payWay,
);
if (payMethod) {
return (
<>
{payMethod.type === 'alipay' ? (
) : payMethod.type === 'wxpay' ? (
) : payMethod.type === 'stripe' ? (
) : (
)}
{payMethod.name}
>
);
} else {
// 默认充值方式
if (payWay === 'alipay') {
return (
<>
{t('支付宝')}
>
);
} else if (payWay === 'stripe') {
return (
<>
Stripe
>
);
} else {
return (
<>
{t('微信')}
>
);
}
}
})()}