<!--packageH/newDraw/newDrawMyPrize/newDrawMyPrize.wxml-->
<view id="my_prize">
    <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}}"  catchtap="gotoDetail" data-id="{{item.order_id}}">
            <view class="top-box flex-style">
              <view>{{ item.created_at }}</view>
              <view class="color-text">{{ item.status_name?item.status_name:'---' }}</view>
            </view>
            <view class="good-box flex-style">
              <image src="{{item.goods_thumb}}" alt="" class="good-img" />
              <view class="good-other flex-style">
                <view class="tt flex-style">
                  <view class="good-title">{{ item.goods_name }}</view>
                  <view class="num">x{{ item.goods_total }}</view>
                </view>
                <view class="tt flex-style">
                  <view class=""></view>
                  <view class="num">￥{{ item.goods_money }}</view>
                </view>
              </view>
            </view>
            <view class="order-btn">
              <view class="btn" wx:if="{{item.status == 2 || item.status == 3}}" catchtap="confirmBtn" data-item="{{item}}" data-index="0">查看物流</view>
              <view class="btn btn-bg" wx:if="{{item.status == 2}}" catchtap="confirmBtn" data-item="{{item}}" data-index="1">确认收货</view>
            </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>
