正常情况:
异常情况:
触发条件:
切换进入子页面,重新返回时几乎100%触发
测试平台:ios,wx: 8.0.58
https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
<swiper
transformer-type="scaleAndFade"
layout-type="tinder"
duration="250"
circular="true"
indicator-dots="{{true}}"
autoplay="{{true}}"
>
<swiper-item
wx:for="{{food}}"
wx:key="*this"
>
<view class="tmp-card">
<image
src="{{item}}"
mode="aspectFill"
></image>
</view>
</swiper-item>
</swiper>
请按照链接提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
经测试,swiper在几个skyline的强化效果下会有该bug,比如layout-type为stackRight、tinder等会有bug,而transformer则为正常。特别是在navigateTo搭配引用routeType时会更容易触发。初步怀疑是哪些动画逻辑的导致的问题。
同时,对其他人员开发小程序进行了测试,发现同样的组件,使用同样的方式也触发了bug,进而推断不是个例问题,很可能是组件bug。
案例:
#小程序://不具名咖啡BUJUMING/ogu7OfpUJlMzQMs