Add the following code in index.wxml
<view>
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{imgUrl}}" wx:key="index">
<swiper-item>
<image src="{{item.url}}" class="slide-image" />
</swiper-item>
</block>
</swiper>
</view>
Add the following code in index.js
Page({
data: {
imgUrl: [
{ url: "/images.png" },
{ url: "/images.png" },
{ url: "/images.png" },
],
indicatorDots: false,
autoplay: false,
interval: 5000,
duration: 1000
},
})
If this number of local contents do not get bits (for example: to copyright or other problems), please contact us for rectification can be timely and will be processed in the first time.
Please thumbs up! Because you agree / encouragement is the greatest power of my writing!
Welcome attention of niche t- Jane books!
This is a quality, attitude blog
If this number of local contents do not get bits (for example: to copyright or other problems), please contact us for rectification can be timely and will be processed in the first time.
Please thumbs up! Because you agree / encouragement is the greatest power of my writing!
Welcome attention of niche t- Jane books!
This is a quality, attitude blog