|
@@ -55,28 +55,7 @@ export default {
|
|
|
}, 300)
|
|
|
},
|
|
|
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: {
|
|
|
...mapState({
|