Răsfoiți Sursa

新客福利

shish 4 ani în urmă
părinte
comite
93c5ea5339
1 a modificat fișierele cu 4 adăugiri și 6 ștergeri
  1. 4 6
      hdApp/src/pagesPurchase/ghsProduct.vue

+ 4 - 6
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -316,8 +316,6 @@ export default {
 	    },
 	    },
 		showBigCover(item){
 		showBigCover(item){
             this.$util.pageTo({url: "/admin/ghsProduct/detail",query: {id: item.id,ghsId:this.option.id}})
             this.$util.pageTo({url: "/admin/ghsProduct/detail",query: {id: item.id,ghsId:this.option.id}})
-			//this.popupShow=true
-			//this.infoData = item
 		},
 		},
 		init(){
 		init(){
 
 
@@ -362,8 +360,8 @@ export default {
 					this.createShareDiscount()
 					this.createShareDiscount()
 					uni.setNavigationBarTitle({title: this.ghsInfo.name})
 					uni.setNavigationBarTitle({title: this.ghsInfo.name})
 					this.option.id = res.data.id;
 					this.option.id = res.data.id;
-					//不是新人或者已经下过单的不显示新人红包
-					if(res.hasCg > 0 || res.new == 0){
+					//不是新人或者已经下过单的或者活动没有开启不显示新人红包
+					if(this.ghsInfo.hasCg == 1 || this.ghsInfo.new == 0 || this.ghsInfo.xrFl == 0 || this.ghsInfo.sendNewGift == 1){
 						this.isNewCustom = false
 						this.isNewCustom = false
 					}else{
 					}else{
 						this.isNewCustom = true
 						this.isNewCustom = true
@@ -379,8 +377,8 @@ export default {
 					this.visitMall(this.option.id)
 					this.visitMall(this.option.id)
 					this.createShareDiscount()
 					this.createShareDiscount()
 					uni.setNavigationBarTitle({title: this.ghsInfo.name})
 					uni.setNavigationBarTitle({title: this.ghsInfo.name})
-					//不是新人或者已经下过单的不显示新人红
-					if(res.hasCg > 0 || res.new == 0){
+					//不是新人或者已经下过单的或者活动没有开启不显示新人红
+					if(this.ghsInfo.hasCg == 1 || this.ghsInfo.new == 0 || this.ghsInfo.xrFl == 0 || this.ghsInfo.sendNewGift == 1){
 						this.isNewCustom = false
 						this.isNewCustom = false
 					}else{
 					}else{
 						this.isNewCustom = true
 						this.isNewCustom = true