refactor(merch): 替换硬编码文本为国际化语言包

1.  将商品详情页的"立即咨询"替换为$lang('merch.consultNow')
2.  新增商品相关国际化文案并替换原有硬编码字符串
3.  统一使用多语言函数处理页面文本内容
This commit is contained in:
2026-06-22 18:13:11 +08:00
parent e9483e26e5
commit 1143175990
4 changed files with 26 additions and 19 deletions

View File

@@ -530,7 +530,7 @@ export default {
this.goodsData.carmichael = uni.getStorageSync('editGoodsCarmichael') ? JSON.parse(uni.getStorageSync('editGoodsCarmichael')) : [];
if (this.goodsData.carmichael.length > 0) {
this.carmiLength = '添加卡密【' + this.goodsData.carmichael.length + '】'
this.carmiLength = this.$lang('merch.addCarmiWithCount', { count: this.goodsData.carmichael.length })
}
}
@@ -905,7 +905,7 @@ export default {
getGoodsForm() {
getOrderFormList().then(res=>{
if (res.data) {
let goodsForm = ['请选择商品表单'];
let goodsForm = [this.$lang('merch.selectGoodsForm')];
res.data.forEach((item, index) => {
goodsForm.push(item.form_name);
if (this.goodsData.form_id && this.goodsData.form_id == item.id) this.goodsData.goods_form_index = index + 1;
@@ -926,7 +926,7 @@ export default {
getSupplyList() {
getSupplyList().then(res=>{
if (res.data) {
let supplyForm = ['请选择供应商'];
let supplyForm = [this.$lang('merch.selectSupplier')];
res.data.forEach((item, index) => {
supplyForm.push(item.title);
if (this.goodsData.supplier_id && this.goodsData.supplier_id == item.supplier_id) this.goodsData.supply_index = index + 1;