Task:多店铺选择

This commit is contained in:
linxi
2025-03-24 18:13:19 +08:00
parent a1182276a9
commit 85b1a8f0f1
4 changed files with 133 additions and 5 deletions
+2 -2
View File
@@ -1363,7 +1363,7 @@ export default {
},
// 点击加入购物车按钮
joinCart() {
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || storeInfo.isNegotiable === 1) {
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || this.storeInfo.isNegotiable === 1) {
return
}
// 0=加入购物车
@@ -1372,7 +1372,7 @@ export default {
},
// 立即购买
tapBuy() {
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || storeInfo.isNegotiable === 1) {
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || this.storeInfo.isNegotiable === 1) {
return
}
// 1=直接购买