|
@@ -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
|
|
|
}
|
|
|
|