Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -165,7 +165,7 @@ if ($('.brand-search-page').length) { | @@ -165,7 +165,7 @@ if ($('.brand-search-page').length) { | ||
165 | if ($keyword.val().length) { | 165 | if ($keyword.val().length) { |
166 | $icon.css('color', '#000'); | 166 | $icon.css('color', '#000'); |
167 | $(this).closest('.search-box').css('width', '11.25rem'); | 167 | $(this).closest('.search-box').css('width', '11.25rem'); |
168 | - $searchAction.show(); | 168 | + $searchAction.show().find('.clear-text').show(); |
169 | } else { | 169 | } else { |
170 | $icon.css('color', '#b2b2b2'); | 170 | $icon.css('color', '#b2b2b2'); |
171 | $(this).closest('.search-box').css('width', '12.5rem'); | 171 | $(this).closest('.search-box').css('width', '12.5rem'); |
@@ -177,7 +177,7 @@ if ($('.brand-search-page').length) { | @@ -177,7 +177,7 @@ if ($('.brand-search-page').length) { | ||
177 | // 2016.1.13 产品(高扬)要求进入页面默认显示取消按钮 | 177 | // 2016.1.13 产品(高扬)要求进入页面默认显示取消按钮 |
178 | $icon.css('color', '#000'); | 178 | $icon.css('color', '#000'); |
179 | $keyword.closest('.search-box').css('width', '11.25rem'); | 179 | $keyword.closest('.search-box').css('width', '11.25rem'); |
180 | - $searchAction.show(); | 180 | + $searchAction.show().find('.clear-text').hide(); |
181 | 181 | ||
182 | clearTextHammer = new Hammer($('.clear-text')[0]); | 182 | clearTextHammer = new Hammer($('.clear-text')[0]); |
183 | clearTextHammer.on('tap', function(e) { | 183 | clearTextHammer.on('tap', function(e) { |
-
Please register or login to post a comment