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 @@ - - \ 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