فهرست منبع

Merge branch 'cygx_11.0' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 سال پیش
والد
کامیت
28c3b29fa6
2فایلهای تغییر یافته به همراه63 افزوده شده و 65 حذف شده
  1. 0 1
      controllers/activity.go
  2. 63 64
      services/activity.go

+ 0 - 1
controllers/activity.go

@@ -2070,7 +2070,6 @@ func (this *ActivityCoAntroller) ActivityListNew() {
 		//resp.List = append(resp.List, services.ActivityButtonShow(v))
 	}
 	resp.List = services.ActivityArrButtonShow(activityList)
-
 	// 查研观向7.4-判断标签是否为产业, 为产业时是否跳转资源包
 	if label != "" {
 		industry, e := models.GetIndustryByName(label)

+ 63 - 64
services/activity.go

@@ -2433,91 +2433,90 @@ func ActivityArrButtonShow(items []*models.ActivityDetail) (activityDetails []*m
 			activityDetail.SourceType = 1
 			activityDetail.IsShowSignup = false
 			activityDetail.IsShowDetails = true
-			return
-		}
 
-		//专家电话会 1
-		if activityDetail.ActivityTypeId == 1 && activityDetail.IsLimitPeople == 0 && (activityDetail.ActiveState == "1" || activityDetail.ActiveState == "2") {
-			activityDetail.IsShowHelpSsk = true
-		}
-		//新的是否展示规则
-		if activityDetail.IsCanAppointmentMinutes == 1 {
-			activityDetail.IsShowAppointment = true
 		} else {
-			activityDetail.IsShowAppointment = false
-		}
-		if activityDetail.ActiveState == "1" {
 			//专家电话会 1
-			//专家电话会限制人数的展示我要报名,不限制的展示预约外外呼
-			if activityDetail.ActivityTypeId == 1 {
-				//articleDetail.IsShowOutboundCall = true
-				if activityDetail.LimitPeopleNum == 0 {
-					activityDetail.IsShowOutboundCall = true
-					//articleDetail.IsShowHelpSsk = true
-				} else {
-					activityDetail.IsShowSignup = true
-				}
-				activityDetail.IsShowMeetingReminder = true
+			if activityDetail.ActivityTypeId == 1 && activityDetail.IsLimitPeople == 0 && (activityDetail.ActiveState == "1" || activityDetail.ActiveState == "2") {
 				activityDetail.IsShowHelpSsk = true
 			}
+			//新的是否展示规则
+			if activityDetail.IsCanAppointmentMinutes == 1 {
+				activityDetail.IsShowAppointment = true
+			} else {
+				activityDetail.IsShowAppointment = false
+			}
+			if activityDetail.ActiveState == "1" {
+				//专家电话会 1
+				//专家电话会限制人数的展示我要报名,不限制的展示预约外外呼
+				if activityDetail.ActivityTypeId == 1 {
+					//articleDetail.IsShowOutboundCall = true
+					if activityDetail.LimitPeopleNum == 0 {
+						activityDetail.IsShowOutboundCall = true
+						//articleDetail.IsShowHelpSsk = true
+					} else {
+						activityDetail.IsShowSignup = true
+					}
+					activityDetail.IsShowMeetingReminder = true
+					activityDetail.IsShowHelpSsk = true
+				}
 
-			//分析师电话会 2
-			if activityDetail.ActivityTypeId == 2 {
-				if activityDetail.LimitPeopleNum == 0 {
-					activityDetail.IsShowOutboundCall = true
-					//articleDetail.IsShowHelpSsk = true
-				} else {
-					activityDetail.IsShowSignup = true
+				//分析师电话会 2
+				if activityDetail.ActivityTypeId == 2 {
+					if activityDetail.LimitPeopleNum == 0 {
+						activityDetail.IsShowOutboundCall = true
+						//articleDetail.IsShowHelpSsk = true
+					} else {
+						activityDetail.IsShowSignup = true
+					}
+					activityDetail.IsShowMeetingReminder = true
+				}
+
+				//公司调研电话会 3
+				if activityDetail.ActivityTypeId == 3 {
+					if activityDetail.IsResearchPoints || activityDetail.LimitPeopleNum > 0 {
+						activityDetail.IsShowSignup = true
+					} else {
+						activityDetail.IsShowMeetingReminder = true
+						activityDetail.IsShowOutboundCall = true
+					}
 				}
-				activityDetail.IsShowMeetingReminder = true
-			}
 
-			//公司调研电话会 3
-			if activityDetail.ActivityTypeId == 3 {
-				if activityDetail.IsResearchPoints || activityDetail.LimitPeopleNum > 0 {
+				//公司线下调研 4
+				if activityDetail.ActivityTypeId == 4 {
 					activityDetail.IsShowSignup = true
-				} else {
-					activityDetail.IsShowMeetingReminder = true
-					activityDetail.IsShowOutboundCall = true
 				}
-			}
 
-			//公司线下调研 4
-			if activityDetail.ActivityTypeId == 4 {
-				activityDetail.IsShowSignup = true
-			}
+				//专家线下沙龙 5
+				if activityDetail.ActivityTypeId == 5 {
+					activityDetail.IsShowSignup = true
+				}
 
-			//专家线下沙龙 5
-			if activityDetail.ActivityTypeId == 5 {
-				activityDetail.IsShowSignup = true
-			}
+				//分析师线下沙龙 6
+				if activityDetail.ActivityTypeId == 6 {
+					activityDetail.IsShowSignup = true
+				}
 
-			//分析师线下沙龙 6
-			if activityDetail.ActivityTypeId == 6 {
-				activityDetail.IsShowSignup = true
-			}
+				//分析师电话会(C类) 7
+				if activityDetail.ActivityTypeId == 7 {
+					activityDetail.IsShowSignup = true
+					activityDetail.IsShowMeetingReminder = true
+					activityDetail.ActivityTypeName = "分析师电话会"
+				}
 
-			//分析师电话会(C类) 7
-			if activityDetail.ActivityTypeId == 7 {
-				activityDetail.IsShowSignup = true
-				activityDetail.IsShowMeetingReminder = true
-				activityDetail.ActivityTypeName = "分析师电话会"
+				//买方线下交流 8 // 查研观向 11.0
+				if activityDetail.ActivityTypeId == 8 {
+					activityDetail.IsShowSignup = true
+				}
 			}
 
-			//买方线下交流 8 // 查研观向 11.0
-			if activityDetail.ActivityTypeId == 8 {
+			//如果是易董创建的活动,展示我要报名,不展示预约外呼
+			if activityDetail.IsYidongConduct {
 				activityDetail.IsShowSignup = true
+				activityDetail.IsShowOutboundCall = false
 			}
 		}
-
-		//如果是易董创建的活动,展示我要报名,不展示预约外呼
-		if activityDetail.IsYidongConduct {
-			activityDetail.IsShowSignup = true
-			activityDetail.IsShowOutboundCall = false
-		}
 		activityDetails = append(activityDetails, activityDetail)
 	}
-
 	return
 }