swiper闪屏
小程序swiper整屏闪动,几个页面轮流显示又不像是来回滚动,但内容一直在变化(没有设置自动播放),不知道是什么问题,出现问题又不是很频繁
测试机型:iPhone SE 版本不限
小程序swiper整屏闪动,几个页面轮流显示又不像是来回滚动,但内容一直在变化(没有设置自动播放),不知道是什么问题,出现问题又不是很频繁
测试机型:iPhone SE 版本不限
现在swiper的change事件会返回source字段,表示导致change的原因,请参见
https://mp.weixin.qq.com/debug/wxadoc/dev/component/swiper.html
我也遇到这样的问题。在测试机荣耀5A,微信版本6.5.8。代码如下
<swiper current="{{tabIndex}}" bindchange="swiperChange" class="cont-box" style="height:{{scrHeight}}px;"> <swiper-item> <!--待支付订单列表--> <scroll-view scroll-y="true" style="height:{{scrHeight}}px;left:{{-tabIndex*100}}%;" class="order-cont"> <!--内容省略--> </scroll-view> </swiper-item> <swiper-item> <!--待收货订单列表--> <scroll-view scroll-y="true" style="height:{{scrHeight}}px;left:{{-(tabIndex-1)*100}}%;" class="order-cont"> <!--内容省略--> </scroll-view> </swiper-item> <swiper-item> <!--已完成订单列表--> <scroll-view scroll-y="true" style="height:{{scrHeight}}px;left:{{-(tabIndex-2)*100}}%;" class="order-cont" bindscrolltolower="moreClose"> <!--内容省略--> </scroll-view> </swiper-item> </swiper> |