Authored by ccbikai

取消搜索按钮

... ... @@ -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');
... ...
... ... @@ -6,7 +6,7 @@
<i class="search-icon iconfont">&#xe60f;</i>
<div class="search-action">
<span class="iconfont clear-text">&#xe623;</span>
<span class="search-btn">搜索</span>
<a class="cancel-btn" href="javascript: history.go(-1);">取消</span>
</div>
</form>
</div>
... ...