diff --git a/components/goodPopup.vue b/components/goodPopup.vue
index 533e110..a62cc98 100644
--- a/components/goodPopup.vue
+++ b/components/goodPopup.vue
@@ -26,14 +26,14 @@
购买重量*
-
购买数量*
-
{{datas.unit_name}}
@@ -74,9 +74,8 @@
});
const setData = (e) => {
datas.value = e;
- if (Number(e.batch) > 0) datas.value.cart_num = e.batch;
+ if (Number(e.batch) > 0) datas.value.cart_num = Number(e.batch).toFixed(0);
else datas.value.cart_num = '';
-
}
const emit = defineEmits(['close', 'change']);