feat:余额充值中英适配
This commit is contained in:
@@ -529,7 +529,7 @@ const local: any = {
|
|||||||
uplimit:'Up rate',
|
uplimit:'Up rate',
|
||||||
downlimit:'Down rate',
|
downlimit:'Down rate',
|
||||||
useful:' validity',
|
useful:' validity',
|
||||||
device:'device',
|
device:'Device',
|
||||||
upto:'Up to ',
|
upto:'Up to ',
|
||||||
canbe:' device can be online simultaneously',
|
canbe:' device can be online simultaneously',
|
||||||
hour:'Hour',
|
hour:'Hour',
|
||||||
@@ -542,10 +542,12 @@ const local: any = {
|
|||||||
noPackages:'No packages'
|
noPackages:'No packages'
|
||||||
},
|
},
|
||||||
carddata:{
|
carddata:{
|
||||||
email:'Email',
|
|
||||||
Rechargeamount:'Recharge amount',
|
Rechargeamount:'Recharge amount',
|
||||||
Customization:'Customize',
|
Customization:'Customize',
|
||||||
price:'price',
|
price:'price',
|
||||||
|
money:' yuan',
|
||||||
|
truemoney:'Please select or enter the correct recharge amount',
|
||||||
|
falseorder:'Failed to create an order, please try again!',
|
||||||
setprice:'Please enter the amount',
|
setprice:'Please enter the amount',
|
||||||
Remainingbalance:'Remaining balance',
|
Remainingbalance:'Remaining balance',
|
||||||
Theamountreceived:'The amount received',
|
Theamountreceived:'The amount received',
|
||||||
|
|||||||
@@ -544,11 +544,13 @@ const local:any = {
|
|||||||
noPackages:'暂无套餐'
|
noPackages:'暂无套餐'
|
||||||
},
|
},
|
||||||
carddata:{
|
carddata:{
|
||||||
email:'邮箱地址',
|
|
||||||
Rechargeamount:'充值金额',
|
Rechargeamount:'充值金额',
|
||||||
|
money:'元',
|
||||||
Customization:'自定义',
|
Customization:'自定义',
|
||||||
price:'售价',
|
price:'售价',
|
||||||
setprice:'请输入金额',
|
setprice:'请输入金额',
|
||||||
|
truemoney:'请选择或输入正确的充值金额',
|
||||||
|
falseorder:'创建订单失败,请重试!',
|
||||||
Remainingbalance:'话费余额',
|
Remainingbalance:'话费余额',
|
||||||
Theamountreceived:'到账金额',
|
Theamountreceived:'到账金额',
|
||||||
pay:'立即支付',
|
pay:'立即支付',
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ const selectedAmount = ref<number | null>(null);
|
|||||||
const isCustomMode = ref<boolean>(false);
|
const isCustomMode = ref<boolean>(false);
|
||||||
|
|
||||||
const rechargeOptions: Ref<RechargeOption[]> = ref([
|
const rechargeOptions: Ref<RechargeOption[]> = ref([
|
||||||
{ amount: 10, displayAmount: '10元', price: 10.00 },
|
{ amount: 10, displayAmount: `10${t('page.carddata.money')}`, price: 10.00 },
|
||||||
{ amount: 20, displayAmount: '20元', price: 20.00 },
|
{ amount: 20, displayAmount: `20${t('page.carddata.money')}`, price: 20.00 },
|
||||||
{ amount: 30, displayAmount: '30元', price: 30.00 },
|
{ amount: 30, displayAmount: `30${t('page.carddata.money')}`, price: 30.00 },
|
||||||
{ amount: 50, displayAmount: '50元', price: 50.00 },
|
{ amount: 50, displayAmount: `50${t('page.carddata.money')}`, price: 50.00 },
|
||||||
{ amount: 100, displayAmount: '100元', price: 100.00 },
|
{ amount: 100, displayAmount: `100${t('page.carddata.money')}`, price: 100.00 },
|
||||||
{ amount: 200, displayAmount: '200元', price: 200.00 },
|
{ amount: 200, displayAmount: `200${t('page.carddata.money')}`, price: 200.00 },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const paymentAmount = computed(() => {
|
const paymentAmount = computed(() => {
|
||||||
@@ -95,7 +95,7 @@ const currentOrderInfo = ref({
|
|||||||
const handleRecharge = async () => {
|
const handleRecharge = async () => {
|
||||||
// 验证金额
|
// 验证金额
|
||||||
if (!paymentAmount.value || paymentAmount.value <= 0) {
|
if (!paymentAmount.value || paymentAmount.value <= 0) {
|
||||||
message.error('请选择或输入正确的充值金额');
|
message.error(t('page.carddata.truemoney'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ const handleRecharge = async () => {
|
|||||||
};
|
};
|
||||||
showOrderModal.value = true;
|
showOrderModal.value = true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
message.error('创建订单失败,请重试!');
|
message.error(t('page.carddata.falseorder'));
|
||||||
console.error('Failed to create order:', error);
|
console.error('Failed to create order:', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user