Authored by lijing

... ... @@ -259,7 +259,7 @@ const getArticle = (param) => {
};
/**
* 逛
* 逛切换
* @param params
*/
const getArticleGroup = (param) => {
... ... @@ -277,7 +277,7 @@ const getArticleGroup = (param) => {
let resu = {
guang: {
swiper: true
}
};
... ... @@ -302,11 +302,7 @@ const getArticleGroup = (param) => {
info: []
});
if ((val.id == type)) {
curIndex = indexTmp;
}
indexTmp++;
resu.guang.navs = build;
... ... @@ -316,39 +312,6 @@ const getArticleGroup = (param) => {
}
if (result[1].data.list.adlist) {
let swp = [];
let swiperList = result[1].data.list.adlist;
swiperList.forEach(val => {
swp.push({
url: guangProcess.getFilterUrl(val.url),
img: helpers.image(val.src, 640, 275)
});
});
resu.guang.swiper = swp;
// console.log(resu);
}
if (result[1].data.list.artList) {
let inf = [];
let infoList = result[1].data.list.artList;
infoList.forEach(val => {
inf.push(guangProcess.formatArticle(val, true, false, true));
});
resu.guang.infos[curIndex].info = inf;
}
return resu;
});
... ...