...
|
...
|
@@ -201,11 +201,8 @@ exports.getBrands4Filter = (params) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.getSearchRecommend = (channel, params) => {
|
|
|
return searchApi.getSearchRecommend(channel, params).then(result => {
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
|
|
|
let channelNum = 1; // -eslint-disable-line
|
|
|
let channelNum = 1;
|
|
|
|
|
|
switch (channel) {
|
|
|
case 'boys':
|
...
|
...
|
@@ -215,8 +212,6 @@ exports.getSearchRecommend = (channel, params) => { |
|
|
channelNum = 2;
|
|
|
break;
|
|
|
case 'kids':
|
|
|
channelNum = 3;
|
|
|
break;
|
|
|
case 'lifestyle':
|
|
|
channelNum = 3;
|
|
|
break;
|
...
|
...
|
@@ -224,6 +219,10 @@ exports.getSearchRecommend = (channel, params) => { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
return searchApi.getSearchRecommend(channelNum, params).then(result => {
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
|
|
|
let resData = {
|
|
|
hotTerms: []
|
|
|
};
|
...
|
...
|
|