1.swiper组件实现轮播图效果
wxml文件
<!-- //触发弹出层:bindtap="show" -->
<view class="image-groud">
<image bindtap="show" src="/images/001.jpg" class="img-unit"></image>
</view>
<!-- //弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide" -->
<view class="modal-box" hidden="{
{flag}}" bindtap="hide">
<view class="modal-content">
<swiper indicator-dots="true" autoplay="{
{false}}" autoplay="false" interval="{
{interval}}" duration="{
{duration}}" circular="true">
<block wx:for="{
{imgUrls}}" wx:key="index">
<!-- <block wx:for="{
{imgUrls}}" wx:key="{
{inde