|
@@ -32,7 +32,9 @@ export default {
|
|
|
popup: false,
|
|
|
msData: {},
|
|
|
orderTimeEvent: null,
|
|
|
- orderTime: null
|
|
|
+ orderTime: null,
|
|
|
+ // 关闭倒计时
|
|
|
+ isShowCountDown: true
|
|
|
};
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
@@ -809,14 +811,23 @@ export default {
|
|
|
if (res?.orderDetail?.parkingRecord?.totalFee <= 0) {
|
|
|
this.$store.dispatch('order/orderInitRule', res.orderDetail);
|
|
|
setTimeout(() => {
|
|
|
+ // 暂停倒计时
|
|
|
+ this.$refs.countDown.pause()
|
|
|
+ // 隐藏倒计时组件
|
|
|
+ this.isShowCountDown = false
|
|
|
Dialog.alert({
|
|
|
message: '当前无需缴费',
|
|
|
+ showConfirmButton: false,
|
|
|
confirmButtonColor: '#333',
|
|
|
}).then(() => {
|
|
|
this.clearOrderTimeEvent()
|
|
|
this.$router.back()
|
|
|
});
|
|
|
- }, 1000)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.clearOrderTimeEvent()
|
|
|
+ this.$router.back()
|
|
|
+ }, 3300);
|
|
|
+ }, 300)
|
|
|
return
|
|
|
}
|
|
|
if ( /CAR_NOT_FOUND|INOUT_FAILED/.test(res.code) ) {
|