|
@@ -71,8 +71,9 @@ chHammer.on('tap', function() { |
|
@@ -71,8 +71,9 @@ chHammer.on('tap', function() { |
71
|
// 跳到搜索页
|
71
|
// 跳到搜索页
|
72
|
function goSearch(query) {
|
72
|
function goSearch(query) {
|
73
|
// 保存搜索的内容
|
73
|
// 保存搜索的内容
|
|
|
74
|
+
|
74
|
writeSearch.setHistoryValFun(query);
|
75
|
writeSearch.setHistoryValFun(query);
|
75
|
- document.location.href = searchUrl + '?query=' + query;
|
76
|
+ document.location.href = searchUrl + '?query=' + encodeURIComponent(query);
|
76
|
}
|
77
|
}
|
77
|
|
78
|
|
78
|
// 搜索输入联动
|
79
|
// 搜索输入联动
|
|
@@ -175,11 +176,11 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
|
@@ -175,11 +176,11 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
175
|
var query = '';
|
176
|
var query = '';
|
176
|
|
177
|
|
177
|
if (event.target.nodeName === 'A') {
|
178
|
if (event.target.nodeName === 'A') {
|
178
|
- query = $(event.target).html();
|
179
|
+ query = $(event.target).text();
|
179
|
}
|
180
|
}
|
180
|
|
181
|
|
181
|
if (event.target.nodeName === 'LI') {
|
182
|
if (event.target.nodeName === 'LI') {
|
182
|
- query = $(event.target).find('a').html();
|
183
|
+ query = $(event.target).find('a').text();
|
183
|
}
|
184
|
}
|
184
|
|
185
|
|
185
|
if ($(this).parents('.search-group').hasClass('history-search')) {
|
186
|
if ($(this).parents('.search-group').hasClass('history-search')) {
|
|
@@ -210,8 +211,8 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
|
@@ -210,8 +211,8 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
210
|
});
|
211
|
});
|
211
|
|
212
|
|
212
|
$('.hot-term').on('click', function(event) {
|
213
|
$('.hot-term').on('click', function(event) {
|
213
|
- var Hotquery = '',
|
|
|
214
|
- POS_ID = 2,
|
214
|
+ var Hotquery = '';
|
|
|
215
|
+ POS_ID = 2;
|
215
|
FLR_INDEX = 2;
|
216
|
FLR_INDEX = 2;
|
216
|
|
217
|
|
217
|
if (event.target.nodeName === 'A') {
|
218
|
if (event.target.nodeName === 'A') {
|