|
@@ -1121,6 +1121,21 @@ func IsShowAppointment(activityTypeId int, chartPermissionName string) (isShowAp
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//判断预约纪要按钮是否显示
|
|
|
|
+func IsShowAppointmentByactivityInfo(item *models.ActivityDetail, chartPermissionName string) (isShowAppointment bool) {
|
|
|
|
+ activityTypeId := item.ActivityTypeId
|
|
|
|
+ if activityTypeId == 1 || activityTypeId == 3 || activityTypeId == 4 {
|
|
|
|
+ isShowAppointment = true
|
|
|
|
+ }
|
|
|
|
+ if activityTypeId == 5 && chartPermissionName == "医药" {
|
|
|
|
+ isShowAppointment = true
|
|
|
|
+ }
|
|
|
|
+ if activityTypeId == 2 || item.IsLimitPeople == 0 {
|
|
|
|
+ isShowAppointment = true
|
|
|
|
+ }
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
//用户报告操作行为,模板消息推送 (先放在活动模块下,避免代码冲突)
|
|
//用户报告操作行为,模板消息推送 (先放在活动模块下,避免代码冲突)
|
|
func ArticleUserRemind(user *models.WxUserItem, articleDetail *models.ArticleDetail, source int) (err error) {
|
|
func ArticleUserRemind(user *models.WxUserItem, articleDetail *models.ArticleDetail, source int) (err error) {
|
|
defer func() {
|
|
defer func() {
|
|
@@ -1291,7 +1306,7 @@ func ActivityButtonShow(item *models.ActivityDetail) (articleDetail *models.Acti
|
|
|
|
|
|
//如果后台在添加活的时候,关联的报告类型不隐藏预约纪要按钮,而且满足以下展示预约纪要按钮类型就展示
|
|
//如果后台在添加活的时候,关联的报告类型不隐藏预约纪要按钮,而且满足以下展示预约纪要按钮类型就展示
|
|
if articleDetail.IsHideAppointment == 0 {
|
|
if articleDetail.IsHideAppointment == 0 {
|
|
- articleDetail.IsShowAppointment = IsShowAppointment(articleDetail.ActivityTypeId, articleDetail.ChartPermissionName)
|
|
|
|
|
|
+ articleDetail.IsShowAppointment = IsShowAppointmentByactivityInfo(articleDetail, articleDetail.ChartPermissionName)
|
|
}
|
|
}
|
|
//专家电话会 1
|
|
//专家电话会 1
|
|
if articleDetail.ActivityTypeId == 1 {
|
|
if articleDetail.ActivityTypeId == 1 {
|
|
@@ -1322,7 +1337,7 @@ func ActivityButtonShow(item *models.ActivityDetail) (articleDetail *models.Acti
|
|
|
|
|
|
//公司线下调研 4
|
|
//公司线下调研 4
|
|
if articleDetail.ActivityTypeId == 4 {
|
|
if articleDetail.ActivityTypeId == 4 {
|
|
- articleDetail.IsShowMeetingReminder = true
|
|
|
|
|
|
+ articleDetail.IsShowSignup = true
|
|
}
|
|
}
|
|
|
|
|
|
//专家线下沙龙 5
|
|
//专家线下沙龙 5
|