From 4acf12605ae97ec9b30a4b9706d5acea91070157 Mon Sep 17 00:00:00 2001
From: 1012414140@qq.com <1012414140@qq.com>
Date: 星期三, 24 十二月 2025 17:26:15 +0800
Subject: [PATCH] feat: 去缴费功能

---
 src/components/page/IndexXTYH.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue
index bddee47..1079c01 100644
--- a/src/components/page/IndexXTYH.vue
+++ b/src/components/page/IndexXTYH.vue
@@ -387,25 +387,27 @@
             } else {
               this.$message.error(res.msg || '鏀粯楠岃瘉澶辫触锛岃閲嶈瘯', 3000);
             }
+            this.paying = false;
           },
           err => {
             this.payFlag = false;
             this.$message.error('缃戠粶寮傚父锛岃閲嶈瘯', 3000);
+            this.paying = false;
           }
-      ).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
@@ -427,6 +429,9 @@
         })
       } catch (err) {
         this.payNowFlag = false;
+      } finally {
+        this.dataLoading = false;
+        this.paying = false;
       }
     },
     noCarOut(){

--
Gitblit v1.9.1