...
|
...
|
@@ -54,7 +54,9 @@ const _getOutletResource = (channel, contentcode) => { |
|
|
yh_channel: channel || ''
|
|
|
};
|
|
|
|
|
|
return serviceApi.get('operations/api/v5/resource/home', params).then(result => {
|
|
|
return serviceApi.get('operations/api/v5/resource/home', params, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
return resourcesProcess(result.data.list);
|
|
|
} else {
|
...
|
...
|
@@ -96,7 +98,9 @@ const _getNavData = (categoryId) => { |
|
|
parent_id: categoryId
|
|
|
};
|
|
|
|
|
|
return serviceApi.get('operations/api/v6/category/getCategory', params).then(result => {
|
|
|
return serviceApi.get('operations/api/v6/category/getCategory', params, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
let data = _convertNavData(result.data);
|
|
|
|
...
|
...
|
@@ -167,7 +171,9 @@ const _getActivityDetail = (id) => { |
|
|
};
|
|
|
|
|
|
|
|
|
return api.get('', params).then(res => {
|
|
|
return api.get('', params, {
|
|
|
cache: true
|
|
|
}).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
return _convertActicityData(res.data);
|
|
|
} else {
|
...
|
...
|
@@ -188,7 +194,9 @@ const _getHomeActivity = (data) => { |
|
|
platform: 3 // h5平台代号
|
|
|
};
|
|
|
|
|
|
return api.get('', _.assign(params, data)).then(res => {
|
|
|
return api.get('', _.assign(params, data), {
|
|
|
cache: true
|
|
|
}).then(res => {
|
|
|
return _convertActicityData(res.data);
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -258,7 +266,9 @@ const getActivityTime = (params) => { |
|
|
return api.get('', _.assign({
|
|
|
method: 'app.outlets.activityGet',
|
|
|
platform: 3 // h5平台代号
|
|
|
}, params)).then(res => {
|
|
|
}, params), {
|
|
|
cache: true
|
|
|
}).then(res => {
|
|
|
var times = [];
|
|
|
|
|
|
if (res && res.code === 200) {
|
...
|
...
|
@@ -274,8 +284,8 @@ const getActivityTime = (params) => { |
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
getContent: getContent,
|
|
|
getActivity: getActivity,
|
|
|
getRecentActivity: getRecentActivity,
|
|
|
getActivityTime: getActivityTime
|
|
|
getContent,
|
|
|
getActivity,
|
|
|
getRecentActivity,
|
|
|
getActivityTime
|
|
|
}; |
...
|
...
|
|