فهرست منبع

```
feat(i18n): 添加兑换功能的国际化文本

- 添加英文翻译: "Exchange"
- 添加中文翻译: "立即兑换"

style(mibiShop): 优化微币商城页面UI和交互逻辑

- 将价格显示从span标签改为div标签,改善布局结构
- 动态计算会员折扣价格,会员类型为1或2时使用discountPoints,否则使用points
- 本地化兑换按钮文本,使用国际化配置
- 调整商品项高度从124px增加到144px,适配新的布局
```

zhangningning 1 ماه پیش
والد
کامیت
f2c41f25f8
3فایلهای تغییر یافته به همراه8 افزوده شده و 6 حذف شده
  1. 1 0
      src/locales/en.js
  2. 1 0
      src/locales/zh-CN.js
  3. 6 6
      src/pages/mibiShop/mibiShop.vue

+ 1 - 0
src/locales/en.js

@@ -101,6 +101,7 @@ export default {
     pleaseInputRightPhoneNumber:"Please input right phone number",
     pleaseInputRightEmail:"Please input right email",
     notLoginTip:"You are not logged in, whether to go to login?",
+    exchange:"Exchange",
   },
   login: {
     smsLogin: 'SMS Login',

+ 1 - 0
src/locales/zh-CN.js

@@ -105,6 +105,7 @@ export default {
     pleaseInputRightPhoneNumber:"请输入正确的手机号",
     pleaseInputRightEmail:"请输入正确的邮箱",
     notLoginTip:"您未登录,是否前往登录?",
+    exchange:"立即兑换",
   },
   login: {
     smsLogin: '短信登录',

+ 6 - 6
src/pages/mibiShop/mibiShop.vue

@@ -13,25 +13,25 @@
           <div class="flex-center-between">
             <div v-if="appStore.userInfo?.memberType==1 || appStore.userInfo?.memberType==2">
               <div class="font_size20">
-                <span class="bold color_price "> {{item.discountPoints}} {{$t('common.mibi')}}</span>
-                <span class="line_through gray999 mr10 ml10 font_size14">({{item.points}}){{$t('common.mibi')}}</span>
+                <div class="bold color_price "> {{item.discountPoints}} {{$t('common.mibi')}}</div>
+                <div class="line_through gray999 mr10 ml10 font_size14">({{item.points}}){{$t('common.mibi')}}</div>
               </div>
             </div>
             <div class="bold color_price font_size20" v-else>{{item.points}}{{$t('common.mibi')}}</div>
-            <div class="border_radius_4 lijiduihuan  color_fff gradient font_size14 flex-center mt10"
+            <div class="border_radius_4 lijiduihuan  color_fff gradient font_size14 flex-center"
              @click="confirmBuy({
                 callback:initList,
                 appStore,
                 router,
                 type:'pointsBalance',
-                price:item.points,
+                price:appStore.userInfo?.memberType==1 || appStore.userInfo?.memberType==2 ? item.discountPoints:item.points,
                 t,
                 productId:item.itemId,
                 orderType:'mi_mall',
                 payMethod:'MI'
               })"
             >
-              立即兑换
+              {{$t('common.exchange')}}
             </div>
           </div>
         </div>
@@ -102,7 +102,7 @@ const getList = async (type) => {
     .list_item{
       width: 291.2px;
       .item_info{
-        height: 124px;
+        height: 144px;
         .line2{
           height: 52px;
         }