Эх сурвалжийг харах

活动详情,临时标签展示

xingzai 2 жил өмнө
parent
commit
88c0294899

+ 2 - 1
controllers/activity.go

@@ -865,7 +865,8 @@ func (this *ActivityCoAntroller) Detail() {
 			br.ErrMsg = "获取活动关联的产业列表信息失败,Err:" + err.Error() + "activityId:" + strconv.Itoa(activityId)
 			return
 		}
-		if len(industrialList) == 0 {
+		if activityInfo.TemporaryLabel != "" {
+			industrialList = make([]*models.IndustrialManagementRep, 0)
 			item := new(models.IndustrialManagementRep)
 			item.IndustryName = activityInfo.Label
 			industrialList = append(industrialList, item)

+ 1 - 0
models/activity.go

@@ -121,6 +121,7 @@ type ActivityDetail struct {
 	IsShowMeetingReminder   bool                       `description:"是否展示会议提醒"`
 	IsShowHelpSsk           bool                       `description:"是否展示帮我带问"`
 	IsShowSignup            bool                       `description:"是否展示我要报名"`
+	TemporaryLabel          string                     `description:"临时标签"`
 }
 
 type CygxActivityResp struct {