From 5b37e00b9890fd5773623c4616d5465aaff44c3c Mon Sep 17 00:00:00 2001
From: Zhukj <3262118957>
Date: Thu, 18 Dec 2025 17:03:40 +0800
Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E6=98=BE=E7=A4=BA=20+=20=E8=A7=A6=E5=8F=91=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
lang/en-us/common.js | 3 +-
lang/zh-cn/common.js | 3 +-
pages/contact/contact.vue | 43 +++++-
pages/index/index.vue | 47 +++++-
pages/member/index.vue | 258 +++++++++++++++++--------------
pages_promotion/merch/detail.vue | 4 +-
6 files changed, 234 insertions(+), 124 deletions(-)
diff --git a/lang/en-us/common.js b/lang/en-us/common.js
index f9e4173..9e49894 100644
--- a/lang/en-us/common.js
+++ b/lang/en-us/common.js
@@ -16,6 +16,7 @@ export const lang = {
mescrollTextOutOffset: 'Loading...',
mescrollEmpty: "No data available",
goodsRecommendTitle: 'Guess you like',
- currencySymbol: '¥'
+ currencySymbol: '¥',
+ langSwitchBtn: 'EN' // 新增:语言切换按钮文字(英文)
}
}
diff --git a/lang/zh-cn/common.js b/lang/zh-cn/common.js
index f486d80..e50ad33 100644
--- a/lang/zh-cn/common.js
+++ b/lang/zh-cn/common.js
@@ -17,6 +17,7 @@ export const lang = {
mescrollEmpty: "暂无相关数据",
goodsRecommendTitle: '猜你喜欢',
currencySymbol: '¥',
- submit: '提交'
+ submit: '提交',
+ langSwitchBtn: '中文' // 新增:语言切换按钮文字(中文),最后一个属性不加逗号
}
}
diff --git a/pages/contact/contact.vue b/pages/contact/contact.vue
index 62984d6..87e2e54 100644
--- a/pages/contact/contact.vue
+++ b/pages/contact/contact.vue
@@ -131,12 +131,20 @@
+
+
+
+ {{ $lang('common.langSwitchBtn') }}
+
@@ -229,8 +243,33 @@
}
/deep/ .mescroll-totop {
- right: 24rpx!important;
- bottom: 182rpx!important;
+ right: 24rpx !important;
+ bottom: 182rpx !important;
}
+ /* 👇 新增:语言切换按钮样式 */
+ .lang-switch-wrap {
+ position: fixed !important;
+ bottom: 120rpx !important; /* 避开底部tabBar */
+ right: 30rpx !important;
+ z-index: 99999 !important; /* 层级拉满 */
+ width: 120rpx;
+ height: 60rpx;
+ background-color: #ffffff !important;
+ border: 1px solid #e5e5e5 !important;
+ border-radius: 30rpx !important;
+ display: flex !important;
+ align-items: center !important;
+ justify-content: center !important;
+ box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1) !important;
+ }
+ .lang-text {
+ font-size: 28rpx !important;
+ color: #333333 !important;
+ font-weight: 500 !important;
+ }
+ .lang-switch-wrap:active {
+ transform: scale(0.95) !important;
+ transition: transform 0.1s ease !important;
+ }
\ No newline at end of file
diff --git a/pages/member/index.vue b/pages/member/index.vue
index 9a1531c..ac78d78 100644
--- a/pages/member/index.vue
+++ b/pages/member/index.vue
@@ -1,127 +1,155 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ $lang('common.langSwitchBtn') }}
+
+
-
-
\ No newline at end of file
diff --git a/pages_promotion/merch/detail.vue b/pages_promotion/merch/detail.vue
index aad7c68..bbf4a3a 100644
--- a/pages_promotion/merch/detail.vue
+++ b/pages_promotion/merch/detail.vue
@@ -313,11 +313,11 @@
@import './public/css/list.scss';
\ No newline at end of file