人人商城

message_list.html 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {template 'common/header'}
  2. <div id="js-profile-message" ng-controller="mcMessageListCtrl" ng-cloak>
  3. <div class="we7-page-title">
  4. 留言管理
  5. </div>
  6. <ul class="we7-page-tab">
  7. <li class="active">
  8. <a href="{php echo url('mc/message')}" >留言管理</a>
  9. </li>
  10. </ul>
  11. <div class="article-list-panel">
  12. <table class="table we7-table table-hover article-list vertical-middle">
  13. <col width="80px"/>
  14. <col />
  15. <col width="220px"/>
  16. <col width="120px"/>
  17. <tr>
  18. <th>排序</th>
  19. <th class="text-left">标题</th>
  20. <th class="text-center">是否开启留言功能</th>
  21. <th class="text-right">操作</th>
  22. </tr>
  23. <tr ng-if="lists == '' || lists == undefined">
  24. <td colspan="4" class="text-center">暂无数据</td>
  25. </tr>
  26. <tr ng-repeat="new in lists">
  27. <td ng-bind="$index"></td>
  28. <td class="text-left"><div class="text-over" style="max-width: 220px" ng-bind="new.title"></div></td>
  29. <td class="text-center">
  30. <label>
  31. <div ng-class="{1:'switch switchOn', 0:'switch switchOff'}[new.need_open_comment]" id="key-1390" ng-click="switch(new)"></div>
  32. </label>
  33. </td>
  34. <td>
  35. <div class="link-group">
  36. <a href="javascript:void(0);" ng-click="getMessageInfo(new.index, new.msg_data_id)">查看留言</a>
  37. </div>
  38. </td>
  39. </tr>
  40. </table>
  41. </div>
  42. </div>
  43. <script>
  44. angular.module('profileApp').value('config', {
  45. 'lists' : {php echo json_encode($news_arr)},
  46. 'getMessageInfoUrl' : "{php echo url('mc/message/message_info')}",
  47. 'switchMessageUrl' : "{php echo url('mc/message/message_switch')}",
  48. });
  49. angular.bootstrap($('#js-profile-message'), ['profileApp']);
  50. </script>
  51. {template 'common/footer'}