...
|
...
|
@@ -160,6 +160,26 @@ define('yohood', function(require, exports) { |
|
|
});
|
|
|
return html;
|
|
|
}
|
|
|
exports.point = function() {
|
|
|
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');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
//首页
|
|
|
exports.index = function() {
|
|
|
var cooperateSwiper,
|
...
|
...
|
@@ -182,24 +202,7 @@ define('yohood', function(require, exports) { |
|
|
//}
|
|
|
|
|
|
$('.dib').on('click', 'a', function() {
|
|
|
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');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
bannerSwipe.slide($(this).index());
|
|
|
})
|
|
|
|
|
|
if ($('.slide-box').find('.box').size() <= 1) {
|
...
|
...
|
|