Authored by uedxwg

update

@@ -17,8 +17,6 @@ var $icon = $('.search-icon'); @@ -17,8 +17,6 @@ var $icon = $('.search-icon');
17 var searchH = $('.newbrand-search').outerHeight(), 17 var searchH = $('.newbrand-search').outerHeight(),
18 headerH = $('.yoho-header').outerHeight(), 18 headerH = $('.yoho-header').outerHeight(),
19 brandSwipe = parseInt(searchH) + parseInt(headerH) - 1, 19 brandSwipe = parseInt(searchH) + parseInt(headerH) - 1,
20 - minBrandListTop,  
21 - searchArray = [],  
22 minBrandListTop; 20 minBrandListTop;
23 21
24 var brandsData, 22 var brandsData,
@@ -119,7 +117,6 @@ if ($('.brand-search-page').length) { @@ -119,7 +117,6 @@ if ($('.brand-search-page').length) {
119 $keyword = $('#keyword'); 117 $keyword = $('#keyword');
120 118
121 $keyword.on('input', function() { 119 $keyword.on('input', function() {
122 - $('.history').css('display', 'none');  
123 if ($keyword.val().length) { 120 if ($keyword.val().length) {
124 searchResult(); 121 searchResult();
125 $icon.css('color', '#000'); 122 $icon.css('color', '#000');
@@ -135,6 +132,7 @@ if ($('.brand-search-page').length) { @@ -135,6 +132,7 @@ if ($('.brand-search-page').length) {
135 clearTextHammer = new Hammer($('.clear-text')[0]); 132 clearTextHammer = new Hammer($('.clear-text')[0]);
136 clearTextHammer.on('tap', function(e) { 133 clearTextHammer.on('tap', function(e) {
137 e.preventDefault(); 134 e.preventDefault();
  135 + $('.search-result').html('');
138 $('#keyword').val('').trigger('input'); 136 $('#keyword').val('').trigger('input');
139 e.srcEvent.stopPropagation(); 137 e.srcEvent.stopPropagation();
140 }); 138 });
@@ -142,4 +140,5 @@ if ($('.brand-search-page').length) { @@ -142,4 +140,5 @@ if ($('.brand-search-page').length) {
142 $('form.search-box').on('submit', function() { 140 $('form.search-box').on('submit', function() {
143 return false; 141 return false;
144 }); 142 });
  143 +
145 } 144 }
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 left: 515rem / $pxConvertRem; 38 left: 515rem / $pxConvertRem;
39 border: none; 39 border: none;
40 background: transparent; 40 background: transparent;
41 - color: #b2b2b2; 41 + color: #000;
42 font-size: 30rem / $pxConvertRem; 42 font-size: 30rem / $pxConvertRem;
43 line-height: 56rem / $pxConvertRem; 43 line-height: 56rem / $pxConvertRem;
44 } 44 }
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 13
14 input { 14 input {
15 height: 30px; 15 height: 30px;
16 - width: 90%; 16 + width: 95%;
17 border-radius: 15px; 17 border-radius: 15px;
18 text-indent: 26px; 18 text-indent: 26px;
19 background: #fff; 19 background: #fff;
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 .search { 29 .search {
30 position: absolute; 30 position: absolute;
31 top: 12px; 31 top: 12px;
32 - right: 0; 32 + right: .4rem;
33 border: none; 33 border: none;
34 background: transparent; 34 background: transparent;
35 font-size: 16px; 35 font-size: 16px;