From 9e664e1a2189c4cbbc006ebef238603b6bbbbfad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 13 Sep 2025 11:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=B4=E5=81=9C=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=8F=AF=E4=BB=A5=E9=87=8D=E5=A4=8D=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/park/temporaryOrder/index.vue | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/park/temporaryOrder/index.vue b/packages/park/temporaryOrder/index.vue index 5bf3d8b2..ea26571d 100644 --- a/packages/park/temporaryOrder/index.vue +++ b/packages/park/temporaryOrder/index.vue @@ -395,13 +395,32 @@ export default { signType: res.signType, paySign: res.paySign, success: (payRes) => { + // 重置页面状态为加载时的默认状态 + // 清除定时器 + if (this.timerId) { + clearInterval(this.timerId); + this.timerId = null; + } + + // 重置停车费相关状态 + this.showCost1 = false; + this.showCost2 = false; + this.parkingLotName = ''; + this.costAmount = ''; + this.currentCarNumber = ''; + this.entryTime = ''; + this.billingTime = ''; + this.feeOutTime = ''; + + // 重置支付相关状态 + this.paymentMethod = 'wechat'; + const params = { order_id: resVal.order_id, } request(apiArr.tempParkingOrderQuery, "POST", params).then(res => { this.selectCost() }) - }, fail: (payErr) => { const params = {