biliob/Web/html/header.html

28 lines
1.3 KiB
HTML
Raw Normal View History

2024-10-29 18:29:56 +08:00
<body>
<ul class="layui-nav">
<li class="layui-nav-item index"><a href="/index.html">监控大厅</a></li>
2024-11-01 00:15:12 +08:00
<li class="layui-nav-item live"><a href="/html/body/live.html">直播管理</a></li>
2024-10-29 18:29:56 +08:00
<li class="layui-nav-item video"><a href="/html/body/video.html">视频管理</a></li>
<li class="layui-nav-item data" ><a href="/html/body/data.html">数据中心</a></li>
<li class="layui-nav-item user"><a href="/html/body/user.html">用户中心</a></li>
<li class="layui-nav-item config layui-layout-right"> <a href="/html/body/config.html"><i class="layui-icon layui-icon-set-fill" style="font-size: 20px; margin-right: 10px;"></i>系统设置</a></li>
2024-10-29 18:29:56 +08:00
</ul>
</body>
2024-11-01 18:21:57 +08:00
<!-- <script src="/layui/layui.js"></script> -->
2024-10-29 18:29:56 +08:00
<script>
$(".index").removeClass("layui-this")
2024-11-01 00:15:12 +08:00
$(".live").removeClass("layui-this")
2024-10-29 18:29:56 +08:00
$(".video").removeClass("layui-this")
$(".data").removeClass("layui-this")
$(".user").removeClass("layui-this")
$(".config").removeClass("layui-this")
2024-10-29 18:29:56 +08:00
switch(headerModel){
case 0:$(".index").addClass('layui-this');break;
2024-11-01 00:15:12 +08:00
case 1:$(".live").addClass('layui-this');break;
case 2:$(".video").addClass('layui-this');break;
case 3:$(".data").addClass('layui-this');break;
case 4:$(".user").addClass('layui-this');break;
case 5:$(".config").addClass('layui-this');break;
2024-10-29 18:29:56 +08:00
}
</script>