Sfoglia il codice sorgente

Merge pull request #548 from John-Hong/release-3.9.0

Release 3.9.0
John-Hong 1 anno fa
parent
commit
f1394f5e44
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/store/order/points.js

+ 2 - 2
src/store/order/points.js

@@ -344,7 +344,7 @@ export default {
   integralDescTule({commit,dispatch,state},{pointsTime, parkMallCode, available, pointsPerUnit, enableNewMemberPoints, newMemberPoints,unitAmount, checkOutResponse} ) {
     //  commit('setIntegralDesc',pointsTime ? `已选择兑换${ pointsTime }${parkMallCode === 5 || parkMallCode === 10 ? '元' : '小时'}` : available > pointsPerUnit ? `${ available }积分可减免` : `${ pointsPerUnit }积分可停车1小时`); // 积分优惠处的描述
     if(pointsTime) {
-      commit('setIntegralDesc', `已选择兑换${ pointsTime }${parkMallCode === 5 || parkMallCode === 10 ? '元' : '小时'}`)
+      commit('setIntegralDesc', `已选择兑换${ pointsTime }${[5, 10].indexOf(parkMallCode)> -1 ? '元' : '小时'}`)
       return
     }
     if(available > pointsPerUnit) {
@@ -357,7 +357,7 @@ export default {
       commit('setIntegralDesc', `${ available }积分可减免`)
       return
     }
-    commit('setIntegralDesc', `${ pointsPerUnit }积分可停车${[5, 10].indexOf(orderDetail.parkInfo.parkMallCode)> -1 ? unitAmount + '元' : '1小时'}`)
+    commit('setIntegralDesc', `${ pointsPerUnit }积分可停车${[5, 10].indexOf(parkMallCode)> -1 ? unitAmount + '元' : '1小时'}`)
   }
 }