|
@@ -387,8 +387,14 @@
|
|
this.shopId = response.data.shopID
|
|
this.shopId = response.data.shopID
|
|
this.product = response.data
|
|
this.product = response.data
|
|
//已删除/已冻结
|
|
//已删除/已冻结
|
|
- if(this.product.validFlag === '0'){
|
|
|
|
|
|
+ if(this.product.validFlag === '0' || this.product.validFlag =='10'){
|
|
this.isInvalid = true
|
|
this.isInvalid = true
|
|
|
|
+ }else if(this.product.validFlag === '9'){
|
|
|
|
+ if(this.userIdentity == 1){
|
|
|
|
+ this.isInvalid = true
|
|
|
|
+ }else{
|
|
|
|
+ this.isInvalid = false
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.ladderPriceFlag = this.product.ladderPriceFlag;
|
|
this.ladderPriceFlag = this.product.ladderPriceFlag;
|
|
this.html = this.product.productDetail == null ? this.html : this.$api.adaptRichTextImg(this.product.productDetail.detailInfo)
|
|
this.html = this.product.productDetail == null ? this.html : this.$api.adaptRichTextImg(this.product.productDetail.detailInfo)
|
|
@@ -411,10 +417,8 @@
|
|
this.retailPrice = this.product.retailPrice.toFixed(2);
|
|
this.retailPrice = this.product.retailPrice.toFixed(2);
|
|
this.buyRetailPrice = this.product.retailPrice;
|
|
this.buyRetailPrice = this.product.retailPrice;
|
|
}
|
|
}
|
|
-
|
|
|
|
//处理下架商品和售罄商品
|
|
//处理下架商品和售罄商品
|
|
-
|
|
|
|
- if(this.product.validFlag =='3' || this.product.validFlag =='10' || this.stock == 0 || this.product.price1TextFlag == "1"){
|
|
|
|
|
|
+ if(this.product.validFlag =='3' || this.stock == 0 || this.product.price1TextFlag == "1"){
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.isNoneDisabled = true
|
|
this.isNoneDisabled = true
|
|
}else if(this.product.price1TextFlag == "2"){
|
|
}else if(this.product.price1TextFlag == "2"){
|