67 lines
2.0 KiB
HTML
67 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<title>数据中心</title>
|
|
<link rel="stylesheet" href="/layui/css/layui.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="header"></div>
|
|
不想做了,鸽
|
|
</body>
|
|
<script src="/js/jquery-3.2.1.js"></script>
|
|
<script src="/js/CommonConfig.js"></script>
|
|
<script src="/js/httpUtils.js"></script>
|
|
<script src="/layui/layui.js"></script>
|
|
<script src="/js/lodash.min.js"></script>
|
|
<script src="/js/Chart.min.js"></script>
|
|
|
|
<script>
|
|
headerModel = 3;
|
|
var roomId = getParam('roomId');
|
|
$('#header').load("/html/header.html");
|
|
</script>
|
|
<script>
|
|
function init() {
|
|
if (!hasString(getParam('roomId'))) {
|
|
showAnchor();
|
|
return
|
|
}
|
|
initTabs()
|
|
initBarrageRenderer();
|
|
}
|
|
function showAnchor() {
|
|
|
|
layer.open({
|
|
type: 2, // page 层类型
|
|
area: ['320px', '400px'],
|
|
title: '选择主播',
|
|
shade: 0.6, // 遮罩透明度
|
|
shadeClose: false, // 点击遮罩区域,关闭弹层
|
|
maxmin: true, // 允许全屏最小化
|
|
anim: 1, // 0-6 的动画形式,-1 不开启
|
|
btn: ['确定', '取消'],
|
|
content: '/html/ui/selectAnchor.html',
|
|
yes: function (index, layero) {
|
|
var iframeWin = window[layero.find('iframe')[0]['name']];
|
|
var anchorRoomId = iframeWin.$('#anchorRoomId')[0].value;
|
|
if (!hasString(anchorRoomId)) {
|
|
layer.msg("请选择")
|
|
return
|
|
}
|
|
let url = new URL(window.location.href);
|
|
url.searchParams.set('roomId', anchorRoomId);
|
|
window.location.href = url.toString();
|
|
}
|
|
});
|
|
}
|
|
init();
|
|
</script>
|
|
<style>
|
|
|
|
</style>
|
|
|
|
</html> |