Authored by zhangxiaoru

indexSearch

@@ -70,7 +70,7 @@ router.get('/search/list', search.list); @@ -70,7 +70,7 @@ router.get('/search/list', search.list);
70 // filter 70 // filter
71 router.get('/search/filter', search.filter); 71 router.get('/search/filter', search.filter);
72 72
73 -//fuzzyDatas 73 +// fuzzyDatas
74 router.get('/search/fuzzyDatas', search.fuzzyDatas); 74 router.get('/search/fuzzyDatas', search.fuzzyDatas);
75 75
76 // ajax 请求商品数据 76 // ajax 请求商品数据
@@ -96,10 +96,9 @@ function inputAction() { @@ -96,10 +96,9 @@ function inputAction() {
96 success: function(data) { 96 success: function(data) {
97 var ajaxHtml = ''; 97 var ajaxHtml = '';
98 var i; 98 var i;
99 - console.log(data)  
100 99
101 if (data.length > 0) { 100 if (data.length > 0) {
102 - console.log(data.length) 101 + console.log(data.length);
103 for (i = 0; i < data.length; i++) { 102 for (i = 0; i < data.length; i++) {
104 ajaxHtml += '<li><span class="keyword">' + data[i].keyword + '</span><span class="count">' + 103 ajaxHtml += '<li><span class="keyword">' + data[i].keyword + '</span><span class="count">' +
105 data[i].count + ' items<i class="iconfont">&#xe614;</i></span></li>'; 104 data[i].count + ' items<i class="iconfont">&#xe614;</i></span></li>';