Commit 0e1efce1 by 施宇

清库存

parent 8c4610c9
...@@ -1083,7 +1083,7 @@ ...@@ -1083,7 +1083,7 @@
}); });
return; return;
}else if(self.type == 2){ }else if(self.type == 2){
if(goodType == 6){ if(goodType == 6 && allowPresale == 1){
self.$toast("想要购买更多,请联系客服"); self.$toast("想要购买更多,请联系客服");
var inputVal = num||0; var inputVal = num||0;
...@@ -1120,7 +1120,7 @@ ...@@ -1120,7 +1120,7 @@
duration: 1500 duration: 1500
}); });
}else if(self.type==2){ }else if(self.type==2){
if(goodType == 6 ){ if(goodType == 6 && allowPresale == 1){
self.$toast("想要购买更多,请联系客服"); self.$toast("想要购买更多,请联系客服");
var inputVal = num||0; var inputVal = num||0;
if(inputVal!==0||inputVal!==mpq){ if(inputVal!==0||inputVal!==mpq){
......
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
this.isYushou=true; this.isYushou=true;
this.tipText = "库存不足,下单后我们将帮您订货"; this.tipText = "库存不足,下单后我们将帮您订货";
console.log(this.goodDetail) console.log(this.goodDetail)
if(this.goodDetail.ac_type == 6){ if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1){
this.$toast("想要购买更多,请联系客服"); this.$toast("想要购买更多,请联系客服");
var maxNum; var maxNum;
var inputVal; var inputVal;
...@@ -369,6 +369,14 @@ export default { ...@@ -369,6 +369,14 @@ export default {
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"; "https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png";
}, },
changeNav(i) { changeNav(i) {
if(this.navInit == i){
return
}
if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1 && this.aggregateNum>this.stockNum){
this.$toast("想要购买更多,请联系客服");
return
}
this.navInit = i; this.navInit = i;
if (i == 1) { if (i == 1) {
if (this.goodsNum % this.aggregateNum) { if (this.goodsNum % this.aggregateNum) {
......
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment