refactor: 替换多页面国际化文本为硬编码中文内容

移除项目内大部分$lang()国际化调用,替换为直接中文文本,统一前端展示文案
This commit is contained in:
2026-06-23 08:55:16 +08:00
parent 750ed2dac7
commit f258987e0e
180 changed files with 2207 additions and 4701 deletions

View File

@@ -13,14 +13,14 @@
<uni-popup ref="confirmPopup" type="center">
<view class="confirm-popup">
<view class="popup-header">
<text>{{ $lang('chat.addEnterpriseWeChat') }}</text>
<text>添加企业微信客服</text>
</view>
<view class="popup-body">
<text>{{ $lang('chat.confirmAddWeChatTip') }}</text>
<text>点击确定后将跳转至企业微信,添加专业客服为您服务</text>
</view>
<view class="popup-footer">
<button class="cancel-btn" @click="closePopup">{{ $lang('chat.cancel') }}</button>
<button class="confirm-btn" @click="confirmAdd">{{ $lang('chat.confirm') }}</button>
<button class="cancel-btn" @click="closePopup">取消</button>
<button class="confirm-btn" @click="confirmAdd">确定</button>
</view>
</view>
</uni-popup>
@@ -142,7 +142,7 @@
// 方案2:使用SDK打开用户资料
this.openUserProfile(contactId);
} else {
this.showError(this.$lang('wxwork.notConfigured'));
this.showError('未配置企业微信客服信息');
}
// #endif
@@ -151,7 +151,7 @@
// H5环境直接跳转
window.location.href = contactUrl;
} else {
this.showError(this.$lang('wxwork.notConfigured'));
this.showError('未配置企业微信客服信息');
}
// #endif
},
@@ -165,13 +165,13 @@
path: `pages/contacts/externalContactDetail?url=${encodeURIComponent(contactUrl)}`,
success: () => {
this.$util.showToast({
title: this.$lang('wxwork.jumpSuccess'),
title: '跳转成功',
icon: 'success'
});
},
fail: (err) => {
console.error('跳转企业微信失败:', err);
this.showError(this.$lang('wxwork.jumpFailed'));
this.showError('跳转失败,请检查企业微信配置');
}
});
},
@@ -181,7 +181,7 @@
*/
openUserProfile(contactId) {
if (!this.wxWorkSDK) {
this.showError(this.$lang('wxwork.sdkNotInit'));
this.showError('企业微信SDK未初始化');
return;
}
@@ -190,7 +190,7 @@
}, (res) => {
}, (err) => {
console.error('打开用户资料失败:', err);
this.showError(this.$lang('wxwork.openProfileFailed'));
this.showError('打开用户资料失败');
});
},
@@ -199,7 +199,7 @@
*/
showError(message) {
uni.showModal({
title: this.$lang('common.tip'),
title: '提示',
content: message,
showCancel: false
});