2024-10-29 18:29:56 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh-CN">
|
2024-11-28 17:54:26 +08:00
|
|
|
|
2024-10-29 18:29:56 +08:00
|
|
|
<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>
|
2024-11-21 18:29:19 +08:00
|
|
|
不想做了,鸽
|
2024-10-29 18:29:56 +08:00
|
|
|
</body>
|
|
|
|
<script src="/js/jquery-3.2.1.js"></script>
|
|
|
|
<script src="/js/CommonConfig.js"></script>
|
2024-11-28 17:54:26 +08:00
|
|
|
<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>
|
|
|
|
|
2024-10-29 18:29:56 +08:00
|
|
|
<script>
|
2024-11-28 17:54:26 +08:00
|
|
|
headerModel = 3;
|
|
|
|
var roomId = getParam('roomId');
|
2024-10-29 18:29:56 +08:00
|
|
|
$('#header').load("/html/header.html");
|
|
|
|
</script>
|
2024-11-28 17:54:26 +08:00
|
|
|
<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>
|
2024-10-29 18:29:56 +08:00
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|
2024-11-28 17:54:26 +08:00
|
|
|
|
2024-10-29 18:29:56 +08:00
|
|
|
</html>
|