Ver código fonte

feat(SCRM-5147): 跳转支付宝ETCP 小程序调用顺序捋顺

lock.qiu@kerryprops.com 1 ano atrás
pai
commit
dd8b481e6a
1 arquivos alterados com 11 adições e 11 exclusões
  1. 11 11
      src/pages/parkingFee/mixins/parkingFeeDetail.js

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

@@ -315,6 +315,17 @@ export default {
           unlicensed,
           buildingId: parkInfo.buildingId
         });
+        // console.log('orderDetail', res);
+        if (res?.paymentType === 'NO_FEE_PAY') {
+          this.btnLoading = false;
+          this.isPay = false
+          this.clearOrderTimeEvent()
+          this.$router.replace({
+            path: this.getPagePath(),
+          });
+          // 支付成功
+          return
+        }
         // 如果是北京的ETCP 微信支付宝通用版
         if (this.isBKC()) {
           my.navigateTo({
@@ -338,17 +349,6 @@ export default {
           // this.$router.back()
           return
         }
-        // console.log('orderDetail', res);
-        if (res?.paymentType === 'NO_FEE_PAY') {
-          this.btnLoading = false;
-          this.isPay = false
-          this.clearOrderTimeEvent()
-          this.$router.replace({
-            path: this.getPagePath(),
-          });
-          // 支付成功
-          return
-        }
         if(res?.sessionId) {
           this.kerryPayment(res.sessionId);
           return