Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
10 additions
and
2 deletions
@@ -14,6 +14,7 @@ var swiper, | @@ -14,6 +14,7 @@ var swiper, | ||
14 | $brandText, | 14 | $brandText, |
15 | $brandHref, | 15 | $brandHref, |
16 | $brandList = $('.brand-list'); | 16 | $brandList = $('.brand-list'); |
17 | +var $icon = $('.search-icon'); | ||
17 | 18 | ||
18 | var searchH = $('.newbrand-search').outerHeight(), | 19 | var searchH = $('.newbrand-search').outerHeight(), |
19 | headerH = $('.yoho-header').outerHeight(), | 20 | headerH = $('.yoho-header').outerHeight(), |
@@ -142,9 +143,11 @@ if ($('.brand-search-page').length) { | @@ -142,9 +143,11 @@ if ($('.brand-search-page').length) { | ||
142 | $('.history').css('display', 'none'); | 143 | $('.history').css('display', 'none'); |
143 | if ($keyword.val().length) { | 144 | if ($keyword.val().length) { |
144 | searchResult(); | 145 | searchResult(); |
146 | + $icon.css('color', '#000'); | ||
145 | $(this).closest('.search-box').css('width', '11.25rem'); | 147 | $(this).closest('.search-box').css('width', '11.25rem'); |
146 | $('.search-action').show(); | 148 | $('.search-action').show(); |
147 | } else { | 149 | } else { |
150 | + $icon.css('color', '#b2b2b2'); | ||
148 | $(this).closest('.search-box').css('width', '12.5rem'); | 151 | $(this).closest('.search-box').css('width', '12.5rem'); |
149 | $('.search-action').hide(); | 152 | $('.search-action').hide(); |
150 | } | 153 | } |
@@ -11,6 +11,8 @@ var $input = $('#search-input input'); | @@ -11,6 +11,8 @@ var $input = $('#search-input input'); | ||
11 | 11 | ||
12 | var $clear = $('#search-input .clear-input'); | 12 | var $clear = $('#search-input .clear-input'); |
13 | 13 | ||
14 | +var $icon = $('.search-icon'); | ||
15 | + | ||
14 | var $form = $('#search-form'); | 16 | var $form = $('#search-form'); |
15 | 17 | ||
16 | var $history = $('.history'); | 18 | var $history = $('.history'); |
@@ -32,8 +34,10 @@ chHammer.on('tap', function() { | @@ -32,8 +34,10 @@ chHammer.on('tap', function() { | ||
32 | 34 | ||
33 | $input.on('input', function() { | 35 | $input.on('input', function() { |
34 | if ($input.val() === '') { | 36 | if ($input.val() === '') { |
37 | + $icon.css('color', '#b2b2b2'); | ||
35 | $clear.addClass('hide'); | 38 | $clear.addClass('hide'); |
36 | } else { | 39 | } else { |
40 | + $icon.css('color', '#000'); | ||
37 | $clear.removeClass('hide'); | 41 | $clear.removeClass('hide'); |
38 | } | 42 | } |
39 | }); | 43 | }); |
@@ -44,7 +44,8 @@ | @@ -44,7 +44,8 @@ | ||
44 | border: none; | 44 | border: none; |
45 | width: 95%; | 45 | width: 95%; |
46 | height: 60rem / $pxConvertRem; | 46 | height: 60rem / $pxConvertRem; |
47 | - line-height: 1; | 47 | + line-height: 60rem / $pxConvertRem; |
48 | + font-size: 1.2em; | ||
48 | padding: 0 10rem / $pxConvertRem; | 49 | padding: 0 10rem / $pxConvertRem; |
49 | } | 50 | } |
50 | 51 |
@@ -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: #000; | 41 | + color: #b2b2b2; |
42 | font-size: 32rem / $pxConvertRem; | 42 | font-size: 32rem / $pxConvertRem; |
43 | line-height: 56rem / $pxConvertRem; | 43 | line-height: 56rem / $pxConvertRem; |
44 | } | 44 | } |
-
Please register or login to post a comment