Authored by 于良

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

@@ -211,7 +211,7 @@ function parseBNS(json) { @@ -211,7 +211,7 @@ function parseBNS(json) {
211 header: { 211 header: {
212 id: item.forumCode ? item.forumCode : 0, 212 id: item.forumCode ? item.forumCode : 0,
213 logo: item.forumPic ? item.forumPic : '', 213 logo: item.forumPic ? item.forumPic : '',
214 - title: item.title ? item.title : '', 214 + title: item.forumName ? item.forumName : '',
215 post: number10KFormater(item.postsNum), 215 post: number10KFormater(item.postsNum),
216 comment: number10KFormater(item.commentsNum), 216 comment: number10KFormater(item.commentsNum),
217 like: number10KFormater(item.praiseNum), 217 like: number10KFormater(item.praiseNum),
@@ -225,7 +225,7 @@ function parseHeader(json) { @@ -225,7 +225,7 @@ function parseHeader(json) {
225 let {advertList, textNoticeList} = resourceList; 225 let {advertList, textNoticeList} = resourceList;
226 226
227 let uri = json.forumPic ? json.forumPic : ''; 227 let uri = json.forumPic ? json.forumPic : '';
228 - let title = json.title ? json.title : ''; 228 + let title = json.forumName ? json.forumName : '';
229 let post = number10KFormater(json.postsNum); 229 let post = number10KFormater(json.postsNum);
230 let comment = number10KFormater(json.commentsNum); 230 let comment = number10KFormater(json.commentsNum);
231 let like = number10KFormater(json.praiseNum); 231 let like = number10KFormater(json.praiseNum);
@@ -246,8 +246,8 @@ function parseHeader(json) { @@ -246,8 +246,8 @@ function parseHeader(json) {
246 if (textNoticeList.time) { 246 if (textNoticeList.time) {
247 noticeDuration = textNoticeList.time; 247 noticeDuration = textNoticeList.time;
248 }; 248 };
249 - if (noticeList.open) {  
250 - noticeOpen = noticeList.open; 249 + if (textNoticeList.open) {
  250 + noticeOpen = textNoticeList.open;
251 } 251 }
252 } 252 }
253 253