Fix:3264 【礼品功能】当前规格库存不足时,点击送给朋友无响应,应提示:商品库存不足
This commit is contained in:
@@ -780,6 +780,10 @@ export default {
|
|||||||
},
|
},
|
||||||
toGift() {
|
toGift() {
|
||||||
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0) {
|
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '商品库存不足',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isGift = true
|
this.isGift = true
|
||||||
|
|||||||
Reference in New Issue
Block a user