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