krui 发表于 2019-12-24 18:46:14

vue-awesome-swiper自动切换,再次进入未自动切换

"vue-awesome-swiper": "^3.1.3",
首页banner中,可以自动切换,点击切换的图片进入内页之后,返回,banner未自动切换,手动滑动之后才恢复自动切换,
```
swiperOptions: {
      // speed: 1,
      autoplay: {
          delay: 3000,
          disableOnInteraction: false
      },
      // autoplay:3000,
      // autoplayDisableOnInteraction: false,
      loop: false,
      initialSlide: 0, // 初始化的时候索引的位置
      /* 触摸滑动后是否继续轮播 */
      // disableOnInteraction: false,
      effect: "coverflow",
      slidesPerView: "auto",
      spaceBetween: 35,
      // active下 居中显示
      centeredSlides: true,
      coverflowEffect: {
          rotate: 0, // 旋转的角度
          stretch: -4, // 拉伸   图片间左右的间距和密集度
          depth: 100, // 深度   切换图片间上下的间距和密集度
          modifier: 1, // 修正值 该值越大前面的效果越明显
          slideShadows: false // 页面阴影效果
      },
}

···

一名cv程序员 发表于 2020-1-6 09:27:50

进入到banner页面时,手动在程序里触发一次下一页。
页: [1]
查看完整版本: vue-awesome-swiper自动切换,再次进入未自动切换