...
|
...
|
@@ -10,12 +10,14 @@ function swiperInit() { |
|
|
$('.swiper-container').each(function() {
|
|
|
var opt = {
|
|
|
loop: $(this).data('loop') === '1' ? true : false,
|
|
|
spaceBetween: 15,
|
|
|
slidesPerView: 'auto'
|
|
|
};
|
|
|
var spacebetween = $(this).data('spacebetween');
|
|
|
var autoplay = $(this).data('autoplay');
|
|
|
var pagination = $(this).find('.swiper-pagination');
|
|
|
|
|
|
if (spacebetween) {
|
|
|
opt.spaceBetween = Number(spacebetween);
|
|
|
}
|
|
|
if (autoplay) {
|
|
|
opt.autoplay = Number(autoplay);
|
|
|
}
|
...
|
...
|
|