Browse Source

研选限免标签展示

xingzai 2 years ago
parent
commit
24e1d201bd
2 changed files with 5 additions and 3 deletions
  1. 1 1
      controllers/home.go
  2. 4 2
      controllers/report.go

+ 1 - 1
controllers/home.go

@@ -363,7 +363,7 @@ func (this *HomeController) ListHomeArtAndChart() {
 	var chartList []*models.HomeChartListResp
 	var err error
 	if listType == 1 {
-		if currentIndex <= 1 {
+		if currentIndex <= 2 {
 			listCtagId := [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
 			var chartIds string
 			for _, v := range listCtagId {

+ 4 - 2
controllers/report.go

@@ -1146,8 +1146,10 @@ func (this *ReportController) IsShow() {
 	if total > 0 {
 		resp.IsShow = true
 	}
-	resp.IsShowChart = true
-	resp.IsShowResearch = true
+	if user.CompanyId > 1 {
+		resp.IsShowChart = true
+		resp.IsShowResearch = true
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp