xingzai 1 år sedan
förälder
incheckning
3a39625277
2 ändrade filer med 17 tillägg och 13 borttagningar
  1. 3 0
      controllers/report.go
  2. 14 13
      models/report.go

+ 3 - 0
controllers/report.go

@@ -1456,6 +1456,8 @@ func (this *ReportController) IsShow() {
 	resp.IsShowResearchPoints = true
 	if utils.RunMode == "release" { //是否展示关于我们的视频,测试环境审核做隐藏
 		resp.IsShowAboutVideo = true
+	} else {
+		resp.IsShowMobileAndEmailButton = true //是否展示手机号跟邮箱按钮
 	}
 	//mobile := user.Mobile
 	//if mobile == "" {
@@ -1474,6 +1476,7 @@ func (this *ReportController) IsShow() {
 	resp.SearchTxtList.YanXuanSearch = "全局搜索"
 	resp.SearchTxtList.ActivitySearch = "全局搜索"
 	resp.SearchTxtList.TabSearch = "请输入关键词"
+
 	resp.IsShow = true
 	br.Ret = 200
 	br.Success = true

+ 14 - 13
models/report.go

@@ -371,19 +371,20 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
 }
 
 type IsShow struct {
-	IsShow                 bool      `description:"绝密内参按钮是否展示"`
-	IsShowFreeButton       bool      `description:"免费送月卡按钮是否展示"`
-	IsShowResearch         bool      `description:"研选是否展示限免"`
-	IsShowChart            bool      `description:"图表是否展示限免"`
-	IsShowList             bool      `description:"榜单是否展示"`
-	LinkWxExplain          string    `description:"关注微信公众号链接说明地址"`
-	YanXuan_Explain        bool      `description:"研选说明"`
-	ActivitySpecialExplain string    `description:"专项调研活动"`
-	SearchTxtList          SearchTxt `description:"搜索栏回显内容说明"`
-	IsBelongRai            bool      `description:"是否属于权益内部人员"`
-	IsShowResearchPoints   bool      `description:"是否展示研选扣点搜索"`
-	IsShowQuestionnaire    bool      `description:"是否展示研选问卷调查"`
-	IsShowAboutVideo       bool      `description:"是否展示关于我们的视频"`
+	IsShow                     bool      `description:"绝密内参按钮是否展示"`
+	IsShowFreeButton           bool      `description:"免费送月卡按钮是否展示"`
+	IsShowResearch             bool      `description:"研选是否展示限免"`
+	IsShowChart                bool      `description:"图表是否展示限免"`
+	IsShowList                 bool      `description:"榜单是否展示"`
+	LinkWxExplain              string    `description:"关注微信公众号链接说明地址"`
+	YanXuan_Explain            bool      `description:"研选说明"`
+	ActivitySpecialExplain     string    `description:"专项调研活动"`
+	SearchTxtList              SearchTxt `description:"搜索栏回显内容说明"`
+	IsBelongRai                bool      `description:"是否属于权益内部人员"`
+	IsShowResearchPoints       bool      `description:"是否展示研选扣点搜索"`
+	IsShowQuestionnaire        bool      `description:"是否展示研选问卷调查"`
+	IsShowAboutVideo           bool      `description:"是否展示关于我们的视频"`
+	IsShowMobileAndEmailButton bool      `description:"是否展示手机号跟邮箱按钮"`
 }
 
 type SearchTxt struct {