123456789101112131415161718192021222324252627282930313233343536 |
- <?php /*a:3:{s:72:"D:\project\gyx\gaoyixia\application\nutrition\view\user_video\index.html";i:1699858976;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;s:79:"D:\project\gyx\gaoyixia\application\nutrition\view\user_video\index_search.html";i:1699858976;}*/ ?>
- <div class="layui-card layui-bg-gray"><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"><button data-action='<?php echo url("del"); ?>' data-confirm="确定要删除吗?" data-csrf="<?php echo systoken('del'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><div class="think-box-shadow"><fieldset><legend>条件搜索</legend><form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get" autocomplete="off"><div class="layui-form-item layui-inline"><label class="layui-form-label">标题</label><div class="layui-input-inline"><input name="title" value="<?php echo htmlentities((app('request')->get('title') ?: '')); ?>" placeholder="请输入标题" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">手机号</label><div class="layui-input-inline"><input name="phone" value="<?php echo htmlentities((app('request')->get('phone') ?: '')); ?>" placeholder="请输入手机号" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">状态</label><div class="layui-input-inline"><select class="layui-select" name="status"><option value="-1" <?php if($status == -1): ?> selected <?php endif; ?> >全部</option><?php foreach(['暂不审核','审核通过','审核拒绝'] as $ck=>$cv): ?><option <?php if($status == $ck): ?> selected <?php endif; ?> value="<?php echo htmlentities($ck); ?>"><?php echo htmlentities($cv); ?></option><?php endforeach; ?></select></div></div><div class="layui-form-item layui-inline"><button class="layui-btn layui-btn-primary"><i class="layui-icon"></i> 搜 索</button></div></form><script>form.render()</script></fieldset><table class="layui-table margin-top-20" lay-skin="line"><thead><tr><th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></th><th class='text-left nowrap' >ID</th><th class='text-left nowrap' >用户</th><th class='text-left ' style="max-width: 20%">标题</th><th class='text-left nowrap' >视频</th><th class='text-left nowrap' >分类</th><th class='text-left nowrap'>审核状态</th><th class='text-left nowrap' >状态</th><th class='text-left nowrap'>置顶</th><th class="text-left nowrap">操作</th></tr></thead><tbody><?php foreach($list as $key=>$vo): ?><tr><td class='list-table-check-td think-checkbox'><input class="list-check-box" value='<?php echo htmlentities($vo['id']); ?>' type='checkbox'></td><td class='text-left nowrap' ><?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:'')); ?></td><td class='text-left nowrap'><img data-tips-image style="width:50px;height:50px" src="<?php echo htmlentities((isset($vo['headimg']) && ($vo['headimg'] !== '')?$vo['headimg']:'')); ?>" class="margin-right-5 text-top"><div class="inline-block"> 用户ID:<?php echo htmlentities((isset($vo['user_id']) && ($vo['user_id'] !== '')?$vo['user_id']:'--')); ?><br> 手机号:<?php echo htmlentities((isset($vo['phone']) && ($vo['phone'] !== '')?$vo['phone']:'--')); ?><br> 用户昵称:<?php echo htmlentities((isset($vo['user_name']) && ($vo['user_name'] !== '')?$vo['user_name']:'--')); ?></div></td><td class='text-left '><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:'')); ?></td><td class='text-left nowrap'><img class="video_player" alert="点击播放" src="<?php echo htmlentities((isset($vo['cover']) && ($vo['cover'] !== '')?$vo['cover']:'')); ?>" data-src="<?php echo htmlentities((isset($vo['video_url']) && ($vo['video_url'] !== '')?$vo['video_url']:'')); ?>" style="height: 50px;width: 75px" /></td><td class='text-left nowrap'><?php echo htmlentities((isset($video_cate[$vo['first_classify']]['title']) && ($video_cate[$vo['first_classify']]['title'] !== '')?$video_cate[$vo['first_classify']]['title']:'--')); ?>--<?php echo htmlentities((isset($video_cate[$vo['second_classify']]['title']) && ($video_cate[$vo['second_classify']]['title'] !== '')?$video_cate[$vo['second_classify']]['title']:'--')); ?></td><td class='text-left nowrap'><?php echo $vo['status']==0 ? '待审核' : ($vo['status'] == 1?'审核通过':'审核拒绝'); ?></td><td class='text-left '><?php if($vo['is_deleted'] == 0): ?><span class="layui-btn layui-btn-xs">正 常</span><?php else: ?><span class="layui-btn layui-btn-xs layui-btn-warm ">已下架</span><?php endif; ?></td><td class='text-left nowrap'><?php echo $vo['is_top']==1 ? '是' : '否'; ?></td><td class='text-left nowrap' ><?php if($vo['status'] == 0): ?><a data-title="审核" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>审 核</a><?php else: ?><a data-title="查看" class="layui-btn layui-btn-sm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>查 看</a><?php if($vo['status'] == '1'): ?><!-- <a data-title="加入系列" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("series"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>加入系列</a>--><!-- <a data-title="新建视频" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("new_video"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>新建视频</a>--><?php endif; ?><?php endif; ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','<?php echo htmlentities($vo['id']); ?>');">删 除</span></td></tr><?php endforeach; ?></tbody></table><?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">没有记录哦</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?></div><script> function btn_confirm(msg,fun,id) {
- layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
- var url = "/nutrition/user_video/"+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></div></div>
|