<!--components/banner-swiper/banner-swiper.wxml-->
<view class="banner-container" wx:if="{{banners.length > 0}}">
  <swiper class='swiper' indicator-dots="{{indicatorDots}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" autoplay="{{autoplay}}" current="{{currentSwiper}}" circular="{{circular}}" interval="{{interval}}" bindchange="changeSwiper">
    <block wx:for="{{banners}}" wx:for-item="banner" wx:key="id">
      <swiper-item>
        <image wx:if="{{banner.coverImage}}" mode="aspectFill" class="banner-img" src="{{banner.coverImage}}" data-id="{{banner.id}}" data-title="{{banner.title}}" bindtap="tapBanner"></image>
      </swiper-item>
    </block>
  </swiper>
</view>
