...
|
...
|
@@ -130,7 +130,9 @@ const _getChannelResource = (params) => { |
|
|
params.new_device = true; // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
return api.get('operations/api/v5/resource/home', params, true).then(result => {
|
|
|
return api.get('operations/api/v5/resource/home', params, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
return resourcesProcess(result.data.list);
|
|
|
} else {
|
...
|
...
|
@@ -148,7 +150,9 @@ const _getChannelResource = (params) => { |
|
|
const _getLeftNav = (choosed) => {
|
|
|
choosed = choosed || 'all';
|
|
|
|
|
|
return api.get('operations/api/v6/category/getCategory', {}, true).then(result => {
|
|
|
return api.get('operations/api/v6/category/getCategory', {}, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
return _processSideBar(result.data, choosed);
|
|
|
} else {
|
...
|
...
|
@@ -163,7 +167,9 @@ const _getLeftNav = (choosed) => { |
|
|
* @return {[type]}
|
|
|
*/
|
|
|
const _getChannelList = () => {
|
|
|
return api.get('operations/api/v5/entrance/getEntrance', {}, true).then((result) => {
|
|
|
return api.get('operations/api/v5/entrance/getEntrance', {}, {
|
|
|
cache: true
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
const list = {};
|
|
|
|
...
|
...
|
@@ -198,7 +204,9 @@ const _getChannelList = () => { |
|
|
const _getChannelBg = () => {
|
|
|
return api.get('operations/api/v5/resource/get', {
|
|
|
content_code: contentCode.index
|
|
|
}, true).then(result => {
|
|
|
}, {
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result && result.code === 200) {
|
|
|
return result.data.length && result.data[0] && result.data[0].data && result.data[0].data.list[0];
|
|
|
} else {
|
...
|
...
|
|