Bläddra i källkod

commit -m 商品状态显示修复

zhengjinyi 4 år sedan
förälder
incheckning
2950a66937
1 ändrade filer med 9 tillägg och 4 borttagningar
  1. 9 4
      pages/goods/product.vue

+ 9 - 4
pages/goods/product.vue

@@ -418,9 +418,16 @@
 						this.buyRetailPrice = this.product.retailPrice;
 					}
 					//处理下架商品和售罄商品
-					if(this.product.validFlag =='3' || this.stock == 0 || this.product.price1TextFlag == "1"){
-						this.disabled = true
+					if(this.product.validFlag =='3' || this.stock == 0){
 						this.isNoneDisabled = true
+						this.disabled = true
+					}else{			
+						this.disabled = false
+						this.isNoneDisabled = false
+						this.goodsData.disabledText = ''
+					}
+					if(this.product.price1TextFlag == "1"){
+						this.disabled = true
 					}else if(this.product.price1TextFlag == "2"){
 						if(this.userIdentity == 4){
 							this.disabled = true
@@ -429,8 +436,6 @@
 						}
 					}else{
 						this.disabled = false
-						this.isNoneDisabled = false
-						this.goodsData.disabledText = ''
 					}
 					this.goodsData.disabled = this.disabled
 					this.goodsData.isNoneDisabled = this.isNoneDisabled