...
|
...
|
@@ -165,21 +165,21 @@ define('yohood', function(require, exports) { |
|
|
var cooperateSwiper,
|
|
|
bannerSwipe;
|
|
|
//大banner滑动
|
|
|
//if ($('.slide-main').find('.box').size() > 1) {
|
|
|
// bannerSwipe = swipe.init({
|
|
|
// slideBox: '.slide-box',
|
|
|
// prev: '.slide-prev',
|
|
|
// next: '.slide-next',
|
|
|
// auto: 3000,
|
|
|
// 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-main').find('.box').size() > 1) {
|
|
|
bannerSwipe = swipe.init({
|
|
|
slideBox: '.slide-box',
|
|
|
prev: '.slide-prev',
|
|
|
next: '.slide-next',
|
|
|
auto: 3000,
|
|
|
continuous: true,
|
|
|
callback: function(index) {
|
|
|
if (index >= $('.dib a').size()) {
|
|
|
index = index - $('.dib a').size();
|
|
|
}
|
|
|
$('.dib a').removeClass('on').eq(index).addClass('on');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$('.dib').on('click', 'a', function() {
|
|
|
bannerSwipe.slide($(this).index());
|
...
|
...
|
|