| | |
| | | } else { |
| | | this.$message.error(res.msg || '支付验证失败,请重试', 3000); |
| | | } |
| | | this.paying = false; |
| | | }, |
| | | err => { |
| | | this.payFlag = false; |
| | | this.$message.error('网络异常,请重试', 3000); |
| | | } |
| | | ).finally(() => { |
| | | this.paying = false; |
| | | }); |
| | | } |
| | | ) |
| | | |
| | | }, |
| | | againPay() { |
| | | console.log('this.paying=', this.paying); |
| | | if (this.paying) return; |
| | | this.paying = true; |
| | | this.againDialogVisible = false; |
| | | this.dataLoading = true; |
| | | this.parkXT(this.outParkId).finally(() => { |
| | | this.dataLoading = false; |
| | | this.paying = false; |
| | | }); |
| | | this.parkXT(this.outParkId) |
| | | // .finally(() => { |
| | | // this.dataLoading = false; |
| | | // this.paying = false; |
| | | // }); |
| | | }, |
| | | parkXT(outParkId) { |
| | | this.payNowFlag = true //立即支付loading |
| | |
| | | }) |
| | | } catch (err) { |
| | | this.payNowFlag = false; |
| | | } finally { |
| | | this.dataLoading = false; |
| | | this.paying = false; |
| | | } |
| | | }, |
| | | noCarOut(){ |