refactor(i18n): 替换硬编码文本为多语言配置

1.  删除冗余的语言文件 contenr.js
2.  将页面内硬编码字符串替换为$this.lang()调用
3.  整理common.js内的多语言词条,归类移动旧有配置到正确分组
This commit is contained in:
2026-06-22 18:08:03 +08:00
parent b30ba914b9
commit e9483e26e5
5 changed files with 73 additions and 46 deletions

View File

@@ -53,54 +53,54 @@ export default {
begin_time:'',//团购开始时间
end_time:''//团购结束时间
},
groundingArray: ['下架', '上架'],
groundingArray: [this.$lang('merch.grounding'), this.$lang('merch.listing')],
pickuptypeArray: ['当日达', '次日达', '隔日达'],//, '自定义'
pickuptypeArray: [this.$lang('merch.sameDay'), this.$lang('merch.nextDay'), this.$lang('merch.dayAfter')],//, '自定义'
currCategory: 0, // 当前所设置的商品分类
virtualDeliverArray: [{
name: '自动发货',
name: this.$lang('merch.autoDeliver'),
value: 'auto_deliver',
},
{
name: '手动发货',
name: this.$lang('merch.manualDeliver'),
value: 'artificial_deliver',
},
{
name: '到店核销',
name: this.$lang('merch.storeVerify'),
value: 'verify',
}
],
virtualDeliverValue: {
'auto_deliver': '自动发货',
'artificial_deliver': '手动发货',
'verify': '到店核销'
'auto_deliver': this.$lang('merch.autoDeliver'),
'artificial_deliver': this.$lang('merch.manualDeliver'),
'verify': this.$lang('merch.storeVerify')
},
virtualReceiveArray: [{
name: '自动收货',
name: this.$lang('merch.autoReceive'),
value: 'auto_receive',
},
{
name: '买家确认收货',
name: this.$lang('merch.buyerConfirm'),
value: 'artificial_receive',
},
],
virtualReceiveValue: {
'auto_receive': '自动收货',
'artificial_receive': '买家确认收货',
'auto_receive': this.$lang('merch.autoReceive'),
'artificial_receive': this.$lang('merch.buyerConfirm'),
},
validityTypeArray: ['永久', '购买后几日有效', '指定过期日期'],
validityTypeArray: [this.$lang('merch.permanent'), this.$lang('merch.validDays'), this.$lang('merch.expireDate')],
virtualIndate: 0,
minDate: '',
carmiLength: '添加卡密',
carmiLength: this.$lang('merch.addCarmi'),
limitLength: [ //限购
{
name: '单次限购',
name: this.$lang('merch.singleLimit'),
value: '1'
},
{
name: '长期限购',
name: this.$lang('merch.longLimit'),
value: '2'
}
],

View File

@@ -39,7 +39,7 @@ export default {
fontWeight: false,
padding: 0,
cartEvent: "detail",
text: "购买",
text: this.$lang('goods.buy'),
textColor: "#FFFFFF",
theme: "default",
aroundRadius: 25,