...
|
...
|
@@ -111,14 +111,32 @@ const getActivityDetail = () => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const getHomeActivity = () => {
|
|
|
var params = {
|
|
|
method: 'app.outlets.activityGet',
|
|
|
platform: 2,
|
|
|
size: 0,
|
|
|
yh_channel: 1,
|
|
|
type: 0,
|
|
|
sort: 2,
|
|
|
client_type: 'h5'
|
|
|
};
|
|
|
|
|
|
return api.get('', sign.apiSign(params)).then(res => {
|
|
|
return res;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
exports.getContent = () => {
|
|
|
let floorsData = {};
|
|
|
|
|
|
return Promise.all([getNavData(), getOutletResource(), getGoodsList()]).then(data => {
|
|
|
return Promise.all([getNavData(), getOutletResource(), getHomeActivity(), getGoodsList()]).then(data => {
|
|
|
floorsData.nav = data[0] || [];
|
|
|
floorsData.content = data[1] || [];
|
|
|
floorsData.goods = data[2];
|
|
|
floorsData.activity = data[2] || [];
|
|
|
floorsData.goods = data[3];
|
|
|
|
|
|
return floorsData;
|
|
|
});
|
...
|
...
|
|