...
|
...
|
@@ -85,13 +85,14 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
return finalResult;
|
|
|
}
|
|
|
|
|
|
|
|
|
// 获取底部商品数据
|
|
|
if (!params.msort || !params.misort) {
|
|
|
Object.assign(
|
|
|
params,
|
|
|
{
|
|
|
msort: finalResult.goodsBoard.goodsMenu.msort.join(','),
|
|
|
misort: finalResult.goodsBoard.goodsMenu.misort.join(',')
|
|
|
msort: _.uniq(finalResult.goodsBoard.goodsMenu.msort).join(),
|
|
|
misort: _.uniq(finalResult.goodsBoard.goodsMenu.misort).join()
|
|
|
}
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -186,13 +187,19 @@ exports.getOutletsChannelData = (params, channel) => { |
|
|
}
|
|
|
|
|
|
// 获取底部商品数据
|
|
|
if (!params.msort || !params.misort) {
|
|
|
Object.assign(
|
|
|
params,
|
|
|
{
|
|
|
msort: _.uniq(channelData.goodsBoard.goodsMenu.msort).join(),
|
|
|
misort: _.uniq(channelData.goodsBoard.goodsMenu.misort).join()
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
return api.all([
|
|
|
outletsApi.getOutletsGoodsList(Object.assign(
|
|
|
params,
|
|
|
{limit: params.limit || '100', channel: channel, method: 'app.search.category',
|
|
|
msort: channelData.goodsBoard.goodsMenu.msort.join(),
|
|
|
misort: channelData.goodsBoard.goodsMenu.misort.join()
|
|
|
}
|
|
|
{limit: params.limit || '100', channel: channel, method: 'app.search.category'}
|
|
|
))
|
|
|
]).then(data => {
|
|
|
if (data[0].code === 200) {
|
...
|
...
|
|