|
@@ -429,7 +429,7 @@
|
|
this.$msg("商品已下架");
|
|
this.$msg("商品已下架");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if(this.specSelected.length == 0&&this.datalist.spec_list.length != 0) {
|
|
|
|
|
|
+ if(this.specSelected.length == 0&&this.datalist.spec_list.length != 0 ) {
|
|
this.$msg("请选择规格数量");
|
|
this.$msg("请选择规格数量");
|
|
this.specClass = 'show';
|
|
this.specClass = 'show';
|
|
return;
|
|
return;
|
|
@@ -478,7 +478,11 @@
|
|
this.specSelected = this.datalist.goods_list;
|
|
this.specSelected = this.datalist.goods_list;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if(this.specSelected.length == 0&&this.datalist.spec_list.length != 0) {
|
|
|
|
|
|
+ if(this.chosename.length == 0) {
|
|
|
|
+ this.specClass = 'show';
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(this.specSelected.length == 0&&this.datalist.spec_list.length != 0 ) {
|
|
this.specClass = 'show';
|
|
this.specClass = 'show';
|
|
this.$msg("请选择规格数量");
|
|
this.$msg("请选择规格数量");
|
|
return;
|
|
return;
|
|
@@ -513,7 +517,6 @@
|
|
this.$msg("商品没库存啦");
|
|
this.$msg("商品没库存啦");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
let obj = {};
|
|
let obj = {};
|
|
obj.spec_id = first.spec_id;
|
|
obj.spec_id = first.spec_id;
|
|
obj.value_name = chose.value_name;
|
|
obj.value_name = chose.value_name;
|
|
@@ -558,7 +561,7 @@
|
|
this.firstprice = items.goods_price;
|
|
this.firstprice = items.goods_price;
|
|
this.totalprice = items.goods_price*this.shopnumber;
|
|
this.totalprice = items.goods_price*this.shopnumber;
|
|
}
|
|
}
|
|
- console.log(this.specSelected);
|
|
|
|
|
|
+
|
|
// if(this.arrayId.length == this.datalist.spec_list.length) {
|
|
// if(this.arrayId.length == this.datalist.spec_list.length) {
|
|
|
|
|
|
// }
|
|
// }
|