某些手机打开轮播图,轮播图一直左右抖动。

发布于 7 年前作者 songna9820 次浏览最后编辑 7 年前来自 ask

某些手机打开轮播图,轮播图一直左右来回抖动。

5 回复
chaoma
chaoma1 楼6 年前

楼主解决了吗

jie96
jie962 楼6 年前

<view class=“centent”>

<!-- 轮播图 –>

<swiper class=“swiper” interval=“3000” autoplay=“true” circular=“true” bindchange=“bindchange” bindchange=“swiperChange” bindanimationfinish=“animationfinish” catchtap=“onItemClick” current-item-id=“{{index}}” current=“{{swiperCurrent}}”>

<swiper-item wx:for=“{{ddd.data.hmareaList}}” wx:for-item=“d”>

<view class=“image”>

<image wx:for=“{{d.list}}” src=“{{item.areacode}}”></image>

</view>

</swiper-item>

</swiper>

<!--  实现点击选中样式  –>

<view class=“dots” style=“display:flex;”>

<block wx:for=“{{ddd.data.hmareaList}}” wx:for-index=“index”>

<view class=“dot{{index == swiperCurrent ? ’ active’ : ‘’}}” bindtap=“chuangEvent” id=“{{index}}”>{{index+1}}</view>

</block>

</view>

mafang
mafang3 楼6 年前

我也遇到了,请问找到原因了吗?偶现很难定位问题呢~

iyi
iyi4 楼6 年前

请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)和复现视频

zhaowei
zhaowei5 楼5 年前

有bug