From 90d0e8d75a80a705a974dc4c82bdda86bbe54171 Mon Sep 17 00:00:00 2001 From: Mac Date: Tue, 6 May 2025 08:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/screens/ProductCard.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/screens/ProductCard.tsx b/app/screens/ProductCard.tsx index e8619e2..7bc1fea 100644 --- a/app/screens/ProductCard.tsx +++ b/app/screens/ProductCard.tsx @@ -90,6 +90,10 @@ const ProductCard: React.FC = ({ Alert.alert("添加失败", "请选择商品"); return; } + if(selectedSize < product.min_order_quantity) { + Alert.alert("添加失败", "小于最小购买数量"); + return; + } if (groupList.length > 1) { const selectedSku = hasImg?.attributes.filter((item) => (item.size ?? 0) > 0) || [];