Showing
2 changed files
with
8 additions
and
5 deletions
@@ -166,19 +166,21 @@ if ($('.brand-search-page').length) { | @@ -166,19 +166,21 @@ if ($('.brand-search-page').length) { | ||
166 | 166 | ||
167 | $keyword.on('input', function() { | 167 | $keyword.on('input', function() { |
168 | if ($keyword.val().length) { | 168 | if ($keyword.val().length) { |
169 | - $icon.css('color', '#000'); | ||
170 | - $(this).closest('.search-box').css('width', '11.25rem'); | 169 | + $icon.css('color', '#444'); |
170 | + | ||
171 | + // $(this).closest('.search-box').css('width', '11.25rem'); | ||
171 | $searchAction.show().find('.clear-text').show(); | 172 | $searchAction.show().find('.clear-text').show(); |
172 | } else { | 173 | } else { |
173 | $icon.css('color', '#b2b2b2'); | 174 | $icon.css('color', '#b2b2b2'); |
174 | - $(this).closest('.search-box').css('width', '12.5rem'); | ||
175 | - $searchAction.hide(); | 175 | + |
176 | + // $(this).closest('.search-box').css('width', '12.5rem'); | ||
177 | + $searchAction.find('.clear-text').hide(); | ||
176 | } | 178 | } |
177 | searchResult(); | 179 | searchResult(); |
178 | }).focus(); | 180 | }).focus(); |
179 | 181 | ||
180 | // 2016.1.13 产品(高扬)要求进入页面默认显示取消按钮 | 182 | // 2016.1.13 产品(高扬)要求进入页面默认显示取消按钮 |
181 | - $icon.css('color', '#000'); | 183 | + $icon.css('color', '#444'); |
182 | $keyword.closest('.search-box').css('width', '11.25rem'); | 184 | $keyword.closest('.search-box').css('width', '11.25rem'); |
183 | $searchAction.show().find('.clear-text').hide(); | 185 | $searchAction.show().find('.clear-text').hide(); |
184 | 186 |
-
Please register or login to post a comment