refactor(zh-cn lang): add multi-language terms and replace hardcoded strings

add new common and fenxiao section language entries, replace hardcoded toast text in goods_list.js with multi-language support
This commit is contained in:
2026-06-22 16:15:58 +08:00
parent 23426b168f
commit d8705398bb
2 changed files with 39 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ export default {
setTimeout(() => {
if (!this.addonIsExist.fenxiao) {
this.$util.showToast({
title: '商家未开启分销',
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
mask: true,
duration: 2000
});
@@ -48,7 +48,7 @@ export default {
return;
}
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + '中心');
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + this.$lang('fenxiao.center'));
this.is_fenxiao = Boolean(this.memberInfo.is_fenxiao);
},
methods: {
@@ -157,7 +157,7 @@ export default {
//生成海报
getGoodsPoster() {
uni.showLoading({
'title': '海报生成中...'
'title': this.$lang('fenxiao.posterGenerating')
});
let url = "";
let data = {};
@@ -204,12 +204,12 @@ export default {
filePath: res.tempFilePath,
success: () => {
this.$util.showToast({
title: "保存成功"
title: this.$lang('fenxiao.saveSuccess')
});
},
fail: () => {
this.$util.showToast({
title: "保存失败,请稍后重试"
title: this.$lang('fenxiao.saveFailed')
});
}
});