...
|
...
|
@@ -9,6 +9,8 @@ var $intercept = $('.no-intercept'), |
|
|
$list = $('.brand-list-box'),
|
|
|
$listBox = $('.list-box');
|
|
|
|
|
|
require('../common');
|
|
|
|
|
|
function channels(key) {
|
|
|
var channel = {
|
|
|
men: 1,
|
...
|
...
|
@@ -103,6 +105,20 @@ if ($listBox.find('li').length <= 0) { |
|
|
$listBox.hide();
|
|
|
}
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
var totalHeight = $('#yoho-header').height() + $('.tab-box').height();
|
|
|
|
|
|
if ($(this).scrollTop() >= $('#yoho-header').height()) {
|
|
|
$('.tab-box').addClass('fastening');
|
|
|
$('.content-index').addClass('distance');
|
|
|
$('.list-box').css('top', $('.tab-box').height());
|
|
|
} else {
|
|
|
$('.tab-box').removeClass('fastening');
|
|
|
$('.content-index').removeClass('distance');
|
|
|
$('.list-box').css('top', totalHeight - $(this).scrollTop());
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(function() {
|
|
|
$('.banner-swiper').each(function() {
|
|
|
if (!$(this).parents('.content').hasClass('hide') && $(this).hasClass('swiper-container-horizontal') === false && $(this).find('li').length > 1) {
|
...
|
...
|
|