From c3956f7bcde2d616fb9ba9ce048772b424bcd2af Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 29 Jun 2026 13:57:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BB=9F=E4=B8=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=A4=9A=E9=A1=B5=E9=9D=A2=E7=9A=84=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=8C=85key=E5=91=BD=E5=90=8D=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 将会员购买卡片页的提示语语言包key从customerService.tip替换为统一命名 2. 修正diy文章组件、取消状态页、积分商品列表页的语言包key大小写和路径问题 3. 统一积分商品列表页的多语言调用路径,简化冗余的key前缀 --- components-diy/diy-article.vue | 4 +-- pages_promotion/point/goods_list.vue | 40 ++++++++++++++-------------- pages_tool/member/cancelstatus.vue | 20 +++++++------- pages_tool/member/card_buy.vue | 2 +- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/components-diy/diy-article.vue b/components-diy/diy-article.vue index e856fac..e2594fa 100644 --- a/components-diy/diy-article.vue +++ b/components-diy/diy-article.vue @@ -90,12 +90,12 @@ - {{ viewMore.text || $lang('components-diy.diy-article.viewMore') }} + {{ viewMore.text || $lang('components-diy.diyArticle.viewMore') }} - {{ $lang('components-diy.diy-article.noArticles') }} + {{ $lang('components-diy.diyArticle.noArticles') }} diff --git a/pages_promotion/point/goods_list.vue b/pages_promotion/point/goods_list.vue index 36beb76..3ea89ca 100644 --- a/pages_promotion/point/goods_list.vue +++ b/pages_promotion/point/goods_list.vue @@ -6,7 +6,7 @@ + :placeholder="$lang('searchPlaceholder')" /> @@ -14,10 +14,10 @@ - {{ $lang('goods_list.comprehensive') }} + {{ $lang('comprehensive') }} - {{ $lang('goods_list.points') }} + {{ $lang('points') }} @@ -26,7 +26,7 @@ - {{ $lang('goods_list.newArrival') }} + {{ $lang('newArrival') }} @@ -35,7 +35,7 @@ - {{ $lang('goods_list.filter') }} + {{ $lang('filter') }} @@ -59,7 +59,7 @@ {{ item.point }} - {{ $lang('goods_list.points') }} + {{ $lang('points') }} + {{ $lang('common.currencySymbol') @@ -72,7 +72,7 @@ - {{ $lang('goods_list.stock') }}{{ + {{ $lang('stock') }}{{ item.stock }} @@ -83,7 +83,7 @@ + :text="$lang('noGoods')"> @@ -91,25 +91,25 @@ - {{ $lang('goods_list.filter') }} + {{ $lang('filter') }} - {{ $lang('goods_list.pointRange') }} + {{ $lang('pointRange') }} + :placeholder="$lang('minPlaceholder')" /> + :placeholder="$lang('maxPlaceholder')" /> - {{ $lang('goods_list.allCategories') }} + {{ $lang('allCategories') }} {{ $lang('goods_list.all') }} + :class="{ selected: !categoryId, 'color-base-text': !categoryId }">{{ $lang('all') }} - - + + @@ -283,26 +283,26 @@ export default { // } if (!Number(this.maxPoint) && this.maxPoint) { this.$util.showToast({ - title: this.$lang('goods_list.pleaseEnterMaxPrice') + title: this.$lang('pleaseEnterMaxPrice') }); return; } if (Number(this.minPoint) < 0 || Number(this.maxPoint) < 0) { this.$util.showToast({ - title: this.$lang('goods_list.priceCannotBeLessThanZero') + title: this.$lang('priceCannotBeLessThanZero') }); return; } if (this.minPoint != '' && Number(this.minPoint) > Number(this.maxPoint) && this.maxPoint) { this.$util.showToast({ - title: this.$lang('goods_list.minCannotBeGreaterThanMax') + title: this.$lang('minCannotBeGreaterThanMax') }); return; } if (this.maxPoint != '' && Number(this.maxPoint) < Number(this.minPoint)) { this.$util.showToast({ - title: this.$lang('goods_list.maxCannotBeLessThanMin') + title: this.$lang('maxCannotBeLessThanMin') }); return; } diff --git a/pages_tool/member/cancelstatus.vue b/pages_tool/member/cancelstatus.vue index 4695bcb..425f372 100644 --- a/pages_tool/member/cancelstatus.vue +++ b/pages_tool/member/cancelstatus.vue @@ -5,16 +5,16 @@ 1 - {{ $lang('member.cancelStatus.step1Name') }} - {{ $lang('member.cancelStatus.step1Desc') }} + {{ $lang('member.cancelstatus.step1Name') }} + {{ $lang('member.cancelstatus.step1Desc') }} 2 - {{ $lang('member.cancelStatus.step2Name') }} - {{ $lang('member.cancelStatus.step2Desc') }} + {{ $lang('member.cancelstatus.step2Name') }} + {{ $lang('member.cancelstatus.step2Desc') }} @@ -23,14 +23,14 @@ 3 - {{ $lang('member.cancelStatus.step3Name') }} - {{ $lang('member.cancelStatus.step3Desc') }} + {{ $lang('member.cancelstatus.step3Name') }} + {{ $lang('member.cancelstatus.step3Desc') }} - - + + @@ -81,8 +81,8 @@ }, revoke() { uni.showModal({ - title: this.$lang('member.cancelStatus.riskTip'), - content: this.$lang('member.cancelStatus.revokeConfirm'), + title: this.$lang('member.cancelstatus.riskTip'), + content: this.$lang('member.cancelstatus.revokeConfirm'), confirmColor: '#000000', success: res => { if (res.confirm) { diff --git a/pages_tool/member/card_buy.vue b/pages_tool/member/card_buy.vue index 56c2e8f..f29ed12 100644 --- a/pages_tool/member/card_buy.vue +++ b/pages_tool/member/card_buy.vue @@ -350,7 +350,7 @@ export default { create() { if (this.memberInfo.member_level_type && this.memberInfo.member_level != this.currCard.level_id) { uni.showModal({ - title: this.$lang('common.tip'), + title: this.$lang('customerService.tip'), content: this.$lang('cardOverrideConfirm'), success: res => { if (res.confirm) {