|
@@ -14,6 +14,7 @@ import (
|
|
|
"hongze/hongze_yb/services/user"
|
|
|
"hongze/hongze_yb/utils"
|
|
|
"sort"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -650,12 +651,22 @@ func GetHomeFiccPermissions(user user.UserInfo) (list response.PermissionFiccLis
|
|
|
temp := new(response.PermissionFiccItem)
|
|
|
temp.Sort = v.Sort
|
|
|
temp.ClassifyName = k
|
|
|
- if temp.ClassifyName == "化工产业" {
|
|
|
+ if strings.Contains(temp.ClassifyName, "宏观") {
|
|
|
+ temp.ClassifyName = "宏观经济"
|
|
|
+ temp.SelectIconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_hongguan_select.png"
|
|
|
+ temp.IconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_hongguan.png"
|
|
|
+ }else if temp.ClassifyName == "化工产业" {
|
|
|
temp.ClassifyName = "化工"
|
|
|
+ temp.SelectIconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_huagong_select.png"
|
|
|
+ temp.IconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_huagong.png"
|
|
|
}else if temp.ClassifyName == "黑色产业" {
|
|
|
temp.ClassifyName = "黑色"
|
|
|
+ temp.SelectIconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_black_select.png"
|
|
|
+ temp.IconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_black.png"
|
|
|
}else if temp.ClassifyName == "有色产业" {
|
|
|
temp.ClassifyName = "有色"
|
|
|
+ temp.SelectIconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_youse_select.png"
|
|
|
+ temp.IconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_youse.png"
|
|
|
}
|
|
|
if len(v.List) > 0 {
|
|
|
temp.List = v.List
|
|
@@ -667,5 +678,11 @@ func GetHomeFiccPermissions(user user.UserInfo) (list response.PermissionFiccLis
|
|
|
if len(list) > 0 {
|
|
|
sort.Sort(list)
|
|
|
}
|
|
|
+ temp := new(response.PermissionFiccItem)
|
|
|
+ temp.SelectIconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_more_select.png"
|
|
|
+ temp.IconUrl = utils.ALIYUN_YBIMG_HOST+"ficc_icon_idx_more.png"
|
|
|
+ temp.ClassifyName = "更多报告"
|
|
|
+ temp.Sort = 100000
|
|
|
+ list = append(list, temp)
|
|
|
return
|
|
|
}
|