From eec82b55813387e20087989536cd32810b59cd48 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 13 十月 2023 09:42:49 +0800
Subject: [PATCH] 大部分按钮增加loading 放空操作逻辑修改

---
 pages/customer-page/customer-index/customer-index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 36f1c8e..3f52405 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -142,7 +142,8 @@
 					<view class="receiverPopup__btn"><u-button text="纭畾"
 							type="primary"
 							@click="popupDetermineClick"
-							:disabled="canClick"></u-button></view>
+							:disabled="canClick"
+							:loading="popupDetermineClickLoading"></u-button></view>
 				</view>
 			</u-popup>
 		</view>
@@ -203,7 +204,8 @@
 				carNum: "",
 				// 鍓╀綑鐨勬彁鐓ゅ崟鏁伴噺
 				carNumSurplus: '',
-				canClick: false
+				canClick: false,
+				popupDetermineClickLoading: false
 			};
 		},
 		onLoad() {
@@ -260,11 +262,13 @@
 			},
 			popupDetermineClick() {
 				if (this.receiveNum > 0) {
+					this.popupDetermineClickLoading = true;
 					this.getOrderNum.num = this.receiveNum;
 					uni.showLoading({ title: '鍔犺浇涓�...' });
 					this.$reqPost('customerGet', this.getOrderNum, 'params').then(res => {
 						uni.hideLoading();
 						if (res.code == 0) {
+							this.popupDetermineClickLoading = false;
 							this.getOrderNum.num = '';
 							this.GetOrderPlan();
 							this.show = false;
@@ -274,6 +278,7 @@
 								duration: 1000
 							});
 						} else {
+							this.popupDetermineClickLoading = false;
 							this.$u.toast(res.msg ? res.msg : '棰嗗彇澶辫触');
 						}
 					});

--
Gitblit v1.9.1