Showing
1 changed file
with
2 additions
and
39 deletions
@@ -259,7 +259,7 @@ const getArticle = (param) => { | @@ -259,7 +259,7 @@ const getArticle = (param) => { | ||
259 | }; | 259 | }; |
260 | 260 | ||
261 | /** | 261 | /** |
262 | - * 逛 | 262 | + * 逛切换 |
263 | * @param params | 263 | * @param params |
264 | */ | 264 | */ |
265 | const getArticleGroup = (param) => { | 265 | const getArticleGroup = (param) => { |
@@ -277,7 +277,7 @@ const getArticleGroup = (param) => { | @@ -277,7 +277,7 @@ const getArticleGroup = (param) => { | ||
277 | 277 | ||
278 | let resu = { | 278 | let resu = { |
279 | guang: { | 279 | guang: { |
280 | - swiper: true | 280 | + |
281 | } | 281 | } |
282 | }; | 282 | }; |
283 | 283 | ||
@@ -302,11 +302,7 @@ const getArticleGroup = (param) => { | @@ -302,11 +302,7 @@ const getArticleGroup = (param) => { | ||
302 | info: [] | 302 | info: [] |
303 | }); | 303 | }); |
304 | 304 | ||
305 | - if ((val.id == type)) { | ||
306 | - curIndex = indexTmp; | ||
307 | - } | ||
308 | 305 | ||
309 | - indexTmp++; | ||
310 | 306 | ||
311 | resu.guang.navs = build; | 307 | resu.guang.navs = build; |
312 | 308 | ||
@@ -316,39 +312,6 @@ const getArticleGroup = (param) => { | @@ -316,39 +312,6 @@ const getArticleGroup = (param) => { | ||
316 | 312 | ||
317 | } | 313 | } |
318 | 314 | ||
319 | - if (result[1].data.list.adlist) { | ||
320 | - | ||
321 | - let swp = []; | ||
322 | - | ||
323 | - let swiperList = result[1].data.list.adlist; | ||
324 | - | ||
325 | - | ||
326 | - swiperList.forEach(val => { | ||
327 | - swp.push({ | ||
328 | - url: guangProcess.getFilterUrl(val.url), | ||
329 | - img: helpers.image(val.src, 640, 275) | ||
330 | - }); | ||
331 | - }); | ||
332 | - | ||
333 | - resu.guang.swiper = swp; | ||
334 | - | ||
335 | - // console.log(resu); | ||
336 | - | ||
337 | - } | ||
338 | - | ||
339 | - if (result[1].data.list.artList) { | ||
340 | - | ||
341 | - let inf = []; | ||
342 | - | ||
343 | - let infoList = result[1].data.list.artList; | ||
344 | - | ||
345 | - infoList.forEach(val => { | ||
346 | - inf.push(guangProcess.formatArticle(val, true, false, true)); | ||
347 | - }); | ||
348 | - | ||
349 | - resu.guang.infos[curIndex].info = inf; | ||
350 | - | ||
351 | - } | ||
352 | 315 | ||
353 | return resu; | 316 | return resu; |
354 | }); | 317 | }); |
-
Please register or login to post a comment