Forráskód Böngészése

feat(SCRM-5800): BKC 兑换券加支付弹窗

lock.qiu@kerryprops.com 1 éve
szülő
commit
0ab61db428

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

@@ -182,6 +182,25 @@ export default {
         });
       }, 700)
     },
+    goPay(){
+      // 北京特殊处理
+      if(this.parkMallCode === 3 && this.usingTotalDiscount) {
+        this.$dialog.alert({
+          confirmButtonColor: kipTheme[this.theme].primaryColor,
+          title: '提示',
+          message: '请确认是否使用优惠,确认后无法返还!',
+          showCancelButton: true
+        }) .then(() => {
+          // on confirm
+          this.toPay()
+        })
+        .catch(() => {
+          // on cancel
+        });  
+        return
+      }
+      this.toPay();
+    },
     // 前往支付
     async toPay() {
       if (!this.isAlipayClient) {

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

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