Authored by 周少峰

outlets channel data

... ... @@ -50,7 +50,7 @@ exports.index = (req, res) => {
exports.channel = (req, res) => {
let resData = {
module: 'product',
page: 'outlets'
page: 'outlets',
};
// 首页模拟数据
... ...
... ... @@ -223,7 +223,7 @@ exports.handleOutletsActivityData = (origin, name) => {
let activity = {};
activity.href = helpers.urlFormat('/outlets/special/detail', { id: value.id });
activity.img = value.coverUrl;
activity.img = value.webCoverUrl;
activity.logo = value.logoUrl;
activity.title = value.title;
activity.limit = (value.endTime - nowTime) * 1000;
... ...
... ... @@ -97,8 +97,10 @@ exports.getOutletsChannelData = (params, channel) => {
apiArr.push(outletsApi.getOutletsActivityOrigin({
platform: 1,
size: 0,
channel: channel,
type: 1
}));
params.channel = channel;
apiArr.push(saleApi.getSaleGoodsList(params));
} else {
// 错误页面
... ...