|
@@ -426,6 +426,7 @@
|
|
|
this.retailPrice = this.product.price.toFixed(2);
|
|
|
this.buyRetailPrice = this.product.price;
|
|
|
}
|
|
|
+
|
|
|
//处理下架商品和售罄商品
|
|
|
if(this.product.validFlag =='3' || this.stock == 0){
|
|
|
this.isNoneDisabled = true
|
|
@@ -435,9 +436,9 @@
|
|
|
this.isNoneDisabled = false
|
|
|
this.goodsData.disabledText = ''
|
|
|
}
|
|
|
- if(this.product.price1TextFlag == "1"){
|
|
|
+ if(this.product.priceFlag == 1){
|
|
|
this.disabled = true
|
|
|
- }else if(this.product.price1TextFlag == "2"){
|
|
|
+ }else if(this.product.priceFlag == 2){
|
|
|
if(this.userIdentity == 4){
|
|
|
this.disabled = true
|
|
|
}else{
|
|
@@ -457,6 +458,7 @@
|
|
|
if(this.stock == 0){
|
|
|
this.goodsData.disabledText = '售罄'
|
|
|
}
|
|
|
+ console.log(this.disabled);
|
|
|
setTimeout(()=>{
|
|
|
this.getSectionProps();
|
|
|
},2000)
|
|
@@ -568,7 +570,7 @@
|
|
|
},
|
|
|
processActivityPrice(){//单独处理活动价格和阶梯价格
|
|
|
if(this.ladderPriceFlag == '0' && this.product.actStatus == 0 || this.product.actStatus == 1){
|
|
|
- this.buyRetailPrice = this.product.retailPrice
|
|
|
+ this.buyRetailPrice = this.product.price
|
|
|
}else{
|
|
|
this.ladderPriceList.forEach((item,index)=>{
|
|
|
if(this.number>=item.buyNum){
|
|
@@ -580,6 +582,9 @@
|
|
|
showSpec(type) {//显示选择数量确认弹窗
|
|
|
this.isBtnType = type
|
|
|
this.specClass = 'show';
|
|
|
+ if (this.ladderPriceFlag) {
|
|
|
+ this.processActivityPrice()
|
|
|
+ }
|
|
|
},
|
|
|
hideSpec() {//关闭选择数量确认弹窗
|
|
|
this.specClass = 'hide';
|