1234567891011121314151617181920212223242526272829303132333435363738 |
- <ion-view view-title="公告">
- <ion-nav-buttons side="left">
- <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()"> 返回</button>
- </ion-nav-buttons>
- <ion-nav-buttons side="right">
- <button class="button button-clear" ng-click="toper()" ng-if="roleid==1">权限 </button>
- <button class="button button-clear" ng-click="toadd()" ng-show="createstate==1">
- <i class="icon ion-android-add"></i>
- </button>
- </ion-nav-buttons>
- <ion-content>
- <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
- <a class="item item-icon-right" href="#/notice-posted">发布的公告
- <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">
- <div class="item item-avatar item-icon-right" ng-repeat="data in Notice.results" ng-click="todetails(data.id)">
- <img ng-src="../../../img/panda.png" ng-click="showcardinfo(data.usrid.id)">
- <span>{{data.title}}</span>
- <p>{{data.content}}</p>
- <p>{{data.update_dd == null ? data.create_dd : data.update_dd | date:'MM-dd'}}
- <span ng-hide="(data.readtimes == 0 || data.readtimes == null) || (data.commenttimes == 0 || data.commenttimes == null)">|</span>
- <span ng-hide="data.readtimes == 0 || data.readtimes == null">{{data.readtimes}}看</span>
- <span ng-hide="data.commenttimes == 0 || data.commenttimes == null">{{data.commenttimes}}评</span>
- </p>
- <i class="icon ion-chevron-right icon-accessory"></i>
- </div>
- </div>
- </div>
- <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
- <h4 class="stable center" ng-show="Notice&& Notice.next == null&&Notice.results.length>=10">没有更多了</h4>
- </ion-content>
- </ion-view>
|