Browse Source

修改问题

tangning 2 years ago
parent
commit
0024f86852
3 changed files with 3 additions and 1 deletions
  1. 1 0
      src/i18n/en.js
  2. 1 0
      src/i18n/zh.js
  3. 1 1
      src/views/pc/index.vue

+ 1 - 0
src/i18n/en.js

@@ -46,6 +46,7 @@ export default {
         "nowBuy": "Order Now",
         "countNum": "{num}Product(s) In Total",
         "vip": "Purchase Member",
+        "goqy": "Purchase Accessory",
         "addBuy": "Add to Cart",
         "confirmOrder": "Confirm Order",
         "submitOrder": "Submit Order",

+ 1 - 0
src/i18n/zh.js

@@ -73,6 +73,7 @@ export default {
         "payCenter": "支付中心",
         "nowAccount": "当前帐号",
         "vip": "购买会员",
+        'goqy': '购买配件',
         "payType": "支付方式",
         "aliPay": "支付宝",
         "wechatPay": "微信支付",

+ 1 - 1
src/views/pc/index.vue

@@ -113,7 +113,7 @@ async function getCode() {
           </div>
           <div class="account">
             <span class="label"
-              >{{ $t('mall.vip') }}:
+              >{{ $t(`mall.${orderDetal.orderType == 'incrementOrder'?'vip':'goqy'}`) }}:
               <span>
                 <span v-if="orderDetal.goodsInfo && orderDetal.goodsInfo[0]">{{orderDetal.goodsInfo[0].name}}{{
                   orderDetal.goodsInfo[0].count