<ion-view view-title="任务" hide-back-button="true">
    <ion-nav-buttons side="left" style="overflow:auto;">
        <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()">&nbsp;返回</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="toman()" ng-if="roleid==1">管理&nbsp;&nbsp;</button>
        <button class="button button-clear" ng-click="toadd()">
            <i class="icon ion-android-add"></i>
        </button>
    </ion-nav-buttons>
    <ion-content>
        <a class="item item-icon-right" href="#/postedtask">发布的任务
            <i class="icon ion-chevron-right icon-accessory"></i>
        </a>
        <div class="item item-divider">收到的任务</div>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <div ng-if="!loading">
            <div class="list">
                <task source="data" ng-repeat="data in Task" ng-click="todetails(data)"></task>
            </div>
        </div>
        <ion-infinite-scroll spinner="android" ng-if="nexturl!=null" on-infinite="loadMore()" distance="1%" immediate-check="false">
        </ion-infinite-scroll>
        <h4 class="stable center" ng-show="Task&&nexturl== null&&Task.length>=10">没有更多了</h4>
    </ion-content>
</ion-view>