小程序
小游戏
企业微信
微信支付
扫描小程序码分享
swiper组件插入图片,并且自动轮播,ios手机会出现刚开始什么都没有,开始轮播时,全出现,如果是一张图片,就一直都是空白,要手动滑一下才出来,android 与开发工具没有这个问题
15 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
最近也遇到这个问题了,读取的网络图片生成swiper的列表,ios上初始加载无图,手动滑一下才出现(我设置未不自动轮播),最近才有人反馈的这个问题,跟帖
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
问题依然存在,使用网络图片也有这个问题
问题依然存在,使用网络图片也有这个问题。见:https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=41a12e69bd00ed8dbd925cd88fc464a1&token=511554061&lang=zh_CN
.slide-image{
width
:
100%
;
height
}
swiper{
100
vw;
50
<swiper indicator-dots=
"true"
autoplay=
interval=
"5000"
indicator-color=
"#fff"
indicator-active-color=
"#888"
duration=
"1000"
circular=
bindchange=
"swiperChange"
>
<block wx:
for
=
"{{imgUrls}}"
wx:key=
"img_url"
<swiper-item>
<image src=
"{{item.img_url}}"
class=
"slide-image"
></image>
</swiper-item>
</block>
<!--<view class=
"swiper-info"
>{{imgUrls[imgIndex].title}}</view>-->
</swiper>
刚调整了,使用本地图片是有这个问题的,换成在线图片是可以的
正在加载...
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
最近也遇到这个问题了,读取的网络图片生成swiper的列表,ios上初始加载无图,手动滑一下才出现(我设置未不自动轮播),最近才有人反馈的这个问题,跟帖
问题依然存在,使用网络图片也有这个问题
问题依然存在,使用网络图片也有这个问题。见:https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=41a12e69bd00ed8dbd925cd88fc464a1&token=511554061&lang=zh_CN
.slide-image{
width
:
100%
;
height
:
100%
;
}
swiper{
width
:
100
vw;
height
:
50
vw;
}
<swiper indicator-dots=
"true"
autoplay=
"true"
interval=
"5000"
indicator-color=
"#fff"
indicator-active-color=
"#888"
duration=
"1000"
circular=
"true"
bindchange=
"swiperChange"
>
<block wx:
for
=
"{{imgUrls}}"
wx:key=
"img_url"
>
<swiper-item>
<image src=
"{{item.img_url}}"
class=
"slide-image"
></image>
</swiper-item>
</block>
<!--<view class=
"swiper-info"
>{{imgUrls[imgIndex].title}}</view>-->
</swiper>
刚调整了,使用本地图片是有这个问题的,换成在线图片是可以的