|
@@ -396,7 +396,6 @@
|
|
item.reducedPrice = _reducedPrice
|
|
item.reducedPrice = _reducedPrice
|
|
item.totalOriginalPrice = _totalOriginalPrice
|
|
item.totalOriginalPrice = _totalOriginalPrice
|
|
item.totalPrice = _totalPrice
|
|
item.totalPrice = _totalPrice
|
|
- console.log(item.totalPrice)
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
totalPeice(){//计算总价格,每次调用此方法,将初始值为0,遍历价格并累加
|
|
totalPeice(){//计算总价格,每次调用此方法,将初始值为0,遍历价格并累加
|
|
@@ -490,14 +489,11 @@
|
|
if(!this.$api.isNumber(_value)){
|
|
if(!this.$api.isNumber(_value)){
|
|
pros.productCount = pros.minBuyNumber
|
|
pros.productCount = pros.minBuyNumber
|
|
}else if(_value < pros.minBuyNumber){
|
|
}else if(_value < pros.minBuyNumber){
|
|
- console.log('111111')
|
|
|
|
this.$util.msg(`该商品最小起订量为${pros.minBuyNumber}`,2000);
|
|
this.$util.msg(`该商品最小起订量为${pros.minBuyNumber}`,2000);
|
|
pros.productCount = pros.minBuyNumber
|
|
pros.productCount = pros.minBuyNumber
|
|
}else if(_value % pros.minBuyNumber != 0){
|
|
}else if(_value % pros.minBuyNumber != 0){
|
|
- console.log('22222222')
|
|
|
|
pros.productCount = pros.minBuyNumber
|
|
pros.productCount = pros.minBuyNumber
|
|
}else{
|
|
}else{
|
|
- console.log('33333333')
|
|
|
|
pros.productCount = _value
|
|
pros.productCount = _value
|
|
this.processActivityPrice(pros)
|
|
this.processActivityPrice(pros)
|
|
}
|
|
}
|
|
@@ -505,13 +501,13 @@
|
|
this.totalShopPeice();
|
|
this.totalShopPeice();
|
|
},
|
|
},
|
|
processActivityPrice(pros){//单独处理活动价格和阶梯价格
|
|
processActivityPrice(pros){//单独处理活动价格和阶梯价格
|
|
- let ladderPriceList = pros.ladderPrices;
|
|
|
|
|
|
+ let ladderPriceList = pros.ladderPriceList;
|
|
if(pros.ladderPriceFlag == '0' || pros.actStatus == 1){
|
|
if(pros.ladderPriceFlag == '0' || pros.actStatus == 1){
|
|
pros.price = pros.price
|
|
pros.price = pros.price
|
|
}else{
|
|
}else{
|
|
ladderPriceList.forEach((item,index)=>{
|
|
ladderPriceList.forEach((item,index)=>{
|
|
if(pros.productCount>=item.buyNum){
|
|
if(pros.productCount>=item.buyNum){
|
|
- pros.price = item.buyPrice
|
|
|
|
|
|
+ pros.retailPrice = item.buyPrice
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1135,7 +1131,7 @@
|
|
color: #ff2a2a;
|
|
color: #ff2a2a;
|
|
text-align: center;
|
|
text-align: center;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- padding:0 16rpx;
|
|
|
|
|
|
+ padding:0 5rpx;
|
|
font-size: $font-size-20;
|
|
font-size: $font-size-20;
|
|
border: 1px solid #ff2a2a;
|
|
border: 1px solid #ff2a2a;
|
|
float: left;
|
|
float: left;
|