<!--packageH/newRetail/newRetailSalesRecord/newRetailSalesRecord.wxml-->
<van-tabs active="{{ activeName }}" sticky bind:change="getData" swipeable>
  <van-tab title="{{items}}" wx:for="{{titleArr}}"  wx:for-index="ind" wx:for-item="items">
    {{}}
    <view class="content" wx:if="{{dataList[ind] &&dataList[ind].list.length>0}}">
      <view class="li" wx:for="{{dataList[ind].list}}">
        <view class="li-left-main">
          <div class="li-left-child">{{ item.created_at }}</div>
          <div class="li-left-child" wx:if="{{ item.order_sn }}" >订单编号：{{ item.order_sn }}</div>
          <div class="li-left-child">数量：{{ item.num }}</div>
          <div class="li-left-child">订单金额：{{ item.money }}</div>
        </view>
        <view class="buy-status">{{ item.state_type_name }}</view>
        <view class="li-btn" catchtap="goLook" data-state="{{item.state_type}}" data-id="{{item.id}}">查看 <icon class="iconfont icon-member_right"></icon></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>
