<view class="address" wx:if="{{bankArr.length > 0}}">
    <view class="address-li" wx:for="{{bankArr}}" wx:key="bankArr" wx:for-index="index">
        <view class="top">
            <image class="top-logo" src="{{item.bank.cover}}" mode="aspectFill"></image>
            <view class="top-name">{{item.bank.name}}</view>
        </view>
        <view class="cont">
            <view class="address-title">
                <text>支行名称</text>{{item.branch_name}}
            </view>
            <view class="address-title">
                <text>银行卡号</text>{{item.no}}
            </view>
            <view class="address-title">
                <text>收款人姓名</text>{{item.name}}
            </view>
            <view class="address-title">
                <text>收款人手机号</text>{{item.mobile}}
            </view>
        </view>
        <view class="address-tool">
            <block wx:if="{{type == 'selectAddress'}}">
                <view class="address-tool-btn address-tool-border" bindtap="selectAddress" data-index="{{index}}">选择地址</view>
            </block>
            <block wx:else>
                <navigator class="address-tool-btn address-tool-border" hover-class="none" url="/pages/bankCard/bankAdd/bankAdd?type=Compile&id={{item.bank_account_id}}">编辑账户</navigator>
                <view class="address-tool-btn" bindtap="bankRemove" data-index="{{index}}" data-id="{{item.bank_account_id}}">删除账户</view>
            </block>
        </view>
    </view>
</view>

<view class="pack-center pages-hint" wx:else>
    <image src="/static/imgs/cont_null.png" mode="widthFix"></image>
    <view>还未添加银行卡</view>
</view>

<!-- 添加按钮 -->
<view class="address-footer">
    <navigator url="/pages/bankCard/bankAdd/bankAdd?type=Add">添加银行卡</navigator>
</view>