task.html 1.3 KB

1234567891011121314151617181920212223242526
  1. <ion-view view-title="任务" hide-back-button="true">
  2. <ion-nav-buttons side="left" style="overflow:auto;">
  3. <ion-back-button></ion-back-button>
  4. </ion-nav-buttons>
  5. <ion-nav-buttons side="right">
  6. <button class="button button-clear" ng-click="toman()" ng-if="roleid==1">管理&nbsp;&nbsp;</button>
  7. <button class="button button-clear" ng-click="toadd()">
  8. <i class="icon ion-android-add"></i>
  9. </button>
  10. </ion-nav-buttons>
  11. <ion-content>
  12. <a class="item item-icon-right" href="#/postedtask">发布的任务
  13. <i class="icon ion-chevron-right icon-accessory"></i>
  14. </a>
  15. <div class="item item-divider">收到的任务</div>
  16. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  17. <div ng-if="!loading">
  18. <div class="list">
  19. <task source="data" ng-repeat="data in Task" ng-click="todetails(data)"></task>
  20. </div>
  21. </div>
  22. <ion-infinite-scroll spinner="android" ng-if="nexturl!=null" on-infinite="loadMore()" distance="1%" immediate-check="false">
  23. </ion-infinite-scroll>
  24. <h4 class="stable center" ng-show="Task&&nexturl== null&&Task.length>=10">没有更多了</h4>
  25. </ion-content>
  26. </ion-view>