|
@@ -748,10 +748,15 @@ func (this *ActivityCoAntroller) Detail() {
|
|
|
resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
|
resp.MsgType = "Industry"
|
|
|
}
|
|
|
- resp.SellerMobile = companyItem.Mobile
|
|
|
- resp.SellerName = companyItem.SellerName
|
|
|
- resp.OperationMode = "Call"
|
|
|
- hasPermission = 2
|
|
|
+ if companyItem.ProductId == 2 {
|
|
|
+ resp.SellerMobile = companyItem.Mobile
|
|
|
+ resp.SellerName = companyItem.SellerName
|
|
|
+ resp.OperationMode = "Call"
|
|
|
+ hasPermission = 2
|
|
|
+ } else {
|
|
|
+ hasPermission = 5
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
} else { //潜在客户
|
|
|
if applyCount > 0 {
|
|
@@ -1160,17 +1165,21 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
resp.HaqveJurisdiction = true
|
|
|
}
|
|
|
} else {
|
|
|
- hasPermission = 2
|
|
|
- resp.SellerMobile = companyItem.Mobile
|
|
|
- resp.SellerName = companyItem.SellerName
|
|
|
- resp.MsgType = "Type"
|
|
|
- resp.OperationMode = "Call"
|
|
|
- if permissionStr == "专家" {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ if companyItem.ProductId == 2 {
|
|
|
+ hasPermission = 2
|
|
|
+ resp.SellerMobile = companyItem.Mobile
|
|
|
+ resp.SellerName = companyItem.SellerName
|
|
|
resp.MsgType = "Type"
|
|
|
+ resp.OperationMode = "Call"
|
|
|
+ if permissionStr == "专家" {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Type"
|
|
|
+ } else {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Industry"
|
|
|
+ }
|
|
|
} else {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
- resp.MsgType = "Industry"
|
|
|
+ hasPermission = 5
|
|
|
}
|
|
|
}
|
|
|
} else { //潜在客户
|
|
@@ -1639,17 +1648,21 @@ func (this *ActivityCoAntroller) MeetingReminderAdd() {
|
|
|
}
|
|
|
resp.HaqveJurisdiction = true
|
|
|
} else {
|
|
|
- hasPermission = 2
|
|
|
- resp.SellerMobile = companyItem.Mobile
|
|
|
- resp.SellerName = companyItem.SellerName
|
|
|
- resp.MsgType = "Type"
|
|
|
- resp.OperationMode = "Call"
|
|
|
- if permissionStr == "专家" {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ if companyItem.ProductId == 2 {
|
|
|
+ hasPermission = 2
|
|
|
+ resp.SellerMobile = companyItem.Mobile
|
|
|
+ resp.SellerName = companyItem.SellerName
|
|
|
resp.MsgType = "Type"
|
|
|
+ resp.OperationMode = "Call"
|
|
|
+ if permissionStr == "专家" {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Type"
|
|
|
+ } else {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Industry"
|
|
|
+ }
|
|
|
} else {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
- resp.MsgType = "Industry"
|
|
|
+ hasPermission = 5
|
|
|
}
|
|
|
}
|
|
|
} else { //潜在客户
|
|
@@ -2974,17 +2987,21 @@ func (this *ActivityCoAntroller) CheckAsk() {
|
|
|
signupStatus = "Success"
|
|
|
resp.HaqveJurisdiction = true
|
|
|
} else {
|
|
|
- hasPermission = 2
|
|
|
- resp.SellerMobile = companyItem.Mobile
|
|
|
- resp.SellerName = companyItem.SellerName
|
|
|
- resp.MsgType = "Type"
|
|
|
- resp.OperationMode = "Call"
|
|
|
- if permissionStr == "专家" {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ if companyItem.ProductId == 2 {
|
|
|
+ hasPermission = 2
|
|
|
+ resp.SellerMobile = companyItem.Mobile
|
|
|
+ resp.SellerName = companyItem.SellerName
|
|
|
resp.MsgType = "Type"
|
|
|
+ resp.OperationMode = "Call"
|
|
|
+ if permissionStr == "专家" {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Type"
|
|
|
+ } else {
|
|
|
+ resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ resp.MsgType = "Industry"
|
|
|
+ }
|
|
|
} else {
|
|
|
- resp.PopupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
- resp.MsgType = "Industry"
|
|
|
+ hasPermission = 5
|
|
|
}
|
|
|
}
|
|
|
} else { //潜在客户
|