浏览代码

消费减免金额使用用户最终选择的长度

john 2 年之前
父节点
当前提交
82ee973c4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/parkingFee/mixins/parkingFeeDetail.js

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

@@ -163,7 +163,7 @@ export default {
           let discountTime = 0
           let discountFee = 0
           if(selected) {
-            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 = {