<nav type="back" background-color="{{activeColor ? activeColor : '#ffffff'}}"  frontColor="{{titleColor ? titleColor : '#000000'}}" title="申请提现"></nav>
<view class="earnings">￥{{earnings ? earnings:'0'}}</view>
<view class="apply">
    <view class="title">提现金额</view>
    <view class="string">
        ￥
        <input bindblur="blur" type="text" data-name="price" type="number" value="{{price}}"class="input" placeholder="请输入提现金额"></input>
    </view>
</view>
<view class="apply">
    <view wx:if="{{times && minCount }}" class="way">提现说明：每月可提现{{times}}次， 每次最少提现 {{minCount}}</view>
    <view class="way">提现方式</view>
    <view class='box'>
        <view class='box-container' wx:for="{{list}}" wx:key="list">
            <view class="{{index==idx?'_left':'left'}}" bindtap='goIndex' data-index="{{index}}" data-item="{{item}}">
                <view>
                    <van-icon name="cash-back-record" />
                    {{item.num}}
                </view>
                <view class="choose">
                    <van-icon name="success" color="#ffffff" size="50rpx" />
                </view>
            </view>
        </view>
        <block wx:if="{{name=='提现到银行卡'}}">
            <view class="bank_list">
                <block  wx:for="{{bankList}}" wx:key="index">
                    <view class="bank {{bank_index == index ? 'active_bank' : ''}}" data-index="{{index}}" data-item="{{item}}" bind:tap="onChangBank">
                        <view class="label">持卡人姓名： {{item.name}}</view>
                        <view class="label">开户银行： {{item.bankName}}</view>
                        <view class="label">银行卡号： {{item.cardId}}</view>
                    </view>
                </block>
            </view>
            <view class="add_bank" bind:tap="bindBank">
                添加银行卡
            </view>
            <!-- <view class="bank">
                <view class="name">所属银行:</view>
                <input bindblur="blur" type="text" data-name="bankName" value="{{bankName}}" placeholder="请输入所属银行"></input>
            </view>
            <view class="bank">
                <view class="name">姓名:</view>
                <input bindblur="blur" type="text" data-name="names" value="{{names}}" placeholder="请输入姓名"></input>
            </view>
            <view class="bank">
                <view class="name">卡号:</view>
                <input bindblur="blur" type="text" data-name="accountId" value="{{accountId}}" placeholder="请输入卡号"></input>
            </view> -->
        </block>
    </view>
</view>
<view class="withdrawal" bindtap="getUserAgentWithdraw">提现</view>