commont-list.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {template 'common/header'}
  2. <ol class="breadcrumb we7-breadcrumb">
  3. <a href="{php echo url('site/article')}"><i class="wi wi-back-circle"></i> </a>
  4. <li><a href="{php echo url('site/article')}">文章管理</a></li>
  5. <li><a href="{php echo url('site/article/comment_list',array('id' => intval($_GPC['id'])))}">文章评论</a></li>
  6. </ol>
  7. <div id="js-wesite-article-comment-display" ng-controller="articleComment" ng-cloak>
  8. <div class="we7-page-search we7-padding-bottom clearfix">
  9. <form action="./index.php" method="get" class="form-inline" role="form">
  10. <div class="form-group">
  11. <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
  12. <select class="form-control tpl-category-parent we7-select" id="category_parent" ng-model="order_sort" ng-change="changeSort()">
  13. <option ng-selected ="order_sort == 2" ng-value="2" >倒序</option>
  14. <option ng-selected ="order_sort == 1" ng-value="1">升序</option>
  15. </select>
  16. </div>
  17. <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
  18. <select class="form-control tpl-category-parent we7-select" id="category_parent" ng-model="is_comment" ng-change="changeComment()">
  19. <option ng-selected ="is_comment == 0" ng-value="0">全部</option>
  20. <option ng-selected ="is_comment == 2" ng-value="2" >已回复</option>
  21. <option ng-selected ="is_comment == 1" ng-value="1">未回复</option>
  22. </select>
  23. </div>
  24. </div>
  25. </form>
  26. </div>
  27. <div class="panel we7-panel" id="">
  28. <div class="panel-heading">
  29. <span>全部留言</span>
  30. <span class="pull-right">操作</span>
  31. </div>
  32. <div class="panel-body">
  33. <div class="article-reply-item icon-selection" ng-repeat="comment in articleList">
  34. <div class="media ">
  35. <div class="media-left">
  36. <a href="javascript:;">
  37. <img class="media-object reply-logo" ng-src="comment.avatar">
  38. </a>
  39. </div>
  40. <div class="media-body">
  41. <h4 class="media-heading reply-people">{{comment.username}}</h4>
  42. <p class="reply-content">{{comment.content}}</p>
  43. <p class="reply-time">{{comment.createtime}}</p>
  44. </div>
  45. <div class="media-right">
  46. <a href="javascript:;" ng-click="replyarticle(comment)" ng-show="!comment.replying" class="color-default">回复</a>
  47. </div>
  48. </div>
  49. <div class="reply-list">
  50. <div class="reply-item" ng-repeat="son_comment in comment.son_comment">
  51. <div class="reply-item-head">
  52. {{son_comment.username}}
  53. </div>
  54. <div class="reply-item-content">
  55. {{son_comment.content}}
  56. </div>
  57. </div>
  58. </div>
  59. <div class="reply-editor" ng-show="comment.replying">
  60. <div class="reply-editor-head">
  61. 回复该评论
  62. </div>
  63. <div class="reply-editor-content">
  64. <textarea ng-model="comment.replycontent" cols="30" rows="10" class="form-control replaycontent" contenteditable></textarea>
  65. <!--<div class="reply-editor-emoji">-->
  66. <!--<i class="fa fa-github-alt emotion-triggers" ng-click="selectEmoji($event,comment)"> </i>-->
  67. <!--</div>-->
  68. </div>
  69. <div class="reply-editor-action">
  70. <button class="btn btn-primary" ng-click="send(comment)">发送 </button>
  71. <button class="btn btn-default" ng-click="cancel(comment)">取消</button>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="text-right we7-margin-top">
  77. {$pager}
  78. </div>
  79. </div>
  80. </div>
  81. <script>
  82. angular.module('wesiteApp').value('config', {
  83. articleId:"{$articleId}",
  84. order_sort:"{$order_sort}",
  85. is_comment:"{$is_comment}",
  86. articleList: {php echo !empty($article_lists) ? json_encode($article_lists) : 'null'},
  87. links :{
  88. reply: "{php echo url('site/comment/post')}",
  89. display: "{php echo url('site/comment/display')}",
  90. }
  91. });
  92. angular.bootstrap($('#js-wesite-article-comment-display'), ['wesiteApp']);
  93. </script>
  94. {template 'common/footer'}