|
@@ -70,6 +70,7 @@ func GetClassListByClassifyId(user user.UserInfo, classifyIdFirst int) (list []*
|
|
temp.ClassifyIdSecond = item.Id
|
|
temp.ClassifyIdSecond = item.Id
|
|
temp.ParentId = item.ParentId
|
|
temp.ParentId = item.ParentId
|
|
temp.AuthorDescript = item.AuthorDescript
|
|
temp.AuthorDescript = item.AuthorDescript
|
|
|
|
+ temp.Abstract = item.Abstract
|
|
temp.ReportAuthor = item.ReportAuthor
|
|
temp.ReportAuthor = item.ReportAuthor
|
|
temp.HomeImgUrl = item.AvatarImgUrl // 此处图片用二级分类的"头像"
|
|
temp.HomeImgUrl = item.AvatarImgUrl // 此处图片用二级分类的"头像"
|
|
temp.ClassifyNameSecond = item.ClassifyName
|
|
temp.ClassifyNameSecond = item.ClassifyName
|
|
@@ -231,7 +232,7 @@ func GetClassifyReportList(user user.UserInfo, classifyIdSecond int, pageIndex,
|
|
if reportInfo.Abstract != "" {
|
|
if reportInfo.Abstract != "" {
|
|
reportItem.Abstract = "<div style=\"overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">" +reportInfo.Abstract+"</div>"
|
|
reportItem.Abstract = "<div style=\"overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">" +reportInfo.Abstract+"</div>"
|
|
}
|
|
}
|
|
- reportItem.Author = reportInfo.Author
|
|
|
|
|
|
+ reportItem.Author = classifyInfo.ReportAuthor
|
|
reportItem.ReportImgUrl = classifyInfo.AvatarImgUrl // 此处图片用二级分类的"头像"
|
|
reportItem.ReportImgUrl = classifyInfo.AvatarImgUrl // 此处图片用二级分类的"头像"
|
|
reportItem.VideoName = reportInfo.VideoName
|
|
reportItem.VideoName = reportInfo.VideoName
|
|
reportItem.VideoPlaySeconds = reportInfo.VideoPlaySeconds
|
|
reportItem.VideoPlaySeconds = reportInfo.VideoPlaySeconds
|