|
@@ -50,6 +50,11 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}, 500)
|
|
}, 500)
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.pageInit();
|
|
|
|
+ }, 300)
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
window?.toWXSendMsg({
|
|
window?.toWXSendMsg({
|
|
type: 'nowRoute',
|
|
type: 'nowRoute',
|
|
@@ -60,6 +65,7 @@ export default {
|
|
window.subscribe('reload',( ) => {
|
|
window.subscribe('reload',( ) => {
|
|
// 如果是纸质券页面,发起的扫码动作,不做任何刷新动作
|
|
// 如果是纸质券页面,发起的扫码动作,不做任何刷新动作
|
|
if (window.location.href.indexOf('parkingFeePaperCoupon') > -1) {
|
|
if (window.location.href.indexOf('parkingFeePaperCoupon') > -1) {
|
|
|
|
+ this.reloadPage()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 如果当前路由不是支付页面,则回退到当前页面再刷新页面
|
|
// 如果当前路由不是支付页面,则回退到当前页面再刷新页面
|
|
@@ -71,11 +77,7 @@ export default {
|
|
}, 100)
|
|
}, 100)
|
|
});
|
|
});
|
|
}, 700)
|
|
}, 700)
|
|
- setTimeout(() => {
|
|
|
|
- this.pageInit();
|
|
|
|
- }, 300)
|
|
|
|
},
|
|
},
|
|
-
|
|
|
|
computed: {
|
|
computed: {
|
|
...mapState({
|
|
...mapState({
|
|
orderDetail: (state) => state.order.orderDetail,
|
|
orderDetail: (state) => state.order.orderDetail,
|
|
@@ -147,6 +149,32 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 刷新管理
|
|
|
|
+ reloadPage() {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ const fullPath = window.location.href.indexOf('parkingFeePaperCoupon') > -1 ? '/parkingFeeDetail/' : this.$route.fullPath
|
|
|
|
+ window?.toWXSendMsg({
|
|
|
|
+ type: 'nowRoute',
|
|
|
|
+ options: {
|
|
|
|
+ fullPath: 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)
|
|
|
|
+ },
|
|
// 前往支付
|
|
// 前往支付
|
|
async toPay() {
|
|
async toPay() {
|
|
// 判断微信小程序与 h5 是否正常通信
|
|
// 判断微信小程序与 h5 是否正常通信
|