avatar-swiper.wxml 586 Bytes
<swiper wx:if="{{list.length !== 0}}" indicator-dots="{{indicatorDots}}"
  autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" vertical="{{true}}" class="swiper" circular="{{true}}">
  <block wx:for="{{list}}" wx:key="{{index}}">
    <swiper-item>
      <view class="avatar-item">
        <image src="{{item.user_thumb || 'http://img12.static.yhbimg.com/sns/2018/08/02/15/0237a5305f921865764e8409fcffbd3299.png'}}" class="avatar-image"/>
        <view class="avatar-desc">{{item.user_name}}参与了抽奖</view>
      </view>
    </swiper-item>
  </block>
</swiper>