<!--pages/saleOutStore/saleOutStore.wxml-->

<view class="swiper-tab">
  <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">未审核</view>
  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已审核</view>
</view>

<swiper current="{{currentTab}}" class="swiper-box" style='height:{{winHeight -45}}px' duration="300" bindchange="bindChange">
  <!-- 未审核 -->
  <swiper-item class="swiper-items1">
    <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower">
      <!-- <view class='listContainer'> -->
        <block wx:for="{{unCheckDataArr}}" wx:for-item="item">
          <template is="outStoreOrderTemplate" data="{{item}}" />
        </block>
      <!-- </view> -->
    </scroll-view>
  </swiper-item>
  <!-- 已审核 -->
  <swiper-item class="swiper-items2">
    <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="checkedScrollUpper" bindscrolltolower = "CheckedScrollLower">
      <!-- <view class='listContainer'> -->
        <block wx:for="{{checkedDataArr}}" wx:for-item="item">
          <template is="outStoreOrderTemplate" data="{{item}}" />
        </block>
      <!-- </view> -->
    </scroll-view>
  </swiper-item>
</swiper>

  <template name="outStoreOrderTemplate">
    <view class='listItem' catchtap='transToOrderDetail' data-detailitemid='{{item.orderID}}'>
      <view class='orderID'>
        <text class='goodsIDText'>单号：{{item.orderID}}</text>
      </view>
      <view class='bottomView'>
        <view class='goodsNum'>
          <text class='goodsNumText'>{{item.money}}</text>
        </view>
        <view class='goodsMoney'>
          <text class='goodsMoneyText'>发货日期：{{item.time}}</text>
        </view>
      </view>
    </view>
  </template>