...
|
...
|
@@ -19,7 +19,6 @@ var searchH = $('.newbrand-search').outerHeight(), |
|
|
|
|
|
var brandsData,
|
|
|
$keyword,
|
|
|
searchBtnHammer,
|
|
|
clearTextHammer,
|
|
|
removeHistory,
|
|
|
searchList,
|
...
|
...
|
@@ -167,13 +166,6 @@ if ($('.brand-search-page').length) { |
|
|
}
|
|
|
}).focus();
|
|
|
|
|
|
|
|
|
searchBtnHammer = new Hammer($('.search-btn')[0]);
|
|
|
searchBtnHammer.on('tap', function(e) {
|
|
|
searchResult();
|
|
|
e.srcEvent.stopPropagation();
|
|
|
});
|
|
|
|
|
|
clearTextHammer = new Hammer($('.clear-text')[0]);
|
|
|
clearTextHammer.on('tap', function(e) {
|
|
|
$('#keyword').val('').trigger('input');
|
...
|
...
|
@@ -186,7 +178,6 @@ if ($('.brand-search-page').length) { |
|
|
if (localStorage) {
|
|
|
|
|
|
yohoHistory = $.parseJSON('[' + localStorage.getItem('yohoHistory') + ']');
|
|
|
console.log(yohoHistory);
|
|
|
if (yohoHistory) {
|
|
|
$.each(yohoHistory, function(index, content) {
|
|
|
$('<a href="' + content.searchHref + '">' + content.searchName + '</a>').appendTo('.historyList');
|
...
|
...
|
|