@@ -875,6 +875,13 @@ const handleSubmit = async () => {
})
return ;
}
+ if(attr.value.productSelect.cart_num == 0 ){
+ uni.showToast({
+ title:'商品数量不能为0!',
+ icon:'none',
+ })
+ return ;
+ }
const productSelect = productValue.value[attrValue.value];