i18n: replace hardcoded strings with language translations
批量将项目中多处硬编码的文本替换为多语言翻译条目,统一项目文案管理,提升多语言适配效率,包括导航提示、操作反馈、空状态提示、表单占位符等各类文本内容。
This commit is contained in:
@@ -9,8 +9,8 @@ export default {
|
||||
this.pay();
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '商家已将支付金额调整为' + orderData.pay_money + '元,是否继续支付?',
|
||||
title: this.$lang('common.tip'),
|
||||
content: this.$lang('order.payAmountAdjusted', { amount: orderData.pay_money }),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.pay();
|
||||
@@ -43,8 +43,8 @@ export default {
|
||||
*/
|
||||
orderClose(order_id, callback) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定要关闭该订单吗?',
|
||||
title: this.$lang('common.tip'),
|
||||
content: this.$lang('order.confirmCloseOrder'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
@@ -57,8 +57,7 @@ export default {
|
||||
typeof callback == 'function' && callback();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '当前订单可能存在拼团,维权等操作,' + res.message +
|
||||
'不可以关闭哦!',
|
||||
title: this.$lang('order.cannotCloseOrder', { message: res.message }),
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
@@ -77,8 +76,8 @@ export default {
|
||||
// 如果不在微信小程序中
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定已经收到货物了吗?',
|
||||
title: this.$lang('common.tip'),
|
||||
content: this.$lang('order.confirmReceived'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
@@ -172,8 +171,8 @@ export default {
|
||||
// 如果不在微信小程序中
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定要进行收货吗?',
|
||||
title: this.$lang('common.tip'),
|
||||
content: this.$lang('order.confirmTakeDelivery'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
|
||||
@@ -7,8 +7,8 @@ export default {
|
||||
*/
|
||||
cancleRefund(order_goods_id, callback) {
|
||||
uni.showModal({
|
||||
content: '撤销之后本次申请将会关闭,如后续仍有问题可再次发起申请。',
|
||||
cancelText: '暂不撤销',
|
||||
content: this.$lang('order.cancelRefundConfirm'),
|
||||
cancelText: this.$lang('order.notCancelYet'),
|
||||
cancelColor: '#898989',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
|
||||
Reference in New Issue
Block a user