Authored by 2586703@qq.com

大banner js修改

... ... @@ -77,10 +77,14 @@ define('channel', function(require, exports) {
slideBox: '.slide-box',
prev: '.slide-prev',
next: '.slide-next',
pagination: '.dib a',
activeClass: 'on',
auto: 3000,
continuous: true
continuous: true,
callback: function(index) {
if (index >= $('.dib a').size()) {
index = index - $('.dib a').size();
}
$('.dib a').removeClass('on').eq(index).addClass('on');
}
});
//限量商品滑动
... ...
... ... @@ -165,10 +165,14 @@ define('yohood', function(require, exports) {
slideBox: '.slide-box',
prev: '.slide-prev',
next: '.slide-next',
pagination: '.dib a',
activeClass: 'on',
auto: 3000,
continuous: true
continuous: true,
callback: function(index) {
if (index >= $('.dib a').size()) {
index = index - $('.dib a').size();
}
$('.dib a').removeClass('on').eq(index).addClass('on');
}
});
if ($('.slide-box').find('.box').size() <= 1) {
... ...