浏览代码

支付失败没有重置优惠券状态

John-Hong 2 年之前
父节点
当前提交
5b256b2200
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/pages/parkingFee/parkingFeeDetail.vue

+ 7 - 5
src/pages/parkingFee/parkingFeeDetail.vue

@@ -516,9 +516,9 @@ export default {
   mounted() {
     setTimeout(() => {
       uni.setNavigationBarTitle({
-        title: "停车支付"
-      })
-    }, 300)
+        title: '停车支付',
+      });
+    }, 300);
     console.log('页面被打开了');
     console.log('订单时间:' + this.orderCreateTime);
     // log.info('订单时间:' + this.orderCreateTime);
@@ -549,7 +549,9 @@ export default {
 
       // 电子券减免(停车券)
       this.couponInfo = JSON.parse(uni.getStorageSync('couponInfo'));
-      this.checkedCouponCount = JSON.parse(uni.getStorageSync('checkedCouponList')).length;
+      this.checkedCouponCount = JSON.parse(
+        uni.getStorageSync('checkedCouponList')
+      ).length;
 
       // 纸质优惠券
       this.paperCouponInfo = JSON.parse(uni.getStorageSync('paperCouponInfo'));
@@ -1880,7 +1882,7 @@ export default {
               window.subscribe('wxPayOver', (options) => {
                 console.log('微信支付结束之后的返回参数', options);
                 // TODO: 在 qa 新发版前,只提示支付成功的信息
-                if (options?.wxPayOver === 'fail' && false) {
+                if (options?.wxPayOver === 'fail') {
                   console.log('支付失败');
                   this.failedParkOrder();
                 } else {