notice.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <ion-view view-title="公告">
  2. <ion-nav-buttons side="left">
  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="toper()" ng-if="roleid==1">权限&nbsp;&nbsp;</button>
  7. <button class="button button-clear" ng-click="toadd()" ng-show="createstate==1">
  8. <i class="icon ion-android-add"></i>
  9. </button>
  10. </ion-nav-buttons>
  11. <ion-content>
  12. <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
  13. <a class="item item-icon-right" href="#/notice-posted">发布的公告
  14. <i class="icon ion-chevron-right icon-accessory"></i>
  15. </a>
  16. <div class="item item-divider">收到的公告</div>
  17. <div ng-if="loading" class="center init-load action-sheet-backdrop">
  18. <ion-spinner icon="android"></ion-spinner>
  19. </div>
  20. <div ng-if="!loading">
  21. <div class="list">
  22. <div class="item item-avatar item-icon-right" ng-repeat="data in Notice.results" ng-click="todetails(data.id)">
  23. <img ng-src="../../../img/panda.png" ng-click="showcardinfo(data.usrid.id)">
  24. <span>{{data.title}}</span>
  25. <p>{{data.content}}</p>
  26. <p>{{data.update_dd == null ? data.create_dd : data.update_dd | date:'MM-dd'}}&nbsp;
  27. <span ng-hide="(data.readtimes == 0 || data.readtimes == null) || (data.commenttimes == 0 || data.commenttimes == null)">|</span>&nbsp;
  28. <span ng-hide="data.readtimes == 0 || data.readtimes == null">{{data.readtimes}}看</span>&nbsp;
  29. <span ng-hide="data.commenttimes == 0 || data.commenttimes == null">{{data.commenttimes}}评</span>
  30. </p>
  31. <i class="icon ion-chevron-right icon-accessory"></i>
  32. </div>
  33. </div>
  34. </div>
  35. <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
  36. <h4 class="stable center" ng-show="Notice&& Notice.next == null&&Notice.results.length>=10">没有更多了</h4>
  37. </ion-content>
  38. </ion-view>