...
|
...
|
@@ -206,7 +206,7 @@ const getSearchData = (params) => { |
|
|
|
|
|
// 搜索过来的 推荐词条件判断 redmine: 18567
|
|
|
if (params.from === 'search' && params.page === 1 && (result.data.isChangedQuery === 'Y' ||
|
|
|
result.data.total <= 20 || params.needSuggestion === 'Y')) {
|
|
|
result.data.total < 20 || params.needSuggestion === 'Y')) {
|
|
|
|
|
|
params.isChangedQuery = result.data.isChangedQuery === 'Y';
|
|
|
|
...
|
...
|
@@ -215,8 +215,7 @@ const getSearchData = (params) => { |
|
|
termsSuggestion: productProcess.termsSuggestion(
|
|
|
result.data.suggestion && result.data.suggestion.terms_suggestion || [], params
|
|
|
),
|
|
|
isMaybeLike: (params.isChangedQuery || params.needSuggestion === 'Y') &&
|
|
|
result.data.total > 0 ? false : true // 猜你喜欢显示不显示判断
|
|
|
isMaybeLike: result.data.total < 20 // 搜索过来的 小于 20条 猜你喜欢显示不显示判断
|
|
|
};
|
|
|
suggestion.isNeedSuggestionOne = suggestion.termsSuggestion.length > 1;// 如果只有一个<或者试试不显示>
|
|
|
}
|
...
|
...
|
|