Authored by ccbikai

品牌一览优化

... ... @@ -31,7 +31,8 @@ swiper = new Swiper('.swiper-container', {
lazyLoad($('img.lazy'));
$('.yoho-header').css({
'z-index': 2,
position: 'fixed'
position: 'fixed',
top: 0
});
$(window).scroll(function() {
... ... @@ -98,10 +99,10 @@ function searchResult() {
$.each(v, function(i, brand) {
brandHtml.push('<p><a href="' + brand.url + '">' + brand.name);
if (brand.isNew) {
brandHtml.push('<i class="icon-hot">Hot</i>');
brandHtml.push('<i class="icon-hot">HOT</i>');
}
if (brand.isHot) {
brandHtml.push('<i class="icon-new">New</i>');
brandHtml.push('<i class="icon-new">NEW</i>');
}
brandHtml.push('</a></p>');
});
... ... @@ -142,7 +143,7 @@ if ($('.brand-search-page').length) {
$(this).closest('.search-box').css('width', '12.5rem');
$('.search-action').hide();
}
});
}).focus();
searchBtnHammer = new Hammer($('.search-btn')[0]);
... ...
... ... @@ -39,10 +39,10 @@
<p>
<a href="{{url}}">{{name}}
{{# isHot}}
<i class="icon-hot">Hot</i>
<i class="icon-hot">HOT</i>
{{/ isHot}}
{{# isNew}}
<i class="icon-new">New</i>
<i class="icon-new">NEW</i>
{{/ isNew}}
</a>
</p>
... ...