Authored by zhangxiaoru

search

@@ -61,10 +61,9 @@ chHammer.on('tap', function() { @@ -61,10 +61,9 @@ chHammer.on('tap', function() {
61 }); 61 });
62 62
63 // 跳到搜索页 63 // 跳到搜索页
64 -function GoSearch(query) { 64 +function goSearch(query) {
65 // 保存搜索的内容 65 // 保存搜索的内容
66 writeSearch.setHistoryValFun(query); 66 writeSearch.setHistoryValFun(query);
67 - console.log(searchUrl);  
68 document.location.href = searchUrl + '?query=' + query; 67 document.location.href = searchUrl + '?query=' + query;
69 } 68 }
70 69
@@ -112,7 +111,7 @@ function inputAction() { @@ -112,7 +111,7 @@ function inputAction() {
112 } 111 }
113 112
114 $searchAssociate.find('li').on('touchend', function() { 113 $searchAssociate.find('li').on('touchend', function() {
115 - GoSearch($(this).find('.keyword').html()); 114 + goSearch($(this).find('.keyword').html());
116 }); 115 });
117 }, 116 },
118 error: function() { 117 error: function() {
@@ -134,7 +133,7 @@ $('.search-items .search-group').on('click', 'li', function(event) { @@ -134,7 +133,7 @@ $('.search-items .search-group').on('click', 'li', function(event) {
134 query = $(event.target).find('a').html(); 133 query = $(event.target).find('a').html();
135 } 134 }
136 135
137 - GoSearch(query); 136 + goSearch(query);
138 }); 137 });
139 138
140 inputAction(); 139 inputAction();