浏览代码

Merge branch 'dev_v3' of http://git.dgtis.com/armg/wxapp_shuibei into dev_v3

HHE-5476 1 月之前
父节点
当前提交
7d883bd61e
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      pages/goods/goods_details/index.vue

+ 7 - 0
pages/goods/goods_details/index.vue

@@ -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];