Authored by zhangxiaoru

search hide

@@ -80,6 +80,7 @@ function inputAction() { @@ -80,6 +80,7 @@ function inputAction() {
80 var $searchAssociate = $('.search-associate'); 80 var $searchAssociate = $('.search-associate');
81 var $icon = $('.search-icon'); 81 var $icon = $('.search-icon');
82 var $searchItems = $('.search-items'); 82 var $searchItems = $('.search-items');
  83 + var $hotsearch = $('.hot-search-new');
83 84
84 $input.on('input', function() { 85 $input.on('input', function() {
85 if ($input.val() === '') { 86 if ($input.val() === '') {
@@ -87,6 +88,7 @@ function inputAction() { @@ -87,6 +88,7 @@ function inputAction() {
87 $clear.addClass('hide'); 88 $clear.addClass('hide');
88 $searchAssociate.html(''); 89 $searchAssociate.html('');
89 $searchItems.show(); 90 $searchItems.show();
  91 + $hotsearch.show();
90 $searchAssociate.hide(); 92 $searchAssociate.hide();
91 } else { 93 } else {
92 $icon.css('color', '#666'); 94 $icon.css('color', '#666');
@@ -114,6 +116,7 @@ function inputAction() { @@ -114,6 +116,7 @@ function inputAction() {
114 116
115 $searchAssociate.html(ajaxHtml); 117 $searchAssociate.html(ajaxHtml);
116 $searchItems.hide(); 118 $searchItems.hide();
  119 + $hotsearch.hide();
117 } else { 120 } else {
118 $searchAssociate.html(''); 121 $searchAssociate.html('');
119 } 122 }