<!--packageF/debt/debtorAudit/debtorAudit.wxml-->
<view id="debtorAudit">
  <van-tabs active="{{active}}" bind:change='tapchange'>
    <van-tab title="待审核"></van-tab>
    <van-tab title="已审核"></van-tab>
  </van-tabs>
  <view class="listBox">
    <view class="lis" wx:for="{{listData}}" wx:key="index">
      <view class="top">
        <view class="topTxt">
          <view class="topTxt_left" wx:if="{{item.has_one_order}}">{{item.has_one_order.order_sn}}</view>
          <view class="topTxt_Right">{{item.status_name}}</view>
        </view>
        <view class="topTxt topTxt2" wx:if="{{item.has_one_refund_apply}}">
          <view class="topTxt_left">{{item.has_one_refund_apply.refund_type_name}}</view>
          <view class="topTxt_Right" wx:if="{{item.has_one_refund_apply.refund_type == 0 || item.has_one_refund_apply.refund_type == 1}}">退款金额：￥{{item.has_one_refund_apply.price}}</view>
        </view>
      </view>
      <view class="bottom">
        <block wx:if="{{active == 0}}">
          <view class="agree" catchtap="refundExamine" data-key="1" data-item='{{item}}'>同意申请</view>
          <view class="reject" catchtap="refundExamine" data-key="2" data-item='{{item}}'>驳回申请</view>
        </block>
        <block wx:if="{{active == 1}}">
          <view class="reject" catchtap="refundExamine" data-key="3" data-item='{{item}}'>查看详情</view>
        </block>
      </view>
    </view>
    <view wx:if="{{listData.length == 0}}" style="text-align: center;line-height: 60rpx;color: #999;">暂无更多</view>
  </view>
</view>