daily-details.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <ion-view view-title="汇报详情" hide-back-button="true">
  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-icon ion-ios-more" ng-click="popover.show($event)" ng-if="cssstyle"></button>
  7. </ion-nav-buttons>
  8. <ion-content>
  9. <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
  10. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  11. <div ng-if="!loading" class="list daily">
  12. <div class="item item-divider"></div>
  13. <daily-header daily="daily"></daily-header>
  14. <daily-content daily="daily"></daily-content>
  15. <div class="item item-divider" ng-if="reads.length != 0"></div>
  16. <div class="item" ng-if="reads.length != 0">
  17. <p>看过&nbsp;{{reads.length == 0 ? "" : reads.length}}</p>
  18. <div class="list see-list">
  19. <img ng-repeat="read in reads" ng-click="showcardinfo(read.create_user)" ng-src="../../../img/cat.png"/>
  20. <!--//todo:{{readitem.usrid.photo}}-->
  21. </div>
  22. </div>
  23. <div class="item item-divider"></div>
  24. <!--//todo:将评论和看过独立出一个指令进行操作-->
  25. <div class="item">
  26. <p>评论&nbsp;{{comments.results.length == 0 ? "" : comments.results.length}}</p>
  27. </div>
  28. <ion-list>
  29. <div class="item center" ng-if="comments.results.length == 0">还没有人进行评论哦</div>
  30. <a class="item item-avatar item-text-wrap" ng-repeat="comment in comments.results" ng-click="popupMessageOpthins(comment.id,comment.create_user)">
  31. <img ng-src="../../../img/panda.png" ng-click="showcardinfo()">
  32. <!--//todo:查看信息-->
  33. <div>
  34. <span>{{comment.create_user_name}}</span>
  35. <p>{{comment.comment}}</p>
  36. <p class="time">{{comment.create_date | getDateDiff}}</p>
  37. </div>
  38. </a>
  39. <div class='obligate-item'></div>
  40. </ion-list>
  41. </div>
  42. <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
  43. </ion-content>
  44. <ion-footer-bar keyboard-attach class="bar-stable">
  45. <div class="bar bar-footer item-input-inset">
  46. <!--<button ng-click="addhappy()" class="button button-clear">
  47. <i class="icon ion-android-happy clear"></i>
  48. </button>-->
  49. <label class="item-input-wrapper radius-30">
  50. <input type="text" ng-model="data.comment" placeholder="添加评论">
  51. </label>
  52. <button class="button button-positive" ng-disabled="data.comment == '' || data.comment == null" ng-click="sendComment()">发送</button>
  53. </div>
  54. </ion-footer-bar>
  55. <script id="templates/detiilsmenu.html" type="text/ng-template">
  56. <!--<ion-popover-view ng-class="{true:'details-popup',false:'details-popup-other'}[cssstyle]">-->
  57. <ion-popover-view ng-class="{true:'popver_view',false:'details-popup-other'}[cssstyle]">
  58. <ion-content>
  59. <ion-list>
  60. <!--<ion-item class="item item-button" type="item-text-wrap" ng-click="transfer()">转发</ion-item>-->
  61. <ion-item class="item item-button" type="item-text-wrap" ng-click="edit()" ng-if="cssstyle">编辑</ion-item>
  62. <ion-item class="item item-button" type="item-text-wrap" ng-click="remove()" ng-if="cssstyle">删除</ion-item>
  63. </ion-list>
  64. </ion-content>
  65. </ion-popover-view>
  66. </script>
  67. </ion-view>