22 lines
853 B
HTML
22 lines
853 B
HTML
|
<body>
|
||
|
<ul class="layui-nav">
|
||
|
<li class="layui-nav-item index"><a href="/index.html">监控大厅</a></li>
|
||
|
<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>
|
||
|
</ul>
|
||
|
</body>
|
||
|
<script src="/layui/layui.js"></script>
|
||
|
|
||
|
<script>
|
||
|
$(".index").removeClass("layui-this")
|
||
|
$(".video").removeClass("layui-this")
|
||
|
$(".data").removeClass("layui-this")
|
||
|
$(".user").removeClass("layui-this")
|
||
|
switch(headerModel){
|
||
|
case 0:$(".index").addClass('layui-this');break;
|
||
|
case 1:$(".video").addClass('layui-this');break;
|
||
|
case 2:$(".data").addClass('layui-this');break;
|
||
|
case 3:$(".user").addClass('layui-this');break;
|
||
|
}
|
||
|
</script>
|