<!--pages/pay/payee/payee.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">收款方</text>
</view>
<view class="search_box" style="margin-top:{{isIPX?'100px':'75px'}};">
  <van-search
    value="{{ value }}"
    shape="round"
    background="transparent"
    placeholder="请输入收款方"
    clearable
    bind:change="goSearch"
  />
  <view class="add_btn">
    <van-checkbox value="{{ checked }}" shape="square" bind:change="onChangeCheck">
      仅显示失败
    </van-checkbox>
  </view>
</view>
<view class="main">
  <van-collapse accordion value="{{ activeName }}" bind:change="onChange" custom-class="list">
    <van-collapse-item title="{{ item.payee }}" name="{{index}}" wx:for="{{array}}" wx:key="index">
      <view slot="value">
        <text class="money">￥{{ item.incomeAmount }}</text>
      </view>
      <view class="detailBox">
        <van-cell border="{{ false }}" >
          <view slot="title">
            {{ item.payee }}<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">收款方</van-tag>
          </view>
        </van-cell>
        <van-cell title="收款账户" value="{{ item.payeeAccount }}" border="{{ false }}" />
        <van-cell title="开户银行" value="{{ item.bankDeposit }}" border="{{ false }}" />
        <van-cell title="收入金额" value="{{ item.incomeAmount }}" border="{{ false }}" />
        <van-cell title="所属银行" value="{{ item.bankTypeText }}" border="{{ false }}" />
        <van-cell title="转账状态" value="{{ item.transferStatusText }}" border="{{ false }}" />
        <van-cell title="交易结果" value="{{ item.causeFailure }}" border="{{ false }}" />
      </view>
    </van-collapse-item>
  </van-collapse>
</view>