From 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 12 五月 2026 09:07:49 +0800
Subject: [PATCH] 改bug

---
 mini-program/pagesA/pages/order/order.vue |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/mini-program/pagesA/pages/order/order.vue b/mini-program/pagesA/pages/order/order.vue
index ceaea8b..12164f3 100644
--- a/mini-program/pagesA/pages/order/order.vue
+++ b/mini-program/pagesA/pages/order/order.vue
@@ -300,6 +300,9 @@
 								} else {
 									uni.showToast({ title: '璁㈠崟鍙栨秷鏀粯', icon: 'none' })
 								}
+							},
+							fail(err) {
+								console.log(err)
 							}
 						})
 					}
@@ -316,10 +319,13 @@
 				if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
 					return
 				}
+				if (this.loading) return;
+				this.loading = true
 				var that =this
 				let res = await this.$u.api.affirmOrder({ orderId: this.currentOrder.id  });
-				if (res.code === 200 ) { 
-					that.showDone = false
+				this.loading = false
+				that.showDone = false
+				if (res.code === 200 ) {
 					that.getFirstPageData()
 					//淇敼璁㈠崟鐘舵��
 					// this.dataList.forEach(item=>{
@@ -340,10 +346,13 @@
 				if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
 					return
 				}
+				if (this.loading) return;
+				this.loading = true
 					var that =this
 				let res = await that.$u.api.cancelOrder({ orderId: this.currentOrder.id  });
-				if (res.code === 200 ) { 
-					this.showCancel = false
+				this.loading = false
+				this.showCancel = false
+				if (res.code === 200 ) {
 					//淇敼璁㈠崟鐘舵��
 					this.dataList.forEach(item=>{
 						if(item.id==this.currentOrder.id){
@@ -363,10 +372,13 @@
 				if(this.userType == 1 || this.currentOrder==null || this.currentOrder.id == null) {
 					return
 				}
+				if (this.loading) return;
+				this.loading = true
 				var that =this
 				let res = await that.$u.api.delOrder({ orderId: this.currentOrder.id  });
-				if (res.code === 200 ) { 
-					this.showDelete = false
+				this.loading = false
+				this.showDelete = false
+				if (res.code === 200 ) {
 					//淇敼璁㈠崟鐘舵��
 					/* var tindex = -1;
 					this.dataList.forEach((item,index)=>{

--
Gitblit v1.9.3