Эх сурвалжийг харах

fix(KIP-12578): 【DE】【C端】临时停车。杭州非优惠车,无法使用纸质券抵扣

john 1 жил өмнө
parent
commit
02f57e8291

+ 5 - 1
src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

@@ -224,7 +224,11 @@ export default {
 
     // 确认
     confirm() {
-      console.log(310,this.orderDetail);
+      // 如果用户没有选择纸质优惠券,则返回上一级页面
+      if(!this.paperCoupons.length) {
+        this.$router.back();
+        return
+      }
       
       this.$store.dispatch('order/savePaperCoupon', {
         paperCoupons: this.paperCoupons,