Explorar o código

商品详情修改

zhengjinyi %!s(int64=4) %!d(string=hai) anos
pai
achega
1d0df32dbb
Modificáronse 1 ficheiros con 6 adicións e 8 borrados
  1. 6 8
      pages/goods/product.vue

+ 6 - 8
pages/goods/product.vue

@@ -395,15 +395,13 @@
 					this.shopId = response.data.shopID
 					this.product = response.data
 					//已删除/已冻结
-					if(this.identity!=1){
-						if(this.product.validFlag === '0' || this.product.validFlag =='10'){
+					if(this.product.validFlag === '0' || this.product.validFlag =='10'){
+						this.isInvalid = true
+					}else if(this.product.validFlag === '9'){
+						if(this.userIdentity == 1){
+							this.isInvalid = false
+						}else{
 							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;