...
|
...
|
@@ -93,14 +93,21 @@ const getGoodsList = () => { |
|
|
|
|
|
const getActivityDetail = () => {
|
|
|
var params = {
|
|
|
method: 'app.outlet.activityGet',
|
|
|
limit: 50,
|
|
|
page: 1,
|
|
|
outlets: 1
|
|
|
method: 'app.outlets.activityGet',
|
|
|
sort: 2,
|
|
|
platform: 2,
|
|
|
yh_channel: 1,
|
|
|
id: 170,
|
|
|
type: 0
|
|
|
};
|
|
|
|
|
|
return api.get('', sign.apiSign(params)).then(res => {
|
|
|
console.log(res);
|
|
|
if (res.code === 200) {
|
|
|
return res.data;
|
|
|
} else {
|
|
|
log.error('获取奥莱活动详情页接口返回状态码 不是 200', res);
|
|
|
return {};
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -111,9 +118,6 @@ exports.getContent = () => { |
|
|
return Promise.all([getNavData(), getOutletResource(), getGoodsList()]).then(data => {
|
|
|
floorsData.nav = data[0] || [];
|
|
|
floorsData.content = data[1] || [];
|
|
|
|
|
|
// floorsData.content.goods = data[2] || [];
|
|
|
|
|
|
floorsData.goods = data[2];
|
|
|
|
|
|
return floorsData;
|
...
|
...
|
@@ -122,5 +126,10 @@ exports.getContent = () => { |
|
|
|
|
|
|
|
|
exports.getActivity = () => {
|
|
|
return getActivityDetail();
|
|
|
return getActivityDetail().then(res => {
|
|
|
var data = {};
|
|
|
|
|
|
data.outletActivity = res;
|
|
|
return data;
|
|
|
});
|
|
|
}; |
...
|
...
|
|