From 666bcc20d989be1c7a2acb314594e8e017a611ac Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期日, 11 八月 2024 23:18:51 +0800
Subject: [PATCH] update花店的一些问题等

---
 sub_pages/customer/shopping/shopping.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/sub_pages/customer/shopping/shopping.vue b/sub_pages/customer/shopping/shopping.vue
index a7de25c..766613d 100644
--- a/sub_pages/customer/shopping/shopping.vue
+++ b/sub_pages/customer/shopping/shopping.vue
@@ -160,15 +160,19 @@
 					}
 				})
 				let that = this
-				setTimeout(() => {
+				if (code === 0) {
 					that.$message.hideLoading()
-					if (code === 0) {
-						that.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
-						uni.navigateTo({
-							url: '/sub_pages/customer/shopping/confirm'
-						})
-					}
-				}, 300)
+					that.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
+					uni.navigateTo({
+						url: '/sub_pages/customer/shopping/confirm'
+					})
+				} else {
+					//提示消失快
+					setTimeout(() => {
+						that.$message.hideLoading()
+					}, 2000)
+				}
+
 			},
 			async clickSwipeButton(item, check) {
 				// console.log('clickSwipeButton', e)

--
Gitblit v1.9.3