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 | 35 ++++++++++++++++++++++-------------
1 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue
index 5b42de6..1079c01 100644
--- a/src/components/page/IndexXTYH.vue
+++ b/src/components/page/IndexXTYH.vue
@@ -36,8 +36,10 @@
{{this.statisticData.code}}
<!--<el-input v-model="statisticData.code" readonly></el-input>-->
</el-form-item>
- <el-form-item v-if="isShowjiaofei" class="weizhang-footer-box" style="display: flex;justify-content: center;margin-top: 4.498vh" label-width="0" v-show="showFlag">
- <el-button class="jiaofei-btn" type="primary" @click="pay()" :loading="payFlag">鍘荤即璐�</el-button>
+ <el-form-item v-if="isShowjiaofei" class="weizhang-footer-box" style="margin-top: 4.498vh" label-width="0" v-show="showFlag">
+ <div style="flex: 1; text-align: center;">
+ <el-button class="jiaofei-btn" type="primary" @click="pay()" :loading="payFlag">鍘荤即璐�</el-button>
+ </div>
</el-form-item>
</el-form>
<el-form
@@ -50,10 +52,12 @@
label="鏃� 鐗� 杞� 杈� 鏌� 璇�">
<el-input prefix-icon="el-icon-search" style="margin-top: 20px;border: solid 1px #ccc!important;" v-model="carNo" placeholder="璇疯緭鍏ユ墜鏈哄彿"></el-input>
</el-form-item>
- <el-form-item class="weizhang-footer-box" style="display: flex;justify-content: center;margin-top: 5.498vh" label-width="0">
- <el-button
- style="borderColor:'none';background:#121215e0 "
- class="jiaofei-btn" type="primary" @click="noCarOut()" v-show="showFlag">鏌ヨ</el-button>
+ <el-form-item class="weizhang-footer-box" style="margin-top: 5.498vh" label-width="0">
+ <div style="flex: 1; text-align: center;">
+ <el-button
+ style="borderColor:'none';background:#121215e0 "
+ class="jiaofei-btn" type="primary" @click="noCarOut()" v-show="showFlag">鏌ヨ</el-button>
+ </div>
</el-form-item>
</el-form>
@@ -383,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
@@ -423,6 +429,9 @@
})
} catch (err) {
this.payNowFlag = false;
+ } finally {
+ this.dataLoading = false;
+ this.paying = false;
}
},
noCarOut(){
--
Gitblit v1.9.1