Browse Source

Merge pull request #295 from John-Hong/release-2.19.0

fix(SCRM-4776): [DE][C端]临时停车,PD,用户只有一个小时消费减免,还有电子券或者积分的情况,当用户取消掉积分或者电…
Tron 1 năm trước cách đây
mục cha
commit
28456a4b53
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/pages/parkingFeeV2/mixins/parkingFeeDiscounts.js

+ 2 - 1
src/pages/parkingFeeV2/mixins/parkingFeeDiscounts.js

@@ -317,7 +317,8 @@ export default {
         // 转化公式之后
         // this.maxReduceDiscount = remainConsumeTime > couponCodesLength ? couponCodesLength : remainConsumeTime
         this.maxReduceDiscount = otherFee > couponCodesLength ? couponCodesLength : otherFee
-        this.reduceHours = this.maxReduceDiscount
+        // this.reduceHours = this.maxReduceDiscount
+        !isSelected && (this.reduceHours = this.maxReduceDiscount)
         return
         // 如果超过限制就置灰
         // const maxOneTimeDiscountTimeFee = (couponCodes.split('#').length) * hourPrice