feat: 新增多语言国际化页面配置,修复部分页面硬编码文案

1. 新增了zh-cn和en-us两套语言下的大量页面国际化配置文件,覆盖商品、订单、会员、营销活动等多个业务模块
2. 修复了分销页面、VR页面、支付页面、商品不存在页面的硬编码提示文案,替换为国际化调用
3. 删除了原有的i18n检查脚本文件
This commit is contained in:
2026-06-25 11:00:50 +08:00
parent 5f41febd70
commit 8e218bb663
509 changed files with 49155 additions and 55313 deletions

View File

@@ -13,14 +13,14 @@
<uni-popup ref="confirmPopup" type="center">
<view class="confirm-popup">
<view class="popup-header">
<text>{{ $lang("common.wxwork-contact.l16.t0") }}</text>
<text>添加企业微信客服</text>
</view>
<view class="popup-body">
<text>{{ $lang("common.wxwork-contact.l19.t0") }}</text>
<text>点击确定后将跳转至企业微信,添加专业客服为您服务</text>
</view>
<view class="popup-footer">
<button class="cancel-btn" @click="closePopup">{{ $lang("common.pick-regions.l17.t0") }}</button>
<button class="confirm-btn" @click="confirmAdd">{{ $lang("common.ns-goods-sku.ns-goods-sku-category.l76.t0") }}</button>
<button class="cancel-btn" @click="closePopup">取消</button>
<button class="confirm-btn" @click="confirmAdd">确定</button>
</view>
</view>
</uni-popup>
@@ -36,7 +36,7 @@
// 按钮文字
btnText: {
type: String,
default: $lang('common.wxwork-contact.l16.t0')
default: '添加企业微信客服'
},
// 企业ID(必需)
corpId: {
@@ -105,11 +105,11 @@
});
if (!initResult) {
console.error($lang('common.wxwork-contact.l108.t0'));
console.error('企业微信SDK初始化失败');
}
}
} catch (error) {
console.error($lang('common.wxwork-contact.l112.t0'), error);
console.error('初始化企业微信SDK失败:', error);
}
},
@@ -142,7 +142,7 @@
// 方案2:使用SDK打开用户资料
this.openUserProfile(contactId);
} else {
this.showError($lang('common.wxwork-contact.l145.t0'));
this.showError('未配置企业微信客服信息');
}
// #endif
@@ -151,7 +151,7 @@
// H5环境直接跳转
window.location.href = contactUrl;
} else {
this.showError($lang('common.wxwork-contact.l145.t0'));
this.showError('未配置企业微信客服信息');
}
// #endif
},
@@ -165,13 +165,13 @@
path: `pages/contacts/externalContactDetail?url=${encodeURIComponent(contactUrl)}`,
success: () => {
this.$util.showToast({
title: $lang('common.wxwork-contact.l168.t0'),
title: '跳转成功',
icon: 'success'
});
},
fail: (err) => {
console.error($lang('common.wxwork-contact.l173.t0'), err);
this.showError($lang('common.wxwork-contact.l174.t0'));
console.error('跳转企业微信失败:', err);
this.showError('跳转失败,请检查企业微信配置');
}
});
},
@@ -181,7 +181,7 @@
*/
openUserProfile(contactId) {
if (!this.wxWorkSDK) {
this.showError($lang('common.wxwork-contact.l184.t0'));
this.showError('企业微信SDK未初始化');
return;
}
@@ -189,8 +189,8 @@
userId: contactId
}, (res) => {
}, (err) => {
console.error($lang('common.wxwork-contact.l192.t0'), err);
this.showError($lang('common.wxwork-contact.l193.t0'));
console.error('打开用户资料失败:', err);
this.showError('打开用户资料失败');
});
},
@@ -199,7 +199,7 @@
*/
showError(message) {
uni.showModal({
title: $lang('common.wxwork-contact.l202.t0'),
title: '提示',
content: message,
showCancel: false
});