Authored by yyq

Merge branch 'feature/suggestItem' into gray

... ... @@ -1766,7 +1766,7 @@ exports.handleSuggestData = (origin, query) => {
}];
_.forEach(origin, value => {
if (query === value.keyword) {
if (query === value.keyword || value.keyword.length <= 2) {
return;
}
... ...
... ... @@ -392,7 +392,7 @@ exports.getSearchKeywordData = (params, channel) => {
// 调用接口
let apiMethod = [
headerModel.requestHeaderData(channel),
searchApi.getSuggest({keyword: searchParams.query}),
searchApi.getSuggest({keyword: searchParams.query.substring(0, 2)}),
searchApi.getProductList(searchParams, 'fuzzySearch')
];
... ...
... ... @@ -2,7 +2,6 @@
{{# filters}}
{{> product/filter-box}}
{{/ filters}}
{{log filters}}
{{#if phrase}}
<div class="phrase">
... ...
... ... @@ -35,7 +35,7 @@ function randomString(len) {
function getSearchRecommend() {
$.ajax({
url: '//search.yohobuy.com/product/search/less/recommend',
url: '/product/search/less/recommend',
dataType: 'json',
success: function(data) {
... ...
... ... @@ -87,6 +87,10 @@
}
a {
width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
color: #666;
padding-left: 10px;
... ...