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