Authored by uedxwg

品牌搜索框调整

... ... @@ -14,6 +14,7 @@ var swiper,
$brandText,
$brandHref,
$brandList = $('.brand-list');
var $icon = $('.search-icon');
var searchH = $('.newbrand-search').outerHeight(),
headerH = $('.yoho-header').outerHeight(),
... ... @@ -142,9 +143,11 @@ if ($('.brand-search-page').length) {
$('.history').css('display', 'none');
if ($keyword.val().length) {
searchResult();
$icon.css('color', '#000');
$(this).closest('.search-box').css('width', '11.25rem');
$('.search-action').show();
} else {
$icon.css('color', '#b2b2b2');
$(this).closest('.search-box').css('width', '12.5rem');
$('.search-action').hide();
}
... ...
... ... @@ -34,10 +34,10 @@ chHammer.on('tap', function() {
$input.on('input', function() {
if ($input.val() === '') {
$icon.css('color','#b2b2b2');
$icon.css('color', '#b2b2b2');
$clear.addClass('hide');
} else {
$icon.css('color','#000');
$icon.css('color', '#000');
$clear.removeClass('hide');
}
});
... ...
... ... @@ -44,7 +44,8 @@
border: none;
width: 95%;
height: 60rem / $pxConvertRem;
line-height: 1;
line-height: 60rem / $pxConvertRem;
font-size: 1.2em;
padding: 0 10rem / $pxConvertRem;
}
... ...