Преглед на файлове

Merge branch 'cygx_12.0.1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai преди 1 година
родител
ревизия
fc73f39374
променени са 2 файла, в които са добавени 11 реда и са изтрити 7 реда
  1. 10 7
      controllers/activity.go
  2. 1 0
      controllers/banner.go

+ 10 - 7
controllers/activity.go

@@ -413,12 +413,12 @@ func (this *ActivityCoAntroller) Detail() {
 			}
 
 			// 查研观向7.4-行业新标签
-			//industryNewMap, e := services.GetIndustryNewLabelMap(industryIds)
-			//if e != nil {
-			//	br.Msg = "获取信息失败"
-			//	br.ErrMsg = "获取产业新标签失败, Err: " + e.Error()
-			//	return
-			//}
+			industryNewMap, e := services.GetIndustryNewLabelMap(industryIds)
+			if e != nil {
+				br.Msg = "获取信息失败"
+				br.ErrMsg = "获取产业新标签失败, Err: " + e.Error()
+				return
+			}
 
 			//判断产业下是否有关联的报告,并处理是否跳转
 			industrialManagementId = strings.TrimRight(industrialManagementId, ",")
@@ -442,7 +442,10 @@ func (this *ActivityCoAntroller) Detail() {
 					if mapIndustrial[v.IndustrialManagementId] > 0 && !industrialList[k].IsResearch {
 						industrialList[k].IsJump = true
 					}
-					//industrialList[k].IndustryNewLabel = industryNewMap[v.IndustrialManagementId]
+					//非买方研选下的才展示New标签
+					if activityInfo.ChartPermissionId != utils.CHART_PERMISSION_ID_YANXUAN {
+						industrialList[k].IndustryNewLabel = industryNewMap[v.IndustrialManagementId]
+					}
 				}
 			}
 		}

+ 1 - 0
controllers/banner.go

@@ -136,6 +136,7 @@ func (this *BannerController) ListYx() {
 			&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/2.png", Path: "pages-purchaser/survey/surveySubmit"},
 		}
 		listB = []*models.BannerUrlYxResp{
+			&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/4_short.png", Path: "pages-purchaser/specialColumn/specialColumn"},
 			&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/3.png", Path: "pages-purchaser/researchList/researchList"},
 		}
 	}