swiper全屏纵滑偶发卡死
发布于 6 年前 作者 gaoxiuying 14969 次浏览 来自 问答

使用wepy开发的小程序,swiper组件纵向滑动偶尔会卡死只能杀掉小程序否则一直保持假死状态

swiper事件绑定的方法只做了改变两个容器的显示状态这两件事

swiperMove (e) {

this.showProgress = e.detail.current ? ‘wrapper-in’ : ‘hide’

this.gotoTop = e.detail.current !== this.dataObj.length - 1 ? ‘wrapper-in’ : ‘hide’

},

swiperFinish (e) {

console.log('finish => ', ‘index:’, this.index, ‘current’, e.detail.current)

this.index = e.detail.current

e.detail.current ? this.topFn(false) : this.topFn(true)

},

2 回复

你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

请问问题解决了吗

回到顶部