feat:余额充值溢出和显示修复
This commit is contained in:
@@ -28,12 +28,12 @@ const selectedAmount = ref<number | null>(null);
|
||||
const isCustomMode = ref<boolean>(false);
|
||||
|
||||
const rechargeOptions: Ref<RechargeOption[]> = ref([
|
||||
{ amount: 10, displayAmount: `10${t('page.carddata.money')}`, price: 10.00 },
|
||||
{ amount: 20, displayAmount: `20${t('page.carddata.money')}`, price: 20.00 },
|
||||
{ amount: 30, displayAmount: `30${t('page.carddata.money')}`, price: 30.00 },
|
||||
{ amount: 50, displayAmount: `50${t('page.carddata.money')}`, price: 50.00 },
|
||||
{ amount: 100, displayAmount: `100${t('page.carddata.money')}`, price: 100.00 },
|
||||
{ amount: 200, displayAmount: `200${t('page.carddata.money')}`, price: 200.00 },
|
||||
{ amount: 10, displayAmount: `${t('page.carddata.money')}10`, price: 10.00 },
|
||||
{ amount: 20, displayAmount: `${t('page.carddata.money')}20`, price: 20.00 },
|
||||
{ amount: 30, displayAmount: `${t('page.carddata.money')}30`, price: 30.00 },
|
||||
{ amount: 50, displayAmount: `${t('page.carddata.money')}50`, price: 50.00 },
|
||||
{ amount: 100, displayAmount: `${t('page.carddata.money')}100`, price: 100.00 },
|
||||
{ amount: 200, displayAmount: `${t('page.carddata.money')}200`, price: 200.00 },
|
||||
]);
|
||||
|
||||
const paymentAmount = computed(() => {
|
||||
@@ -167,7 +167,7 @@ const handlePaymentConfirm = async (paymentMethod: 'alipay' | 'wxpay') => {
|
||||
@click="handleOptionSelect(option.amount)"
|
||||
>
|
||||
<div class="text-lg font-medium">{{ option.displayAmount }}</div>
|
||||
<div class="text-sm text-gray-500">{{ t('page.carddata.price') }} {{ option.price.toFixed(2) }}</div>
|
||||
<div class="text-sm text-gray-500">{{ option.price.toFixed(2) }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 自定义充选项 -->
|
||||
|
||||
Reference in New Issue
Block a user