首页banner字段变动 review by 盖剑秋
Showing
1 changed file
with
1 additions
and
13 deletions
@@ -251,20 +251,8 @@ function parseBNS(json) { | @@ -251,20 +251,8 @@ function parseBNS(json) { | ||
251 | let {resourceList, forumInfo} = json; | 251 | let {resourceList, forumInfo} = json; |
252 | let {advertList, textNoticeList} = resourceList; | 252 | let {advertList, textNoticeList} = resourceList; |
253 | 253 | ||
254 | - let bannerList = []; | 254 | + let bannerList = advertList ? advertList : []; |
255 | let bannerDuration = '3'; | 255 | let bannerDuration = '3'; |
256 | - if (advertList && advertList.list) { | ||
257 | - if (advertList.list) { | ||
258 | - advertList.list.map((item, i) => { | ||
259 | - let url = item.url.length > 0 ? item.url[0] : ''; | ||
260 | - item.url = url; | ||
261 | - }); | ||
262 | - } | ||
263 | - bannerList = advertList.list; | ||
264 | - if (advertList.speed) { | ||
265 | - bannerDuration = advertList.speed; | ||
266 | - } | ||
267 | - } | ||
268 | 256 | ||
269 | let noticeList = []; | 257 | let noticeList = []; |
270 | let noticeDuration = '3'; | 258 | let noticeDuration = '3'; |
-
Please register or login to post a comment