Sfoglia il codice sorgente

Merge pull request #122 from John-Hong/John/release-2.9.0/KIP-9697

消费减免金额使用用户最终选择的长度
Tron 2 anni fa
parent
commit
08d9ee4ec2
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      src/pages/parkingFee/mixins/parkingFeeDetail.js
  2. 1 1
      src/store/index.js

+ 2 - 2
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -163,8 +163,8 @@ export default {
           let discountTime = 0
           let discountFee = 0
           if(selected) {
-            discountTime = consume[0].hasOwnProperty('discountTime') ? consume[0].discountTime : consume[0].defaultDiscountTime; 
-            discountFee = consume[0].hasOwnProperty('discountFee') ? consume[0].discountFee : discountTime * hourPrice;
+            discountFee = consume[0].hasOwnProperty('discountFee') ? consume[0].discountFee : memberGrade[0].defaultDiscountTime * hourPrice;
+            discountTime = discountFee / hourPrice;
           }
           params.discountInfo.consume = {
             ...consume[0],

+ 1 - 1
src/store/index.js

@@ -214,7 +214,7 @@ const store = new Vuex.Store({
         commit('SET_APPID',appId);
 
         // let { groupId, mallId } =
-        if ( !/CRM|PUDONG/.test(source)) {
+        if (!/CRM|PUDONG/.test(source)) {
           const groupIdAndMallId = getGroupIdAndMallIdByLsbId(lbsId);
           groupId = groupIdAndMallId.groupId;
           mallId = groupIdAndMallId.mallId;