|
@@ -31,7 +31,8 @@ swiper = new Swiper('.swiper-container', { |
|
@@ -31,7 +31,8 @@ swiper = new Swiper('.swiper-container', { |
31
|
lazyLoad($('img.lazy'));
|
31
|
lazyLoad($('img.lazy'));
|
32
|
$('.yoho-header').css({
|
32
|
$('.yoho-header').css({
|
33
|
'z-index': 2,
|
33
|
'z-index': 2,
|
34
|
- position: 'fixed'
|
34
|
+ position: 'fixed',
|
|
|
35
|
+ top: 0
|
35
|
});
|
36
|
});
|
36
|
|
37
|
|
37
|
$(window).scroll(function() {
|
38
|
$(window).scroll(function() {
|
|
@@ -98,10 +99,10 @@ function searchResult() { |
|
@@ -98,10 +99,10 @@ function searchResult() { |
98
|
$.each(v, function(i, brand) {
|
99
|
$.each(v, function(i, brand) {
|
99
|
brandHtml.push('<p><a href="' + brand.url + '">' + brand.name);
|
100
|
brandHtml.push('<p><a href="' + brand.url + '">' + brand.name);
|
100
|
if (brand.isNew) {
|
101
|
if (brand.isNew) {
|
101
|
- brandHtml.push('<i class="icon-hot">Hot</i>');
|
102
|
+ brandHtml.push('<i class="icon-hot">HOT</i>');
|
102
|
}
|
103
|
}
|
103
|
if (brand.isHot) {
|
104
|
if (brand.isHot) {
|
104
|
- brandHtml.push('<i class="icon-new">New</i>');
|
105
|
+ brandHtml.push('<i class="icon-new">NEW</i>');
|
105
|
}
|
106
|
}
|
106
|
brandHtml.push('</a></p>');
|
107
|
brandHtml.push('</a></p>');
|
107
|
});
|
108
|
});
|
|
@@ -142,7 +143,7 @@ if ($('.brand-search-page').length) { |
|
@@ -142,7 +143,7 @@ if ($('.brand-search-page').length) { |
142
|
$(this).closest('.search-box').css('width', '12.5rem');
|
143
|
$(this).closest('.search-box').css('width', '12.5rem');
|
143
|
$('.search-action').hide();
|
144
|
$('.search-action').hide();
|
144
|
}
|
145
|
}
|
145
|
- });
|
146
|
+ }).focus();
|
146
|
|
147
|
|
147
|
|
148
|
|
148
|
searchBtnHammer = new Hammer($('.search-btn')[0]);
|
149
|
searchBtnHammer = new Hammer($('.search-btn')[0]);
|