Fox:3721 【商城小程序】商品加购数量等于库存数时,继续点击增加数量按钮,页面所有内容点击无效
This commit is contained in:
@@ -181,7 +181,7 @@ export default {
|
||||
this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber })
|
||||
},
|
||||
CartNumAdd() {
|
||||
|
||||
if(this.cartNumber >= this.attrObj.productSelect.stock) return
|
||||
this.cartNumber++
|
||||
this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user