|
|
|
@ -308,13 +308,17 @@
|
|
|
|
|
function swiperGet(){
|
|
|
|
|
var swiper = new Swiper('.swiper-container', {
|
|
|
|
|
loop: true,
|
|
|
|
|
// autoplay: img > 1,
|
|
|
|
|
observer: true,//修改swiper自己或子元素时,自动初始化swiper
|
|
|
|
|
observeParents: true,//修改swiper的父元素时,自动初始化swiper
|
|
|
|
|
// autoplayDisableOnInteraction:false,//
|
|
|
|
|
lazyLoading:true,//图片延迟加载
|
|
|
|
|
lazyLoadingInPrevNext:true,//前一个和后一个延迟加载
|
|
|
|
|
pagination: {
|
|
|
|
|
el: '.swiper-pagination',
|
|
|
|
|
clickable: true,
|
|
|
|
|
},
|
|
|
|
|
autoplay: {
|
|
|
|
|
delay: 3000,
|
|
|
|
|
delay: 2000,
|
|
|
|
|
stopOnLastSlide: false,
|
|
|
|
|
disableOnInteraction: false,
|
|
|
|
|
},
|
|
|
|
@ -405,4 +409,6 @@
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|