...
|
...
|
@@ -40,6 +40,7 @@ const transPrice = (price) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.getSearchData = (params, channel) => {
|
|
|
|
|
|
let searchParams = searchHandler.getSearchParams(params);
|
|
|
|
|
|
switch (channel) {
|
...
|
...
|
@@ -114,7 +115,7 @@ exports.getSearchData = (params, channel) => { |
|
|
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
|
|
|
shopEntry: result[3],
|
|
|
name: params.query,
|
|
|
suggest: (termsSuggestion.length !== 0) ? termsSuggestion.splice(0, 3) : false,
|
|
|
suggest: (termsSuggestion.length !== 0) ? termsSuggestion.slice(0, 3) : false,
|
|
|
changedQuery: result[2].data.isChangedQuery === 'Y',
|
|
|
suggestFirst: finalResult.search.suggestFirst,
|
|
|
suggestSecond: finalResult.search.suggestSecond
|
...
|
...
|
|