手机官网修改

master
zhengchanglong 5 years ago
parent cfe66517d5
commit 1e2635cff2

@ -1,16 +1,17 @@
$(function(){ $(function(){
var img = $(".swiper-container .swiper-slide").length;
var swiper = new Swiper('.swiper-container', { var swiper = new Swiper('.swiper-container', {
loop: true, loop: true,
pagination: { pagination: {
el: '.swiper-pagination', el: '.swiper-pagination',
clickable: true, clickable: true,
}, },
autoplay: { /*autoplay: {
delay: 3000, delay: 3000,
stopOnLastSlide: false, stopOnLastSlide: false,
disableOnInteraction: false, disableOnInteraction: false,
}, },*/
autoplay: img > 1,
}); });
}); });
Loading…
Cancel
Save