|
@@ -373,6 +373,7 @@
|
|
|
wxLogin.wxLoginAuthorize()
|
|
|
}else{
|
|
|
console.log(new Date +'用户未授权微信信息')
|
|
|
+ this.$api.navigateTo('/pages/authorization/authorization')
|
|
|
}
|
|
|
}
|
|
|
this.getWinHeight()
|
|
@@ -410,24 +411,22 @@
|
|
|
this.retailPrice = this.product.retailPrice.toFixed(2);
|
|
|
this.buyRetailPrice = this.product.retailPrice;
|
|
|
}
|
|
|
+
|
|
|
//处理下架商品和售罄商品
|
|
|
- if(this.product.validFlag =='3' || this.product.validFlag =='10' || this.stock == 0 ){
|
|
|
+
|
|
|
+ if(this.product.validFlag =='3' || this.product.validFlag =='10' || this.stock == 0 || this.product.price1TextFlag == "1"){
|
|
|
this.disabled = true
|
|
|
this.isNoneDisabled = true
|
|
|
- }else{
|
|
|
- this.disabled = false
|
|
|
- this.isNoneDisabled = false
|
|
|
- this.goodsData.disabledText = ''
|
|
|
- }
|
|
|
- if(this.product.price1TextFlag == "1"){
|
|
|
- this.disabled = true
|
|
|
- }
|
|
|
- if(this.product.price1TextFlag == "2"){
|
|
|
- if(this.userIdentity == 4){
|
|
|
+ }else if(this.product.price1TextFlag == "2"){
|
|
|
+ if(this.userIdentity == 4){
|
|
|
this.disabled = true
|
|
|
}else{
|
|
|
this.disabled = false
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.disabled = false
|
|
|
+ this.isNoneDisabled = false
|
|
|
+ this.goodsData.disabledText = ''
|
|
|
}
|
|
|
this.goodsData.disabled = this.disabled
|
|
|
this.goodsData.isNoneDisabled = this.isNoneDisabled
|