更新:配置国际语言
This commit is contained in:
@@ -211,7 +211,9 @@
|
|||||||
"yearCard": "Yearly",
|
"yearCard": "Yearly",
|
||||||
"days": "days",
|
"days": "days",
|
||||||
"selectPackage": "Please select a package",
|
"selectPackage": "Please select a package",
|
||||||
"consumptionRecord": "Consumption record"
|
"consumptionRecord": "Consumption record",
|
||||||
|
"returnMine": "I'm about to return to my page"
|
||||||
|
|
||||||
},
|
},
|
||||||
"book": {
|
"book": {
|
||||||
"title": "My Books",
|
"title": "My Books",
|
||||||
|
|||||||
@@ -212,7 +212,8 @@
|
|||||||
"yearCard": "年卡",
|
"yearCard": "年卡",
|
||||||
"days": "天",
|
"days": "天",
|
||||||
"selectPackage": "请选择套餐",
|
"selectPackage": "请选择套餐",
|
||||||
"consumptionRecord": "消费记录"
|
"consumptionRecord": "消费记录",
|
||||||
|
"returnMine": "即将返回我的页面"
|
||||||
},
|
},
|
||||||
"book": {
|
"book": {
|
||||||
"title": "我的书单",
|
"title": "我的书单",
|
||||||
|
|||||||
@@ -425,7 +425,7 @@
|
|||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
color: #fffbf6;
|
color: #fffbf6;
|
||||||
padding: 10rpx 32rpx;
|
padding: 10rpx 32rpx;
|
||||||
background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 200%);
|
background: #007bff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assets {
|
.assets {
|
||||||
|
|||||||
@@ -182,7 +182,7 @@
|
|||||||
const res = await getPlaceOrder(data)
|
const res = await getPlaceOrder(data)
|
||||||
orderSn.value = res.orderSn
|
orderSn.value = res.orderSn
|
||||||
console.log(orderSn.value, '获取订单号');
|
console.log(orderSn.value, '获取订单号');
|
||||||
uni.showLoading({ title: '生成订单中...' })
|
uni.showLoading({ title: t('order.orderCreating') })
|
||||||
getGooglePay()
|
getGooglePay()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('获取订单号失败', error)
|
console.error('获取订单号失败', error)
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
} else {
|
} else {
|
||||||
console.log('查询失败', e);
|
console.log('查询失败', e);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请求失败,请检查您的网络',
|
title: t('global.networkConnectionError'),
|
||||||
icon: 'error'
|
icon: 'error'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
console.log(e, 'payAll方法成功返参');
|
console.log(e, 'payAll方法成功返参');
|
||||||
getConsume()
|
getConsume()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: '支付失败', icon: 'error' })
|
uni.showToast({ title: t('user.paymentFailed'), icon: 'error' })
|
||||||
console.log(e, 'e');
|
console.log(e, 'e');
|
||||||
// 支付失败
|
// 支付失败
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
(e : any) => {
|
(e : any) => {
|
||||||
if (e.code == 0) {
|
if (e.code == 0) {
|
||||||
console.log(e, '确认交易成功');
|
console.log(e, '确认交易成功');
|
||||||
uni.showToast({ title: '即将返回我的页面', icon: 'none' })
|
uni.showToast({ title: t('user.returnMine'), icon: 'none' })
|
||||||
// 确认成功
|
// 确认成功
|
||||||
googleVerify()
|
googleVerify()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user