人人商城

message_info.html 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {template 'common/header'}
  2. <div class="message-info" id="js-profile-message-info" ng-controller="mcMessageInfoCtrl" ng-cloak>
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('mc/message')}"><i class="wi wi-back-circle"></i> </a>
  5. <li>
  6. <a href="{php echo url('mc/message')}">留言管理</a>
  7. </li>
  8. <li>
  9. <a href="">留言详情</a>
  10. </li>
  11. </ol>
  12. <div class="we7-page-search we7-padding-bottom clearfix">
  13. <form action="" method="post" class="form-inline" role="form">
  14. <div class="form-group">
  15. <div class="form-controls">
  16. <select ng-model="selectedType" ng-options="t.typeValue as t.typeName for t in types" ng-change="searchComment()">
  17. <option value=""></option>
  18. </select>
  19. </div>
  20. </div>
  21. </form>
  22. </div>
  23. <div class="panel we7-panel">
  24. <div class="panel-heading">
  25. 全部留言
  26. <span class="pull-right">操作</span>
  27. </div>
  28. <div class="panel-body">
  29. <div class="article-reply-item icon-selection" ng-repeat="comment in comments">
  30. <div class="media ">
  31. <div class="media-left">
  32. <a href="javascript:;">
  33. <img class="media-object reply-logo" ng-src="{{ comment.fans_info.avatar }}">
  34. </a>
  35. </div>
  36. <div class="media-body">
  37. <h4 class="media-heading reply-people">{{comment.fans_info.nickname}}</h4>
  38. <p class="reply-content">{{comment.content}}</p>
  39. <p class="reply-time">{{comment.create_time}}</p>
  40. </div>
  41. <div class="media-right reply-action">
  42. <a href="javascript:;" ng-click="mark(comment)" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="取消精选" class="active" ng-if="comment.comment_type">
  43. <i class="wi wi-star"></i>
  44. </a>
  45. <a href="javascript:;" ng-click="mark(comment)" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="精选" ng-if="!comment.comment_type">
  46. <i class="wi wi-star"></i>
  47. </a>
  48. <a href="javascript:;" ng-click="replyarticle(comment)" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="回复" ng-show="!comment.reply">
  49. <i class="wi wi-reply" ng-disabled="true"></i>
  50. </a>
  51. <a href="javascript:;" ng-click="del(comment)" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="删除留言">
  52. <i class="wi wi-delete2"></i>
  53. </a>
  54. </div>
  55. </div>
  56. <div class="reply-list">
  57. <div class="reply-item">
  58. <div class="reply-item-head">
  59. <div class="media-body">
  60. {{comment.reply.content}}
  61. </div>
  62. <div class="media-right reply-action" ng-show="comment.reply">
  63. <a href="javascript:;" ng-click="del_reply(comment)" title="删除回复">
  64. <i class="wi wi-delete2"></i>
  65. </a>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="reply-editor" ng-init="comment.replying=false" ng-show="comment.replying">
  70. <div class="reply-editor-head">
  71. 回复该评论
  72. </div>
  73. <div class="reply-editor-content">
  74. <textarea ng-model="comment.replycontent" cols="30" rows="10" class="form-control replaycontent" contenteditable></textarea>
  75. </div>
  76. <div class="reply-editor-action">
  77. <button class="btn btn-primary" ng-click="send(comment)">发送 </button>
  78. <button class="btn btn-default" ng-click="cancel(comment)">取消</button>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="text-right we7-margin-top">
  85. {$pager}
  86. </div>
  87. </div>
  88. <script>
  89. angular.module('profileApp').value('config', {
  90. 'comments' : {php echo json_encode($comments)},
  91. 'type' : {$type},
  92. 'index' : {$index},
  93. 'msg_data_id' : {$msg_data_id},
  94. 'getMessageInfoUrl' : "{php echo url('mc/message/message_info')}",
  95. 'replyMessageUrl' : "{php echo url('mc/message/message_reply')}",
  96. 'markMessageUrl' : "{php echo url('mc/message/message_mark')}",
  97. 'delMessageUrl' : "{php echo url('mc/message/message_del')}",
  98. 'delMessageReplyUrl' : "{php echo url('mc/message/message_reply_del')}",
  99. });
  100. angular.bootstrap($('#js-profile-message-info'), ['profileApp']);
  101. </script>
  102. {template 'common/footer'}