|
@@ -50,32 +50,13 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}, 500)
|
|
}, 500)
|
|
- setTimeout(() => {
|
|
|
|
- window?.toWXSendMsg({
|
|
|
|
- type: 'nowRoute',
|
|
|
|
- options: {
|
|
|
|
- fullPath: this.$route.fullPath
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- window.subscribe('reload',( ) => {
|
|
|
|
- // 如果是纸质券页面,发起的扫码动作,不做任何刷新动作
|
|
|
|
- if (window.location.href.indexOf('parkingFeePaperCoupon') > -1) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- // 如果当前路由不是支付页面,则回退到当前页面再刷新页面
|
|
|
|
- if(this.$route.name !== 'parkingFeeDetail') {
|
|
|
|
- this.$router.back()
|
|
|
|
- }
|
|
|
|
- setTimeout(() => {
|
|
|
|
- window.location.reload();
|
|
|
|
- }, 100)
|
|
|
|
- });
|
|
|
|
- }, 700)
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.pageInit();
|
|
this.pageInit();
|
|
}, 300)
|
|
}, 300)
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.reloadPage()
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapState({
|
|
...mapState({
|
|
orderDetail: (state) => state.order.orderDetail,
|
|
orderDetail: (state) => state.order.orderDetail,
|
|
@@ -147,6 +128,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 是否正常通信
|