From 68b27795ae929f5300fc6fb301b31aada74a2e2f Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期二, 10 三月 2026 15:26:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/yagwly_fa_master' into yagwly_fa_master
---
ui/car_wx_app/pages/transportation/index.vue | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/ui/car_wx_app/pages/transportation/index.vue b/ui/car_wx_app/pages/transportation/index.vue
index c1a70ec..08325a0 100644
--- a/ui/car_wx_app/pages/transportation/index.vue
+++ b/ui/car_wx_app/pages/transportation/index.vue
@@ -206,7 +206,7 @@
<u-button class="btn-list" @click="goTravelItinerary" text="琛岀▼鍘嗗彶"></u-button>
<!-- <u-button class="btn-budget" @click="goToAdvanceBudget" type="success" text="鍨粯棰勭畻"></u-button> -->
- <u-button class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
+ <u-button :loading="loading" class="btn-submit" @click="submitForm" type="primary" text="鎻愪氦"></u-button>
</view>
@@ -266,6 +266,7 @@
voucher: [{ required: true, message: '璇蜂笂浼犲嚟璇�', trigger: 'blur' }]
},
isHk: false,
+ loading: false
};
},
onLoad(options) {
@@ -449,12 +450,15 @@
},
submitForm() {
-
+ if(this.loading){
+ return;
+ }
if (this.fileList.length == 0) {
uni.$u.toast('鍥剧墖涓婁紶涓嶈兘涓虹┖')
return
}
-
+ console.log(this.loading);
+ this.loading = true;
this.$refs.uForm.validate().then(res => {
if (res) {
@@ -467,6 +471,8 @@
carSubmitDropHoo(this.form).then((res) => {
+
+
this.form = {
address: '',
tripTime: '',
@@ -476,7 +482,11 @@
if (res == 1) {
uni.$u.toast('鎿嶄綔鎴愬姛')
}
- })
+ }).catch(()=>{
+ setTimeout(()=>{
+ this.loading = false
+ },2000)
+ })
} else if (this.newForm.statusStr == '寰呮帴鎸�') {
@@ -489,6 +499,9 @@
this.cleanedForm = this.cleanFormData({ ...this.form })
carSubmitPickHook(this.cleanedForm).then((res) => {
+ setTimeout(()=>{
+ this.loading = false
+ },2000)
this.form = {
address: '',
tripTime: '',
@@ -499,7 +512,11 @@
if (res == 1) {
uni.$u.toast('鎿嶄綔鎴愬姛')
}
- })
+ }).catch(()=>{
+ setTimeout(()=>{
+ this.loading = false
+ },2000)
+ })
}
@@ -508,6 +525,9 @@
}).catch(errors => {
uni.$u.toast('鏍¢獙澶辫触')
+ setTimeout(()=>{
+ this.loading = false
+ },2000)
})
this.$forceUpdate();
},
@@ -547,7 +567,7 @@
getAddress(latitude, longitude) {
this.amapPlugin.getRegeo({
- location:`113.929680,22.295144`,
+ location:`${longitude},${latitude}`,
success: (data) => {
let datum = data[0];
if (datum.regeocodeData){
--
Gitblit v1.8.0