Authored by 于良

版块名称不显示bug fix;版块首页不显示公告bug fix; review by 盖剑秋

... ... @@ -211,7 +211,7 @@ function parseBNS(json) {
header: {
id: item.forumCode ? item.forumCode : 0,
logo: item.forumPic ? item.forumPic : '',
title: item.title ? item.title : '',
title: item.forumName ? item.forumName : '',
post: number10KFormater(item.postsNum),
comment: number10KFormater(item.commentsNum),
like: number10KFormater(item.praiseNum),
... ...
... ... @@ -225,7 +225,7 @@ function parseHeader(json) {
let {advertList, textNoticeList} = resourceList;
let uri = json.forumPic ? json.forumPic : '';
let title = json.title ? json.title : '';
let title = json.forumName ? json.forumName : '';
let post = number10KFormater(json.postsNum);
let comment = number10KFormater(json.commentsNum);
let like = number10KFormater(json.praiseNum);
... ... @@ -246,8 +246,8 @@ function parseHeader(json) {
if (textNoticeList.time) {
noticeDuration = textNoticeList.time;
};
if (noticeList.open) {
noticeOpen = noticeList.open;
if (textNoticeList.open) {
noticeOpen = textNoticeList.open;
}
}
... ...