...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2016-05-30 16:20:03
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2016-06-08 14:19:17
|
|
|
* @Last Modified time: 2016-06-08 14:54:51
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
...
|
...
|
@@ -16,6 +16,7 @@ const outletsProcess = require('./outlets-handler'); |
|
|
const outletsApi = require('./outlets-api');
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
const publicHandler = require('./public-handler');
|
|
|
|
...
|
...
|
@@ -182,12 +183,15 @@ exports.getOutletsCategoryData = (params, channel) => { |
|
|
let finalResult = result[0];
|
|
|
|
|
|
return api.all([
|
|
|
list.getSaleOthersData(params, channel),
|
|
|
saleApi.getSaleBannerList(channelCode.index)
|
|
|
list.getSaleOthersData(params, channel)
|
|
|
]).then(listResult => {
|
|
|
finalResult.saleList = listResult[0];
|
|
|
if (listResult[1].code === 200) {
|
|
|
finalResult.saleList.topBanner = publicHandler.handleBannerData(listResult[1].data);
|
|
|
console.log(params);
|
|
|
if (!_.isEmpty(params.bannerImage)) {
|
|
|
finalResult.saleList.topBanner = {};
|
|
|
finalResult.saleList.topBanner.list = [];
|
|
|
finalResult.saleList.topBanner.list[0] = {};
|
|
|
finalResult.saleList.topBanner.list[0].img = params.bannerImage;
|
|
|
}
|
|
|
return finalResult;
|
|
|
});
|
...
|
...
|
|