<view wx:if="{{list.length!=0}}" class='bannerbg'>
  <image src='./../../assets/img/banner.png' mode="widthFix"></image>
</view>
<view  wx:if="{{list.length!=0}}" class="index-slide-view">
  <swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false">
    <block wx:for="{{list}}" wx:key="unique">
      <swiper-item>
        <image data-id="{{item.id}}"  bindtap='gotobannerdetail' src="{{item.coverImg}}" class="index-slide-image" />
      </swiper-item>
    </block>
  </swiper>
  <view class="dots">
    <block wx:for="{{list}}" wx:key="unique">
      <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
    </block>
  </view>
</view>