...
|
...
|
@@ -54,7 +54,7 @@ const sortMap = dataMap.sort; |
|
|
|
|
|
// 构建url
|
|
|
const _httpBuildQuery = data => {
|
|
|
return searchApi.get('/search.json', data, {
|
|
|
return searchApi.get('search.json', data, {
|
|
|
cache: true
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -339,7 +339,7 @@ const _getGirlsSingleHot = (args, type) => { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
return searchApi.get('/search.json', {
|
|
|
return searchApi.get('search.json', {
|
|
|
client_type: 'web',
|
|
|
query: skns,
|
|
|
order: 'shelve_time:desc',
|
...
|
...
|
@@ -739,7 +739,7 @@ const _formatParams = (channel, data) => { |
|
|
if (data) {
|
|
|
params = Object.assign(data);
|
|
|
}
|
|
|
return searchApi.get('/search.json', params).then(result => {
|
|
|
return searchApi.get('search.json', params).then(result => {
|
|
|
let ret = result.data;
|
|
|
|
|
|
if (ret) {
|
...
|
...
|
@@ -784,10 +784,10 @@ const formatIndexGuideData = data => { |
|
|
});
|
|
|
|
|
|
return Promise.all(promiseArr).then(result => {
|
|
|
_.forEach(formatData, (item, index) => {
|
|
|
_.forEach(result, (it, idx) => {
|
|
|
if (formatData[index].channel === result[idx].channel) {
|
|
|
formatData[index].num = result[idx].total;
|
|
|
_.forEach(formatData, item => {
|
|
|
_.forEach(result, it => {
|
|
|
if (item && it && item.channel === it.channel) {
|
|
|
item.num = it.total;
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
|