<ion-view view-title="我的车辆">
    <ion-nav-bar class="bar-positive nav-bar-container" nav-bar-transition="ios" nav-bar-direction="exit" nav-swipe="">
        <ion-nav-back-button>
        </ion-nav-back-button>
        <ion-nav-buttons side="right">
            <button class="button  button-icon icon ion-android-add" ng-click="add()"></button>
        </ion-nav-buttons>
    </ion-nav-bar>
    <ion-content>
        <!--下拉刷新-->
        <ion-refresher pulling-text="下拉刷新" on-refresh="load(true)">
        </ion-refresher>
        <div class="list">
            <div class="item item-thumbnail-left" ng-repeat="item in items" ng-click="detail(item)">
                <img ng-src="{{item.photo | truckPhoto}}">
                <p>车牌号：{{item.truck_no}}</p>
                <p>类型：{{item.type}}</p>
                <p>车长：{{item.length}}(米)</p>
                <p>载重：{{item.load_weight}}(吨)</p>
                <button class="button button-stable" ng-click="delete(item,$event)" style="float:right;margin-top:-70px">
                    删除
                </button>
            </div>
         </div>
        <!--上拉更多-->
        <ion-infinite-scroll ng-if="filter.hasMore" on-infinite="load(false)" distance="10%"></ion-infinite-scroll>
</ion-content>
</ion-view>
 