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

@@ -935,6 +935,37 @@ export const lang = {
reservePhone: "预留手机",
inputPhone: "请输入您的手机号码",
phone: "手机号码",
unknown: "未知",
male: "男",
female: "女",
inputRealName: "请输入真实姓名",
selectBirthday: "请选择生日",
sameAsOriginalName: "与原真实姓名一致,无需修改",
realNameNotEmpty: "真实姓名不能为空",
selectBirthdayTip: "请选择生日",
newPasswordTooShort: "新密码长度不能小于",
passwordNeedInclude: "密码需包含",
digit: "数字",
sameAsOldPassword: "新密码不能与原密码相同",
passwordNotMatch: "两次密码不一致",
inputMobile: "请输入手机号",
inputMobileCorrect: "请输入正确的手机号",
alreadySent: "已发送",
noRepeatClick: "请勿重复点击",
selectRegion: "请选择所在地区",
inputDetailAddress: "请输入详细地址",
personalInfo: "个人资料",
getDynamicCode: "获取动态码",
pleaseInputPassword: "请输入6位支付密码,建议不要使用重复或连续数字",
verificationCodeSentTo: "验证码已发送至",
input4DigitCode: "请在下方输入4位数字验证码",
setPayPasswordTip: "请设置支付密码",
inputAgain: "请再次输入",
bindMobileForPayPwd: "设置支付密码需要先绑定手机号,是否立即绑定?",
modifySuccess: "修改成功",
twoPasswordNotMatch: "两次输入的密码不一致",
getVerificationCode: "获取验证码",
secondsRetry: "s后可重新获取",
},
// 地址
@@ -2047,6 +2078,9 @@ export const lang = {
commission: "佣金",
apply: "申请",
center: "中心",
posterGenerating: "海报生成中...",
saveSuccess: "保存成功",
saveFailed: "保存失败,请稍后重试",
},
// 门店/商户

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')
});
}
});