From 5248e257623228bf7b598f75f09902cbff6518c6 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 10 四月 2024 00:16:02 +0800
Subject: [PATCH] #

---
 pages/phyz/order/pakinOrderSelect.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pages/phyz/order/pakinOrderSelect.vue b/pages/phyz/order/pakinOrderSelect.vue
index d985e00..fd9bb87 100644
--- a/pages/phyz/order/pakinOrderSelect.vue
+++ b/pages/phyz/order/pakinOrderSelect.vue
@@ -149,10 +149,10 @@
 				this.count = 0
 			},
 			addConfirm() {
-				if (this.count == 0) {
-					uni.showToast({ title: '鍏ュ簱鏁伴噺涓嶅悎娉曪紒', icon: "none", position: 'top' })
-					return
-				}
+				// if (this.count == 0) {
+				// 	uni.showToast({ title: '鍏ュ簱鏁伴噺涓嶅悎娉曪紒', icon: "none", position: 'top' })
+				// 	return
+				// }
 				this.dataList[this.index]['used'] = true
 				this.dataList[this.index]['pakinQty'] = this.count
 				this.orderCarList.push(this.dataList[this.index])
@@ -163,6 +163,10 @@
 			// 鐐瑰嚮鍓嶅線 寰呯粍鎵樺垪琛�
 			orderCar() {
 				let _this = this
+				if (_this.orderCarList.length === 0) {
+					uni.showToast({ title: '璇锋坊鍔犲叆搴撳晢鍝侊紒', icon: "none", position: 'top' })
+					return
+				}
 				uni.navigateTo({
 					url: './orderCar',
 					success(res) {

--
Gitblit v1.9.1