You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
2.0 KiB

  1. <title>评论管理</title>
  2. <div class="layui-card layadmin-header">
  3. <div class="layui-breadcrumb" lay-filter="breadcrumb">
  4. <a lay-href="">主页</a>
  5. <a><cite>运营管理</cite></a>
  6. <a><cite>评论管理</cite></a>
  7. <a><cite>修改</cite></a>
  8. </div>
  9. </div>
  10. <div class="layui-fluid">
  11. <div class="layui-row layui-col-space15">
  12. <div class="layui-col-md12">
  13. <div class="layui-card">
  14. <div class="layui-card-header">修改</div>
  15. <div class="layui-card-body" pad15>
  16. <form class="layui-form" wid100 lay-filter="LAY-info-form">
  17. <div class="layui-fields">
  18. </div>
  19. <div class="layui-submit">
  20. <div class="layui-form-item">
  21. <div class="layui-input-block">
  22. <input type="hidden" name="id">
  23. <button class="layui-btn" lay-submit lay-filter="submit">确认修改</button>
  24. </div>
  25. </div>
  26. </div>
  27. </form>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <script>
  34. var config = {
  35. api: {
  36. submit: '/manage/content/comment/edit.json'
  37. },
  38. fields: [
  39. {name: 'id', key: 'id', type: 'hide',},
  40. {name: '所属内容类型', key: 'type', type: 'label',},
  41. {name: '所属内容名称', key: 'title', type: 'label',},
  42. {name: '评论用户', key: 'user.name', type: 'label',},
  43. {name: '评论时间', key: 'datetime', type: 'label'},
  44. {name: '评论内容', key: 'content', type: 'textarea'},
  45. {name: '评论状态', key: 'status', type: 'switch', extra: '显示|隐藏'},
  46. ],
  47. };
  48. layui.use('curd/addOrEdit', layui.factory('curd/addOrEdit'));
  49. </script>