Browse Source

只有注册了才判断是否花店身份

shish 3 years ago
parent
commit
0958519ca2
1 changed files with 8 additions and 2 deletions
  1. 8 2
      hdApp/src/pagesPurchase/ghsProduct.vue

+ 8 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -505,7 +505,10 @@ export default {
 					let id = res.data.id
 					let id = res.data.id
 					this.ghsId = id
 					this.ghsId = id
 					this.buyNotice = res.data.buyNotice
 					this.buyNotice = res.data.buyNotice
-					this.isHd = Number(res.data.isHd)
+					//只有注册了才判断他是不是花店身份
+					if(Number(id)>0){
+						this.isHd = Number(res.data.isHd)
+					}
 					if(this.buyNotice == 1){
 					if(this.buyNotice == 1){
 						this.myClass = 'fadeIn'
 						this.myClass = 'fadeIn'
 					}
 					}
@@ -533,7 +536,10 @@ export default {
 					this.ghsInfo = res.data
 					this.ghsInfo = res.data
 					this.shopId = res.data.shopId
 					this.shopId = res.data.shopId
 					this.buyNotice = res.data.buyNotice
 					this.buyNotice = res.data.buyNotice
-					this.isHd = Number(res.data.isHd)
+					//只有注册了才判断他是不是花店身份
+					if(this.option.id && Number(this.option.id)>0){
+						this.isHd = Number(res.data.isHd)
+					}
 					if(this.buyNotice == 1){
 					if(this.buyNotice == 1){
 						this.myClass = 'fadeIn'
 						this.myClass = 'fadeIn'
 					}
 					}