tangning 2 年之前
父節點
當前提交
39b21d22e2
共有 4 個文件被更改,包括 4 次插入2 次删除
  1. 1 0
      src/i18n/en.js
  2. 1 0
      src/i18n/zh.js
  3. 1 1
      src/views/mobile/index.vue
  4. 1 1
      src/views/pc/index.vue

+ 1 - 0
src/i18n/en.js

@@ -11,6 +11,7 @@ export default {
       zyhys: 'Premium',
       userName: 'Username',
       expiration:'Valid for {num}-year',
+      expirationmon:'Valid for {num}-month',
       payTitle: 'Payment Center',
       membership: 'Purchase Member',
       payCenter: "Payment Center",

+ 1 - 0
src/i18n/zh.js

@@ -13,6 +13,7 @@ export default {
         gjhy: '高级会员',
         zyhys: '专业会员',
         expiration:'有效期{num}年',
+        expirationmon:'有效期{num}月',
         payCenter: "支付中心",
         wx:'微信支付',
         zfb:'支付宝支付',

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

@@ -187,7 +187,7 @@ async function handleOpenPay() {
             {{ orderDetal.goodsInfo[0].type==1?$t('payInfo.gjhy'):isEur?$t('payInfo.zyhys'):$t('payInfo.zyhy') }}
             <span>× {{orderDetal.goodsInfo[0].count}}</span>
             <!-- <span v-else>1</span> -->
-            <span v-if="orderDetal.orderType == 'incrementOrder'">,{{ $t(`payInfo.expiration`,{num:1}) }}</span>
+            <span v-if="orderDetal.orderType == 'incrementOrder'">,{{ orderDetal.goodsInfo[0].type==1?$t(`payInfo.expirationmon`,{num:1}):$t(`payInfo.expiration`,{num:1}) }}</span>
             </span>
         </div>
       </div>

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

@@ -125,7 +125,7 @@ async function getCode() {
                    <span v-if="orderDetal.orderType != 'downOrder'">× {{item.count}}</span>
                 </span> 
                 <!-- <span v-else>1</span> -->
-                <span v-if="orderDetal.orderType == 'incrementOrder'">,{{ $t(`payInfo.expiration`,{num:1}) }}</span>
+                <span v-if="orderDetal.orderType == 'incrementOrder'">,{{ item.type==1?$t(`payInfo.expirationmon`,{num:1}):$t(`payInfo.expiration`,{num:1}) }}</span>
                 </span
               ></span
             >