Authored by 于良

首页banner字段变动 review by 盖剑秋

... ... @@ -251,20 +251,8 @@ function parseBNS(json) {
let {resourceList, forumInfo} = json;
let {advertList, textNoticeList} = resourceList;
let bannerList = [];
let bannerList = advertList ? advertList : [];
let bannerDuration = '3';
if (advertList && advertList.list) {
if (advertList.list) {
advertList.list.map((item, i) => {
let url = item.url.length > 0 ? item.url[0] : '';
item.url = url;
});
}
bannerList = advertList.list;
if (advertList.speed) {
bannerDuration = advertList.speed;
}
}
let noticeList = [];
let noticeDuration = '3';
... ...