Authored by 周少峰

nl2r

... ... @@ -12,27 +12,7 @@ const queryString = require('querystring');
* NL2R图片轮播
*/
const nl2r = (data) => {
const result = {
left: [],
right: []
};
// 左侧
_.forEach(data.left, (value) => {
result.left.push({
img: value.src,
url: value.url
});
});
// 右侧
_.forEach(data.right, (value) => {
result.right.push({
img: value.src,
url: value.url
});
});
return result;
return {topBanner: data};
};
/**
... ...