فهرست منبع

feat(KIP-10653): 临时停车,无需缴费的车辆。查询费用以后,需要三秒才能弹出无需缴费的提醒

lock.qiu@kerryprops.com 2 سال پیش
والد
کامیت
84eb100248
2فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 8 0
      src/pages/parkingFee/mixins/parkingFeeDetail.js
  2. 1 1
      src/pages/parkingFee/parkingFeeDetail.vue

+ 8 - 0
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -497,6 +497,8 @@ export default {
     },
     // 停车优惠
     discounts() {
+      // totalFee 为零的时候不做跳转
+      if (this.orderDetail.parkingRecord.totalFeeInYuan === 0) return;
       if (!this.enableConsume && !this.memberLevelDiscount && this.orderDetail.parkInfo.parkMallCode !== 2) {
         return Toast({
           message: '暂无可用优惠',
@@ -536,6 +538,8 @@ export default {
       return 1;
     },
     coupon() {
+      // totalFee 为零的时候不做跳转
+      if (this.orderDetail.parkingRecord.totalFeeInYuan === 0) return;
       // 如果没有电子券的话,提示用户
       if (this.coupons.length === 0 && this.source !== 'KIP') {
         uni.showToast({
@@ -548,6 +552,8 @@ export default {
       });
     },
     paperCoupon() {
+      // totalFee 为零的时候不做跳转
+      if (this.orderDetail.parkingRecord.totalFeeInYuan === 0) return;
       this.$router.push({
         path: 'parkingFeePaperCoupon',
         query:{
@@ -576,6 +582,8 @@ export default {
     },
     // 积分修改框
     showPointsMathPopup() {
+      // totalFee 为零的时候不做跳转
+      if (this.orderDetail.parkingRecord.totalFeeInYuan === 0) return;
       if(this.integralDesc === '暂无可用积分'){
         return
       }

+ 1 - 1
src/pages/parkingFee/parkingFeeDetail.vue

@@ -110,7 +110,7 @@
           </div>
         </div>
         <div class="btn-box">
-          <k-button :disabled="btnLoading" style="width: 100%;max-width: 240px" title="支付" disabledColor="#D1D2D9" @click="toPay">
+          <k-button style="width: 100%;max-width: 240px" title="支付" disabledColor="#D1D2D9" :disabled="orderDetail.parkingRecord.totalFeeInYuan === 0 ? true : false || btnLoading" @click="toPay" >
             <template v-slot:left>
               <van-loading v-if="btnLoading" size="20" color="#fff" style="margin-right: 10px"/>
             </template>