liveDetail.html 16.6 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:replace="../templates/common/head::head"></head>

<body class="skin-blue sidebar-mini">

<div class="wrapper">

    <div th:replace="../templates/common/frame::frame"></div>

    <div class="content-wrapper" style="min-height: 788px;">
        <section class="content-header">
            <h1>
                直播详情
            </h1>
            <ol class="breadcrumb">
                <li> 首页</li>
                <li class="active">直播审核</li>
            </ol>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box box-info">
                        <div class="box-body form-horizontal">
                            <div id="tabContents" class="tab-content">

                                <div id="tabHome" class="tab-pane fade in active padding-t-15 ">
                                    <!-- 左侧列表展示 -->
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="live_title" class="control-label col-sm-2">直播id:</label>
                                            <div class="col-sm-10">
                                                <h5 style=" font-weight: bold;" th:text="${live.id}"></h5>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="live_title" class="control-label col-sm-2">直播标题:</label>
                                            <div class="col-sm-10">
                                                <h5 style="font-size:1.5em; font-weight: bold;"
                                                    th:text="${live.activity_name}"></h5>
                                            </div>
                                        </div>
                                        <div class="form-group ">
                                            <label for="username" class="control-label col-sm-2">直播状态:</label>
                                            <div class="col-sm-10 ">
                                                <h5 class="status" th:if="${live.activity_status==0}">直播撤销</h5>
                                                <h5 class="status" th:if="${live.activity_status==1}">正在直播</h5>
                                                <h5 class="status" th:if="${live.activity_status==2}">直播完成</h5>
                                                <h5 class="status" th:if="${live.activity_status==3}">等待直播</h5>
                                                <h5 class="status" th:if="${live.activity_status==4}">直播下线</h5>
                                            </div>
                                        </div>
                                         <div class="form-group" >
                                            <label for="claimed_at" class="control-label col-sm-2">直播开始时间:</label>
                                            <div class="col-sm-10">
                                                <h5  th:text="${#dates.format(live.activity_start_time, 'yyyy-MM-dd HH:mm:ss')}">
                                                    2018-11-29 10:04:35</h5>
                                            </div>
                                        </div>
                                         <div class="form-group" >
                                            <label for="claimed_at" class="control-label col-sm-2">直播结束时间:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${#dates.format(live.activity_end_time, 'yyyy-MM-dd HH:mm:ss')}">
                                                    2018-11-29 10:04:35</h5>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="live_title" class="control-label col-sm-2">直播简介</label>
                                            <div class="col-sm-8">
                                                <h5 style="font-size:1.5em; "
                                                    th:text="${live.activity_intro}"></h5>
                                            </div>
                                        </div>
                                        <div class="form-group" th:if="${live.activity_status== 4 or live.activity_status== 2}">
                                            <div class="col-sm-10">
                                                <div class="modal-body" id="videoBox" style="height:400px">
                                                    <script type="text/javascript"
                                                            src="//resweb.cnliveimg.com/sites/common/cnlive_video.min.js"></script>
                                                    <script th:inline="javascript">
                                                        var videoUrl = [[${live.playback_url}]];
                                                        var cover = [[${live.cover_img_url}]];
                                                        cnliveVideo.init({
                                                            "eleId": "videoBox",
                                                            "width": 450,//指定放入指定ID元素内
                                                            "height": 400,
                                                            "model": 3,
                                                            "autoplay": 1,
                                                            "currRate": 3,
                                                            "cover": cover,
                                                            "videoUrl_3": videoUrl
                                                        });
                                                    </script>

                                                </div>
                                            </div>
                                        </div>

											<div class="form-group"  th:if="${live.activity_status!= 4 and live.activity_status!= 2}">
												<div class="col-sm-10">
													<div class="modal-body" style="height: 400px">
														<embed name="cnlive" width="450" height="100%" id="cnlive"
															src="http://data.cnlive.com/export/UuidPlayerMain.swf"
															th:flashVars="@{'hasBorder=false&appid=82_irej0pbo53&type=live&model=2&videoURL='+${live.rtmp_url}}"
															type="application/x-shockwave-flash" wmode="window"
															quility="high" allowscriptaccess="always"
															allowfullscreen="true">
													</div>

												</div>
											</div>


										</div>
                                    
                                    <!-- 右侧列表展示 -->
                                    <div class="col-sm-6">
                                    	<div class="form-group">
                                            <label for="live_title" class="control-label col-sm-2">直播流:</label>
                                            <div class="col-sm-10">
                                                <h5 style="font-weight: bold;"
                                                    th:text="${live.rtmp_url}"></h5>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="program_id" class="control-label col-sm-2">直播活动id:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${live.activity_id}">604</h5>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="live_user_id" class="control-label col-sm-2">sp_id:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${live.sp_id}">821403</h5>
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label for="activity_id" class="control-label col-sm-2">sp昵称:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${live.spid_desc}">
                                                    769:video:comets:604_902dce9848ac482eb433f15c2cb0c401#3025</h5>
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label for="live_user_avatar"
                                                   class="control-label col-sm-2">封面图:</label>
                                            <div class="col-sm-10">
                                                <h5><img width="160px" th:src="@{${live.cover_img_url}}"
                                                         alt=""></h5>

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="live_user_name" class="control-label col-sm-2">审核类型:</label>
                                            <div class="col-sm-10">
                                                <h5 class="status" th:if="${live.shenhe_type==1}">免审</h5>
                                                <h5 class="status" th:if="${live.shenhe_type==2}">机审</h5>
                                                <h5 class="status" th:if="${live.shenhe_type==3}">人工审</h5>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="live_user_ip"
                                                   class="control-label col-sm-2">审核状态:</label>
                                            <div class="col-sm-10">
                                                <h5 class="status" th:if="${live.shenhe_state==0}">未认领</h5>
                                                <h5 class="status" th:if="${live.shenhe_state==1}">已认领</h5>
                                                <h5 class="status" th:if="${live.shenhe_state==2}">已审核</h5>
                                            </div>
                                        </div>

                                        <div class="form-group" th:if="${live.shenhe_state!=0}">
                                            <label for="app_id" class="control-label col-sm-2">审核员:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${live.updater}">769_jetj7bq525</h5>
                                            </div>
                                        </div>
                                        
                                        <div class="form-group">
                                            <label for="msg" class="control-label col-sm-2">审核信息:</label>
                                            <div class="col-sm-8">
                                                <textarea class="form-control" name="msg" cols="50" rows="8"
                                                          id="msg" th:text="${live.shenhe_msg}">审核信息</textarea>
                                            </div>
                                        </div>

                                        <div class="form-group" >
                                            <label for="claimed_at" class="control-label col-sm-2">创建时间:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${#dates.format(live.created_at, 'yyyy-MM-dd HH:mm:ss')}">
                                                    2018-11-29 10:04:35</h5>
                                            </div>
                                        </div>
                                        <div class="form-group" >
                                            <label for="claimed_at" class="control-label col-sm-2">最后更新时间:</label>
                                            <div class="col-sm-10">
                                                <h5 th:text="${#dates.format(live.updated_at, 'yyyy-MM-dd HH:mm:ss')}">
                                                    2018-11-29 10:04:35</h5>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <hr>
                            </div>

                            <div class="form-group">
                                <input type="text" hidden="hidden" id="live_id" th:value="${live.id}">
                            </div>


                            <div class="box-footer">
<!--                                 <div class="col-sm-5"> -->
<!--                                     <button type="button" class="btn btn-danger pull-right" onclick="live(2);">拒 绝 -->
<!--                                     </button> -->
<!--                                 </div> -->

<!--                                 <div class="col-sm-1" style="margin-right:26px;"> -->
<!--                                     <button type="button" class="btn btn-primary pull-right" onclick="live(1);">通 过 -->
<!--                                     </button> -->
<!--                                 </div> -->

                                <div class="col-sm-6">
                                    <button type="button" class="btn btn-info pull-right"
                                            onclick="self.location=document.referrer;">返回列表
                                    </button>
                                </div>
                            </div>
                            <script th:inline="javascript">
                                var liveId = [[${live.id}]];

                                //审核操作,status=1为通过
                                function live(status) {
                                    if (status == 1) {
                                        $.post("/live/pass?ids=" + liveId, function (data) {
                                            if (data.errorCode == 0) {
                                                //location.href = history.back();
                                                self.location = document.referrer;
                                            } else {
                                                alert(data.errorMessage);
                                            }
                                        })
                                    } else {
                                        $.post("/live/refuse?ids=" + liveId, function (data) {
                                            if (data.errorCode == 0) {
                                                //location.href = history.back();
                                                self.location = document.referrer;
                                            } else {
                                                alert(data.errorMessage);
                                            }
                                        })
                                    }
                                }

                            </script>

                        </div>
                    </div>
                </div>
            </div>

        </section>
    </div>


    <footer th:replace="../templates/common/foot::foot"></footer>

    <div class="control-sidebar-bg" style="position: fixed; height: auto;"></div>

</div><!-- ./wrapper -->

<script type="text/javascript">
    $('div.alert').not('.alert-danger').delay(3000).slideUp(300);
</script>

<script src="../../static/js/app.min.js"></script>
<script src="../../static/js/sidebar.js"></script>


</body>
</html>