<view class="swiper-w">
<swiper class="swiper"
indicator-dots="true"
autoplay="true"
interval="2000"
duration="1500" >
<swiper-item v-for="(item , index) in homeSlide" :key="index">
<image :src="item.img" mode="aspectFill"></image>
</swiper-item>
</swiper>
</view>
.swiper-w{
width: 100%;
height:400upx;
}
.swiper{
height:400upx ;
}
swiper-item image{
width:100%;
height: 400upx;
}
uni-app中轮播图
猜你喜欢
转载自blog.csdn.net/wuwenjie_1997/article/details/100654298
今日推荐
周排行