Authored by 周少峰

nl2r

@@ -12,27 +12,7 @@ const queryString = require('querystring'); @@ -12,27 +12,7 @@ const queryString = require('querystring');
12 * NL2R图片轮播 12 * NL2R图片轮播
13 */ 13 */
14 const nl2r = (data) => { 14 const nl2r = (data) => {
15 - const result = {  
16 - left: [],  
17 - right: []  
18 - };  
19 -  
20 - // 左侧  
21 - _.forEach(data.left, (value) => {  
22 - result.left.push({  
23 - img: value.src,  
24 - url: value.url  
25 - });  
26 - });  
27 -  
28 - // 右侧  
29 - _.forEach(data.right, (value) => {  
30 - result.right.push({  
31 - img: value.src,  
32 - url: value.url  
33 - });  
34 - });  
35 - return result; 15 + return {topBanner: data};
36 }; 16 };
37 17
38 /** 18 /**