lhl 1 year ago
parent
commit
22c110f086
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/product/product.vue

+ 3 - 3
pages/product/product.vue

@@ -308,7 +308,7 @@ export default {
 				obj.shopId = data.mer_id; //保存商店id
 				console.log(obj.goodsObjact.is_pack,'v');
 				if(obj.goodsObjact.is_pack == 1) {
-					obj.goodsNumberMax = 4
+					obj.goodsNumberMax = 1
 				}
 				// 保存默认选中的对象
 				obj.specSelected = []; //初始化默认选择对象
@@ -386,7 +386,7 @@ export default {
 				let data = this.productValue[str];
 				this.actionPrice = data.price;
 				if(obj.goodsObjact.is_pack == 1) {
-					this.goodsNumberMax = 4;
+					this.goodsNumberMax =1;
 				}else {
 					this.goodsNumberMax = data.stock;
 				}
@@ -398,7 +398,7 @@ export default {
 			}
 			if(obj.goodsObjact.is_pack == 1) {
 				console.log('dddddddddddddddddddddd');
-				this.goodsNumberMax = 4;
+				this.goodsNumberMax = 1;
 			}
 		},
 		//分享