task.html 1.4 KB

12345678910111213141516171819202122232425262728
  1. <ion-view view-title="任务" hide-back-button="true">
  2. <ion-nav-buttons side="left" style="overflow:auto;">
  3. <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()">&nbsp;返回</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. <div ng-if="loading" class="center init-load action-sheet-backdrop">
  17. <ion-spinner icon="android"></ion-spinner>
  18. </div>
  19. <div ng-if="!loading">
  20. <div class="list">
  21. <task source="data" ng-repeat="data in Task" ng-click="todetails(data)"></task>
  22. </div>
  23. </div>
  24. <ion-infinite-scroll spinner="android" ng-if="nexturl!=null" on-infinite="loadMore()" distance="1%" immediate-check="false">
  25. </ion-infinite-scroll>
  26. <h4 class="stable center" ng-show="Task&&nexturl== null&&Task.length>=10">没有更多了</h4>
  27. </ion-content>
  28. </ion-view>