From 74c7eaf4977a4f52ceb7c2aa6f7304a07600f5d4 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 29 Dec 2025 10:56:04 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E5=A4=9A=E8=AF=AD=E8=A8=80):=20=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=A4=9A=E8=AF=AD=E8=A8=80=E9=87=87=E7=94=A8=20isEnEn?= =?UTF-8?q?v=20=E5=8F=98=E9=87=8F=E4=BA=86=E5=88=A4=E6=96=AD=EF=BC=8C?= =?UTF-8?q?=E5=90=8E=E9=9D=A2=E7=A7=BB=E6=A4=8D=E5=88=B0=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=8C=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/diy.js | 6 +- common/js/lang.js | 2 + pages/goods/category.vue | 164 ++++++++++----------- pages/index/index.vue | 251 +++++++++++++++++--------------- pages/member/index.vue | 147 ++++++++++--------- pages/member/public/js/index.js | 3 - pages_promotion/point/list.vue | 8 +- 7 files changed, 303 insertions(+), 278 deletions(-) diff --git a/common/js/diy.js b/common/js/diy.js index ab4a29f..539e0fc 100644 --- a/common/js/diy.js +++ b/common/js/diy.js @@ -334,7 +334,11 @@ export default { let diyDataValue = res.data; if (diyDataValue.value) { this.diyData = JSON.parse(diyDataValue.value); - this.$langConfig.title(this.diyData.global.title); + + // 导航栏标题要根据语言环境切换 + const title = this.isEnEnv ? this.diyData?.global?.en_title : this.diyData?.global?.title; + if (title) this.$langConfig.title(title); + this.mpCollect = this.diyData.global.mpCollect; this.setPublicShare(); /* if (this.diyData.global.popWindow && this.diyData.global.popWindow.imageUrl) { diff --git a/common/js/lang.js b/common/js/lang.js index e023594..a39e48a 100644 --- a/common/js/lang.js +++ b/common/js/lang.js @@ -92,6 +92,8 @@ export default { } } if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field + + console.log(`字段: ${field}, 值: ${value}`) return value; }, /** diff --git a/pages/goods/category.vue b/pages/goods/category.vue index e1daf22..e316c24 100644 --- a/pages/goods/category.vue +++ b/pages/goods/category.vue @@ -26,99 +26,101 @@ \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 760086d..3a25fbd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,8 @@