This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
index2.html
95 lines (91 loc) · 4.21 KB
/
index2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LAU后台模板</title>
<link rel="stylesheet" href="/static/layui/css/layui.css">
<link rel="stylesheet" href="/static/lau/lau.css">
<script>(window.top === window.self) || (window.top.location.href = window.self.location.href);</script>
</head>
<body class="layui-layout-body layui-unselect">
<div class="layui-layout layui-layout-admin">
<!--顶部导航开始-->
<div class="layui-header">
<a class="lau-logo-mini"><i class="layui-icon layui-icon-release"></i></a>
<a class="layui-logo">L A U</a>
<ul class="layui-nav layui-layout-left">
<li class="layui-nav-item" lay-unselect><a lau-event="sideMenu0">默认菜单</a></li>
<li class="layui-nav-item" lay-unselect><a lau-event="sideMenu1">切换菜单</a></li>
<li class="layui-nav-item" lay-unselect>
<a>站点推荐</a>
<dl class="layui-nav-child">
<dd><a href="http://ylui.yuri2.cn/" target="_blank">YLUI(WIN10UI)</a></dd>
<dd><a href="http://www.bycodes.net/" target="_blank">码外社区(你想看的都有)</a></dd>
<dd><a href="http://lovefc.cn/" target="_blank">女装大佬(lovefc)</a></dd>
<dd><a href="http://blog.he110.info/" target="_blank">校园吸血鬼(He110)</a></dd>
<dd><a href="http://yuri2.cn/blog/" target="_blank">尤里2号(赞助商)</a></dd>
</dl>
</li>
</ul>
<ul class="layui-nav layui-layout-right">
<li class="layui-nav-item" lay-unselect>
<a href="javascript:;"><img src="http://t.cn/RCzsdCq" class="layui-nav-img"> 小黑屋</a>
<dl class="layui-nav-child">
<dd><a>基本资料</a></dd>
<dd><a>安全设置</a></dd>
<dd><a href="/html/login.html">安全退出</a></dd>
</dl>
</li>
<li class="layui-nav-item" lay-unselect><a lau-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a></li>
</ul>
</div>
<!--顶部导航结束-->
<!--侧边菜单开始-->
<div class="layui-side" data-href="/json/menu.json">
<div class="lau-side-fold"><i class="layui-icon layui-icon-shrink-right"></i></div>
<div class="layui-side-scroll">
<ul class="layui-nav layui-nav-tree">
<!--这里可以写菜单结构,也可以放空,使用异步加载-->
</ul>
</div>
</div>
<!--侧边菜单结束-->
<!--内容主体区域开始-->
<div class="layui-body" data-type="single" data-title="控制台" data-icon="layui-icon-home" data-href="/html/console.html"></div>
<!--内容主体区域结束-->
</div>
</body>
<script src="/static/layui/layui.js"></script>
<script>
layui.config({base: '/static/'}).extend({lau: 'lau/lau'}).use(['lau'], function () {
var lau = layui.lau,
layer = layui.layer,
$ = layui.$;
//监听事件,这个不一定要用lau-event,可以自己写
$(document).on('click', '[lau-event]', function () {
var _this = $(this);
switch (_this.attr('lau-event')) {
case 'about':
$.get('/html/about.html', function (html) {
lau.drawer({content: html});
});
break;
case 'download':
layer.confirm('下载的源码仅供学习使用,如需用于正式项目,请购买授权!', function (index) {
window.open('https://github.com/carolkey/lying-admin/');
layer.close(index);
});
break;
case "sideMenu0":
lau.sideMenuChange(0);
break;
case "sideMenu1":
lau.sideMenuChange(1);
break;
}
});
});
</script>
</html>