swiper组件不显示图片了,css样式没写,能获取js数据
<view class=“container”>
<view class=‘nav’>
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{imgUrls}}" wx:key=“imgUrls” >
<!-- <swiper-item> -->
<image src=’{{item}}’ />
<!-- </swiper-item> -->
</block>
</swiper>
</view>
<view wx:for="{{imgUrls}}">
<image src=’{{item}}’ />
</view>
</view>