index.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='user_report/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='text-left nowrap'>举报用户</th>
  10. <th class='text-left nowrap'>举报类型</th>
  11. <th class='text-left' >举报标的</th>
  12. <th class="text-left nowrap">举报时间</th>
  13. <th class="text-left nowrap">操作</th>
  14. </tr>
  15. </thead>
  16. {/notempty}
  17. <tbody>
  18. {foreach $list as $key=>$vo}
  19. <tr>
  20. <td class='text-left nowrap'>
  21. {notempty name='vo.headimg'}
  22. <img data-tips-image style="width:60px;height:60px" src="{$vo.headimg|default=''}" class="margin-right-5 text-top">
  23. {/notempty}
  24. <div class="inline-block">
  25. 用户ID:{$vo.user_id|default='--'}<br/><br/>
  26. 用户名:{$vo.name|default='--'}
  27. </div>
  28. </td>
  29. <td class='text-left nowrap'>
  30. {eq name='vo.type' value='1'}视频{/eq}
  31. {eq name='vo.type' value='2'}视频评论{/eq}
  32. {eq name='vo.type' value='3'}会员{/eq}
  33. {eq name='vo.type' value='4'}资料{/eq}
  34. {eq name='vo.type' value='5'}图文{/eq}
  35. {eq name='vo.type' value='6'}问答{/eq}
  36. {eq name='vo.type' value='7'}新闻{/eq}
  37. </td>
  38. <td class='text-left padding-0 relative'>
  39. <div style="overflow:auto;max-height:68px;padding:5px 0">
  40. {foreach $vo.report_arr as $rv}
  41. <div class="layui-row" style="line-height:23px">
  42. <div class="layui-col-xs6 text-left layui-elip font-s10">{$rv}</div>
  43. </div>
  44. {/foreach}
  45. </div>
  46. </td>
  47. <td class='text-left nowrap'>{$vo.create_at|default='--'}</td>
  48. <td class='text-left nowrap'>
  49. {if !$vo.reply}
  50. <span class="layui-btn layui-btn-sm layui-btn-warm" data-modal='{:url("edit")}?id={$vo.id}'>回 复</span>
  51. {else}
  52. <span class="layui-btn layui-btn-sm " data-modal='{:url("edit")}?id={$vo.id}'>查 看</span>
  53. {/if}
  54. <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</span>
  55. </td>
  56. </tr>
  57. {/foreach}
  58. </tbody>
  59. </table>
  60. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  61. </div>
  62. <script>
  63. function btn_confirm(msg,fun,id) {
  64. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  65. var url = "/user/user_report/"+fun;
  66. layer.closeAll();
  67. $.ajax({
  68. type: "post",
  69. url: url,
  70. data: {id:id},
  71. dataType: "json",
  72. async: false,
  73. success: function (data) {
  74. layer.msg(data.info);
  75. setTimeout(function () {
  76. window.location.reload();
  77. },1000)
  78. }
  79. });
  80. });
  81. }
  82. $('.video_player').click(function () {
  83. vUrl = $(this).data('src'); //获取到播放的url
  84. var loadstr = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop">' +
  85. '<source src='+vUrl+' type="video/mp4"></source></video>';
  86. layer.open({
  87. type: 1,
  88. title: false,
  89. area: ['730px', '500px'],
  90. shade: [0.8, 'rgb(14, 16, 22)'],
  91. skin: 'demo-class',
  92. content: loadstr
  93. });
  94. });
  95. </script>
  96. {/block}