12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- {extend name='admin@main'}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='user_report/index_search'}
- <table class="layui-table margin-top-10" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='text-left nowrap'>举报用户</th>
- <th class='text-left nowrap'>举报类型</th>
- <th class='text-left' >举报标的</th>
- <th class="text-left nowrap">举报时间</th>
- <th class="text-left nowrap">操作</th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr>
- <td class='text-left nowrap'>
- {notempty name='vo.headimg'}
- <img data-tips-image style="width:60px;height:60px" src="{$vo.headimg|default=''}" class="margin-right-5 text-top">
- {/notempty}
- <div class="inline-block">
- 用户ID:{$vo.user_id|default='--'}<br/><br/>
- 用户名:{$vo.name|default='--'}
- </div>
- </td>
- <td class='text-left nowrap'>
- {eq name='vo.type' value='1'}视频{/eq}
- {eq name='vo.type' value='2'}视频评论{/eq}
- {eq name='vo.type' value='3'}会员{/eq}
- {eq name='vo.type' value='4'}资料{/eq}
- {eq name='vo.type' value='5'}图文{/eq}
- {eq name='vo.type' value='6'}问答{/eq}
- {eq name='vo.type' value='7'}新闻{/eq}
- </td>
- <td class='text-left padding-0 relative'>
- <div style="overflow:auto;max-height:68px;padding:5px 0">
- {foreach $vo.report_arr as $rv}
- <div class="layui-row" style="line-height:23px">
- <div class="layui-col-xs6 text-left layui-elip font-s10">{$rv}</div>
- </div>
- {/foreach}
- </div>
- </td>
- <td class='text-left nowrap'>{$vo.create_at|default='--'}</td>
- <td class='text-left nowrap'>
- {if !$vo.reply}
- <span class="layui-btn layui-btn-sm layui-btn-warm" data-modal='{:url("edit")}?id={$vo.id}'>回 复</span>
- {else}
- <span class="layui-btn layui-btn-sm " data-modal='{:url("edit")}?id={$vo.id}'>查 看</span>
- {/if}
- <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</span>
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- <script>
- function btn_confirm(msg,fun,id) {
- layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
- var url = "/user/user_report/"+fun;
- layer.closeAll();
- $.ajax({
- type: "post",
- url: url,
- data: {id:id},
- dataType: "json",
- async: false,
- success: function (data) {
- layer.msg(data.info);
- setTimeout(function () {
- window.location.reload();
- },1000)
- }
- });
- });
- }
- $('.video_player').click(function () {
- vUrl = $(this).data('src'); //获取到播放的url
- var loadstr = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop">' +
- '<source src='+vUrl+' type="video/mp4"></source></video>';
- layer.open({
- type: 1,
- title: false,
- area: ['730px', '500px'],
- shade: [0.8, 'rgb(14, 16, 22)'],
- skin: 'demo-class',
- content: loadstr
- });
- });
- </script>
- {/block}
|