<!--packageH/newDraw/luckyDraw/luckyDraw.wxml-->
<view id="lucky_draw">
    <van-tabs active="{{activeName}}" bind:click="handleClick" sticky offset-top="40px" animated>
      <van-tab wx:for="{{titleArr}}" title="{{items}}" wx:for-index="ind" wx:for-item="items">
        <view class="ul" wx:if="{{dataList[ind] && dataList[ind].list.length>0}}">
          <!-- 我的抽奖 -->
          <view class="li" wx:for="{{dataList[ind].list}}" bindtap="gotoIndex" data-id="{{item.activity_id}}">
            <image src="{{item.activity_img}}" alt="" class="active-img" mode="aspectFill"/>
            <view class="active-info">
              <view class="active-title">{{ item.activity_name || "---" }}</view>
              <block wx:if="{{types == 'my'}}">
                <!-- 商品的 -->
                <view class="small-info">当前轮数：{{ item.current_round }} 参与人数：{{ item.turn_member }}</view>
                <view class="small-info">总共轮数：{{ item.turn_num }} 总参与人数：{{ item.turn_total }}</view>
              </block>
              <block  wx:if="{{types == 'activity'}}">
                <!-- 抽奖活动 -->
                <view class="small-info small-rule">
                  <view class="price">{{ item.type_id == 1 ? '免费' :  '￥'+item.money +' 参与' }}</view>
                  达到{{ item.max_num }}次开奖
                </view>
              </block>
            </view>
            <view  class="active-status {{item.activity_state != '活动进行中' ? 'endBg' : ''}}" wx:if="{{item.activity_state}}">{{ item.activity_state }}</view>
            <view class="active-draw" wx:if="{{ item.is_prize}}" catchtap="gotoDetail" data-order="{{item.order_id}}">我的奖品</view>
          </view>
        </view>
        <view wx:if="{{dataList[ind] && dataList[ind].list.length == 0}}" class="blank-box">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix'></image>
        </view>
      </van-tab>
    </van-tabs>
    <view class="my-btn" bindtap="gotoMydraw">
      <icon class="iconfont icon-fontclass-huiyuanzhongixn"></icon>
      我的
    </view>
    
  </view>
