Kaynağa Gözat

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

HHE-5476 1 ay önce
ebeveyn
işleme
7d883bd61e
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  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];