...
|
...
|
@@ -161,9 +161,10 @@ define('yohood', function(require, exports) { |
|
|
}
|
|
|
//首页
|
|
|
exports.index = function() {
|
|
|
var cooperateSwiper;
|
|
|
var cooperateSwiper,
|
|
|
bannerSwipe;
|
|
|
//大banner滑动
|
|
|
swipe.init({
|
|
|
bannerSwipe = swipe.init({
|
|
|
slideBox: '.slide-box',
|
|
|
prev: '.slide-prev',
|
|
|
next: '.slide-next',
|
...
|
...
|
@@ -177,6 +178,10 @@ define('yohood', function(require, exports) { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.dib').on('click', 'a', function() {
|
|
|
bannerSwipe.slide($(this).index());
|
|
|
})
|
|
|
|
|
|
if ($('.slide-box').find('.box').size() <= 1) {
|
|
|
$('.slide-navigator').hide();
|
|
|
$('.slide-control').hide();
|
...
|
...
|
@@ -314,8 +319,9 @@ define('yohood', function(require, exports) { |
|
|
|
|
|
//品牌
|
|
|
exports.brand = function() {
|
|
|
var bannerSwipe;
|
|
|
//banner滑动
|
|
|
swipe.init({
|
|
|
bannerSwipe = swipe.init({
|
|
|
slideBox: '.slide-box',
|
|
|
prev: '.slide-prev',
|
|
|
next: '.slide-next',
|
...
|
...
|
@@ -329,6 +335,10 @@ define('yohood', function(require, exports) { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.dib').on('click', 'a', function() {
|
|
|
bannerSwipe.slide($(this).index());
|
|
|
})
|
|
|
|
|
|
if ($('.slide-box').find('.box').size() <= 1) {
|
|
|
$('.slide-navigator').hide();
|
|
|
$('.slide-control').hide();
|
...
|
...
|
@@ -711,4 +721,4 @@ define('yohood', function(require, exports) { |
|
|
//图片转换
|
|
|
imgTransform($(".image-box img"));
|
|
|
}
|
|
|
}); |
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|