Authored by lijing

@@ -254,75 +254,15 @@ const getArticle = (param) => { @@ -254,75 +254,15 @@ const getArticle = (param) => {
254 } 254 }
255 255
256 return resu; 256 return resu;
257 - });  
258 -  
259 -};  
260 -  
261 -/**  
262 - * 逛切换  
263 - * @param params  
264 - */  
265 -const getArticleGroup = (param) => {  
266 -  
267 - let page = param.page ? param.page : 1;  
268 -  
269 - Object.assign(param, { page: page });  
270 -  
271 - return api.all([  
272 - _category(),  
273 - _article(param)  
274 - ]).then(result => {  
275 -  
276 - let type = param.type;  
277 -  
278 - let resu = {  
279 - guang: {  
280 -  
281 - }  
282 - };  
283 -  
284 - if (result[0] && result[0].data) {  
285 -  
286 - let cateList = result[0].data;  
287 -  
288 - let build = [];  
289 -  
290 - let inf = [];  
291 257
292 - cateList.forEach(val => {  
293 - build.push({  
294 - typeId: val.id,  
295 - type: val.name,  
296 - focus: (val.id == type)  
297 - });  
298 -  
299 - inf.push({  
300 - show: (val.id == type),  
301 - typeId: type,  
302 - info: []  
303 - });  
304 -  
305 -  
306 -  
307 - resu.guang.navs = build;  
308 -  
309 - resu.guang.infos = inf;  
310 -  
311 - });  
312 -  
313 - }  
314 -  
315 -  
316 - return resu; 258 + console.log(resu.guang.infos);
317 }); 259 });
318 260
319 }; 261 };
320 262
321 -  
322 module.exports = { 263 module.exports = {
323 getAuthor: _getAuthor, 264 getAuthor: _getAuthor,
324 getArticleList: _getArticleList, 265 getArticleList: _getArticleList,
325 getPageData: _getPageData, 266 getPageData: _getPageData,
326 - getArticle,  
327 - getArticleGroup 267 + getArticle
328 }; 268 };