diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index a1b0e69..aea9a3a 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -780,6 +780,10 @@ export default { }, toGift() { if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0) { + uni.showToast({ + title: '商品库存不足', + icon: 'none' + }) return } this.isGift = true