Browse Source

fix(SCRM-4320): [DE][C端]临时停车,扫描纸质优惠券以后,缴费页面会直接刷新

john 2 years ago
parent
commit
9a8706768b
1 changed files with 1 additions and 22 deletions
  1. 1 22
      src/pages/parkingFee/mixins/parkingFeeDetail.js

+ 1 - 22
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -55,28 +55,7 @@ export default {
     }, 300)
     }, 300)
   },
   },
   mounted() {
   mounted() {
-    setTimeout(() => {
-      window?.toWXSendMsg({
-        type: 'nowRoute',
-        options: {
-          fullPath: this.$route.fullPath
-        },
-      });
-      window.subscribe('reload',(  ) => {
-        // 如果是纸质券页面,发起的扫码动作,不做任何刷新动作
-        if (window.location.href.indexOf('parkingFeePaperCoupon') > -1) {
-          this.reloadPage()
-          return
-        }
-        // 如果当前路由不是支付页面,则回退到当前页面再刷新页面
-        if(this.$route.name !== 'parkingFeeDetail') {
-          this.$router.back()
-        }
-        setTimeout(() => {
-          window.location.reload();
-        }, 100)
-      });
-    }, 700)
+    this.reloadPage()
   },
   },
   computed: {
   computed: {
     ...mapState({
     ...mapState({