Dorren 发表于 2019-10-9 17:20:25

swiper滚动不起作用

第一天显示,滚动到第二页的时候出现空白页,初始化时加上autoplay可以正常显示,调试的结果是第一页滑动到第二页时onSlideChangeEnd函数没有触发;

var JIYU_SWIPER = null;
if(!getQueryString("include")){
JIYU_SWIPER = new Swiper(".swiper-container", { direction: "vertical", autoplay: 5000,
onInit: function (swiper) {
console.info(swiper.activeIndex);
swiperAnimateCache(swiper);
setTimeout(function () {
        console.info("ssss");
    swiperAnimate(swiper);
}, 100);
},
onSlideChangeEnd: function (swiper) {
console.info("ssddsss");
swiperAnimate(swiper);
}
});



页: [1]
查看完整版本: swiper滚动不起作用