...
|
...
|
@@ -7,6 +7,7 @@ |
|
|
var $ = require('jquery'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
Swiper = require('yoho.iswiper'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
|
|
|
|
|
var swiper,
|
...
|
...
|
@@ -25,6 +26,8 @@ var brandsData, |
|
|
$keyword,
|
|
|
clearTextHammer;
|
|
|
|
|
|
loading.showLoadingMask();
|
|
|
|
|
|
//热门品牌滑动
|
|
|
hotBrandsSwiper = new Swiper('.brands-swiper', {
|
|
|
grabCursor: true,
|
...
|
...
|
@@ -47,9 +50,14 @@ $('.yoho-header').css({ |
|
|
top: 0
|
|
|
});
|
|
|
|
|
|
if ($('.banner-top').length > 0) {
|
|
|
$('.hot-brands').css('padding-top', '0');
|
|
|
}
|
|
|
(function() {
|
|
|
if ($('.banner-top').length > 0) {
|
|
|
$('.hot-brands').css('padding-top', '0');
|
|
|
}
|
|
|
|
|
|
$('.hide-when-loading').show();
|
|
|
loading.hideLoadingMask();
|
|
|
})();
|
|
|
|
|
|
$fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>');
|
|
|
$fixTitleBar.css({
|
...
|
...
|
@@ -181,8 +189,16 @@ if ($('.brand-search-page').length) { |
|
|
|
|
|
if ($genderItem.length > 0) {
|
|
|
$genderItem.on('touchstart', function() {
|
|
|
var index = $(this).data('id') + 1;
|
|
|
|
|
|
$('.genderNav ul .active').removeClass('active');
|
|
|
$(this).addClass('active');
|
|
|
window.location.search = 'channel=' + ($(this).data('id') + 1);
|
|
|
$('.hide-when-loading').hide();
|
|
|
loading.showLoadingMask();
|
|
|
function reload() {
|
|
|
window.location.search = 'channel=' + index;
|
|
|
}
|
|
|
setTimeout(reload.bind(this), 100);
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|