|
@@ -82,13 +82,7 @@
|
|
|
},
|
|
|
changeCountAdd(){//popup弹窗数量增加按钮
|
|
|
this.number++
|
|
|
- if(this.handleData.ladderPriceFlag == '1'){
|
|
|
- this.handleData.ladderPriceList.forEach((item,index)=>{
|
|
|
- if(this.number>=item.buyNum){
|
|
|
- this.buyRetailPrice = item.buyPrice
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.calculatPerice()
|
|
|
},
|
|
|
changeCountSub(){//popup弹窗数量减按钮
|
|
|
if(this.number<=this.minBuyNumber){
|
|
@@ -98,13 +92,7 @@
|
|
|
return
|
|
|
}else{
|
|
|
this.number--
|
|
|
- if(this.handleData.ladderPriceFlag == '1'){
|
|
|
- this.handleData.ladderPriceList.forEach((item,index)=>{
|
|
|
- if(this.number>=item.buyNum){
|
|
|
- this.buyRetailPrice = item.buyPrice
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.calculatPerice()
|
|
|
this.isQuantity =false
|
|
|
}
|
|
|
},
|
|
@@ -117,6 +105,18 @@
|
|
|
this.number = this.minBuyNumber
|
|
|
}else{
|
|
|
this.number = e.detail.value
|
|
|
+ this.calculatPerice()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ calculatPerice(){//判断是否为阶梯价然后做计算价格处理
|
|
|
+ if(this.handleData.ladderPriceFlag == '1'){
|
|
|
+ this.handleData.ladderPriceList.forEach((item,index)=>{
|
|
|
+ if(this.number>=item.buyNum){
|
|
|
+ this.buyRetailPrice = item.buyPrice
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.buyRetailPrice = this.handleData.retailPrice;
|
|
|
}
|
|
|
},
|
|
|
toConfirmation(){//跳转确认订单页面
|