小程序的swiper的滑动失效,一直闪烁问题:

   在iphoneX的轮播图的时候出现的bug

pagechange:function(e){
    if (e.detail.source == 'touch') {
      this.setData({
        currentIndex: e.detail.current //获取当前轮播图片的下标
      })
    }
  },

判断当前轮播的下标,然后实现轮播

 

 

希望可以帮到你!

相关文章:

  • 2020-05-09
  • 2018-11-28
  • 2021-07-22
  • 2021-04-07
  • 2020-03-27
  • 2021-05-10
猜你喜欢
  • 2021-10-06
  • 2021-10-28
  • 2021-08-31
  • 2021-04-27
  • 2021-10-27
  • 2021-06-22
  • 2021-10-06
  • 2021-09-11
相关资源
相似解决方案