From bbff5152a973bef2b01217836bc17f8f9f6fc08e Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Sat, 22 Jun 2024 11:21:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/goodPopup.vue | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
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']);