<swiper class="w-100 pos-ab h-100" style="z-index:99" wx:if="{{swiper}}" indicator-dots="{{swiper.dots}}" autoplay="{{swiper.autoplay}}"interval="{{swiper.interval}}" circular="true">
<block wx:for="{{swiper.data}}" wx:key="image">
<swiper-item>
<navigator wx:if="{{item.url}}" url="{{item.url}}" open-type="{{item.openType}}">
<image src="{{swiper.IMGROOT}}{{item.image}}" class="w-100" mode="widthFix" />
navigator>
<view wx:if="{{!item.url}}">
<image src="{{swiper.IMGROOT}}{{item.image}}" class="w-100" mode="widthFix" />
view>
swiper-item>
block>
swiper>
ios11.0 以下的轮播图图片正常显示
ios11.0—ios11.2 的轮播图图片部分显示不出来
下图为 ios11.1
这问题重现几率不稳定,有时候进入页面重现,有时候杀掉进程后重现,控制台没报错
<swiper class=“w-100 pos-ab h-100” style=“z-index:99” wx:if="{{swiper}}" indicator-dots="{{swiper.dots}}" autoplay="{{swiper.autoplay}}" interval="{{swiper.interval}}" circular=“true”>
<block wx:for="{{swiper.data}}" wx:key=“image”>
<swiper-item>
<navigator wx:if="{{item.url}}" url="{{item.url}}" open-type="{{item.openType}}">
<image bindload=‘imageLoad’ data-index="{{index}}" data-dataname="{{swiper.dataName}}" style=’{{item.load==1?“will-change:transform”:""}}’ src="{{swiper.IMGROOT}}{{item.image}}" class=“w-100” mode=“widthFix” />
</navigator>
<view wx:if="{{!item.url}}">
<image src="{{swiper.IMGROOT}}{{item.image}}" class=“w-100” mode=“widthFix” />
</view>
</swiper-item>
</block>
</swiper>
function imageLoad(e){
var index = e.currentTarget.dataset.index;
var dataName = e.currentTarget.dataset.dataname;
var changeData={};
changeData[dataName+".data["+index+"].load"]=1;
this.setData(changeData);
}