From c020ba751328187f5bae43de3cd1a3f15860b734 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Fri, 21 Jun 2024 16:03:17 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/goodPopup.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/goodPopup.vue b/components/goodPopup.vue
index 80533a1..533e110 100644
--- a/components/goodPopup.vue
+++ b/components/goodPopup.vue
@@ -26,14 +26,14 @@
购买重量*
-
购买数量*
-
{{datas.unit_name}}
@@ -73,10 +73,10 @@
cart_num: ''
});
const setData = (e) => {
- console.log(e);
datas.value = e;
- if (e.batch) datas.value.cart_num = e.batch;
+ if (Number(e.batch) > 0) datas.value.cart_num = e.batch;
else datas.value.cart_num = '';
+
}
const emit = defineEmits(['close', 'change']);