...
|
...
|
@@ -71,8 +71,9 @@ chHammer.on('tap', function() { |
|
|
// 跳到搜索页
|
|
|
function goSearch(query) {
|
|
|
// 保存搜索的内容
|
|
|
|
|
|
writeSearch.setHistoryValFun(query);
|
|
|
document.location.href = searchUrl + '?query=' + query;
|
|
|
document.location.href = searchUrl + '?query=' + encodeURIComponent(query);
|
|
|
}
|
|
|
|
|
|
// 搜索输入联动
|
...
|
...
|
@@ -175,11 +176,11 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
|
|
var query = '';
|
|
|
|
|
|
if (event.target.nodeName === 'A') {
|
|
|
query = $(event.target).html();
|
|
|
query = $(event.target).text();
|
|
|
}
|
|
|
|
|
|
if (event.target.nodeName === 'LI') {
|
|
|
query = $(event.target).find('a').html();
|
|
|
query = $(event.target).find('a').text();
|
|
|
}
|
|
|
|
|
|
if ($(this).parents('.search-group').hasClass('history-search')) {
|
...
|
...
|
@@ -210,8 +211,8 @@ $('.search-items .search-group').on('click', 'li', function(event) { |
|
|
});
|
|
|
|
|
|
$('.hot-term').on('click', function(event) {
|
|
|
var Hotquery = '',
|
|
|
POS_ID = 2,
|
|
|
var Hotquery = '';
|
|
|
POS_ID = 2;
|
|
|
FLR_INDEX = 2;
|
|
|
|
|
|
if (event.target.nodeName === 'A') {
|
...
|
...
|
|