From 1facebeb64c8ee1694b881ce3c98db8ccd8b72f9 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 28 四月 2026 21:19:19 +0800
Subject: [PATCH] 小程序改bug

---
 small-program/shop/pages/write-off-a/write-off-a.vue |   35 ++++++++++++++++++++++-------------
 1 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/small-program/shop/pages/write-off-a/write-off-a.vue b/small-program/shop/pages/write-off-a/write-off-a.vue
index 9aff9ff..311061d 100644
--- a/small-program/shop/pages/write-off-a/write-off-a.vue
+++ b/small-program/shop/pages/write-off-a/write-off-a.vue
@@ -103,7 +103,7 @@
 					</view>
 				</view>
 			</view>
-			<view class="tips" v-if="info.overdueStatus !==0">
+			<view class="tips" v-if="info.overdueStatus !==0 &&info.overdueStatus !==2">
 				<image src="/static/icon/ic_waring@2x.png" mode="widthFix"></image>
 				<text  v-if="info.overdueStatus ===1">宸茶秴杩囧彇浠舵椂闂达紝宸蹭骇鐢熻秴鏃惰垂鐢細楼{{((info.overdueFee || 0)/100).toFixed(2)}}鍏�</text> 
 				<text  v-if="info.overdueStatus ===3">宸茶秴杩囧彇浠舵椂闂达紝绛夊緟瀹㈡埛鏀粯瓒呮椂璐圭敤锛毬{((info.overdueFee || 0)/100).toFixed(2)}}鍏�</text>
@@ -551,19 +551,24 @@
 				let res = await that.$u.api.confirmArrivedOrder(this.form);
 				if (res.code === 200 ) { 
 					uni.showToast({
-						title: `鎿嶄綔鎴愬姛`,
+						title: '鎿嶄綔鎴愬姛',
 						icon: 'success'
 					})
 					uni.$emit('updateOrder',{info:this.info,delete:0})
-					that.getOrderDetail()
-					// uni.navigateBack({delta:-1})
+					setTimeout(function(){
+						 that.getOrderDetail()
+					},1000) 
 				} 
 			}, 
 			async storeOutOrderDo(){
+				uni.showToast({
+					title: '鎿嶄綔鎴愬姛',
+					icon: 'success'
+				})
 				var that =this
 				if (!this.form1.images || this.form1.images.length == 0) {
 					uni.showToast({
-						title: `璇蜂笂浼犲彇浠跺浘鐗嘸,
+						title:'璇蜂笂浼犲彇浠跺浘鐗�',
 						icon: 'warn'
 					})
 					return
@@ -571,18 +576,20 @@
 				let res = await that.$u.api.storeOutOrder(this.form1);
 				if (res.code === 200 ) { 
 					uni.showToast({
-						title: `鏍搁獙鎴愬姛`,
+						title: '鏍搁獙鎴愬姛',
 						icon: 'success'
 					})
-					uni.$emit('updateOrder',{info:this.info,delete:0})
-					that.getOrderDetail()
+					// uni.$emit('updateOrder',{info:this.info,delete:0})
+					setTimeout(function(){
+						 that.getOrderDetail()
+					},1000) 
 				} 
 			}, 
 			async shopVerifyOrderDo(){
 				var that =this
 				if (!this.form.images || this.form.images.length == 0) {
 					uni.showToast({
-						title: `璇蜂笂浼犳敹浠跺浘鐗嘸,
+						title: '璇蜂笂浼犳敹浠跺浘鐗�',
 						icon: 'warn'
 					})
 					return
@@ -590,11 +597,13 @@
 				let res = await that.$u.api.shopVerifyOrder(this.form);
 				if (res.code === 200 ) { 
 					uni.showToast({
-						title: `鏍搁獙鎴愬姛`,
+						title:'鏍搁獙鎴愬姛',
 						icon: 'success'
 					})
-					uni.$emit('updateOrder',{info:this.info,delete:0})
-					that.getOrderDetail()
+					  uni.$emit('updateOrder',{info:this.info,delete:0})
+					 setTimeout(function(){
+						 that.getOrderDetail()
+					 },1000) 
 				} 
 			}, 
 			async  getOrderDetail(){
@@ -615,7 +624,7 @@
 				let res = await this.$u.api.shopOrderDetail( {orderId:this.id} )
 				if (res.code === 200) { 
 					this.info = res.data 
-					if(res.data.status === 1 ){
+					if(res.data.status === 1 ||res.data.status === 4 ){
 						that.actionType = 0
 						that.show0 = true
 						//info.overdueStatus ==0 || info.overdueStatus == 1

--
Gitblit v1.9.3