<ion-view view-title="我的账号">
    <ion-nav-buttons side="right">
        <button class="button button-icon icon ion-ios-plus-outline light" ui-sref="app.my_account_add" style="box-shadow:none; padding-bottom: 20px"></button>
    </ion-nav-buttons>
    <ion-content overflow-scroll="true" style="overflow: auto">
        <!--下拉刷新-->
        <ion-refresher pulling-text="下拉刷新" on-refresh="load(true)">
        </ion-refresher>
        <div ng-if="items.length==0" class="padding" style="color: #BEBEBE; font-size: 15px">
            还未添加任何账户
        </div>
            <div class="list" style="margin-bottom: 0" ng-repeat="item in items">
                <div class="item" style="border-bottom: 1px solid #E6E6E6;">
                    <div ng-if="!item.qrcode">
                        <p style="font-weight:bold">{{item.bank_name}}</p>
                        <p >账号：{{item.bank_number}}</p>
                        <p >预留手机号：{{item.bank_phone}}</p>
                    </div>
                    <div ng-if="item.qrcode">
                        <p style="font-weight:bold">{{item.type}}</p>
                        <img ng-src="{{ item.qrcode | qrcode}}" style="max-width: 70px;"/>
                    </div>
                    <button class="button button-stable" ng-click="destroyAccount(item.id)" style="float:right;margin-top:-50px">
                        删除
                    </button>
                </div>
            </div>
        <!--上拉更多-->
        <ion-infinite-scroll ng-if="filter.hasMore" on-infinite="load(false)" distance="10%"></ion-infinite-scroll>
    </ion-content>
</ion-view>
