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']);