-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
121 lines (117 loc) · 4.57 KB
/
index.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./lay/css/layui.css">
<link rel="stylesheet" href="./lay/framework.css">
</head>
<body>
<header>
<span class="title">后台管理系统</span>
<div class="top-nav">
<ul class="layui-nav" lay-filter="nav">
<li class="layui-nav-item layui-this"><a href="javascript:;" data-index="0">菜单一</a></li>
<li class="layui-nav-item"><a href="javascript:;" data-index="1">菜单二</a></li>
<li class="layui-nav-item"><a href="javascript:;" data-index="2">菜单三</a></li>
<li class="layui-nav-item"><a href="javascript:;" data-index="3">菜单四</a></li>
<li class="layui-nav-item"><a href="javascript:;" data-index="4">菜单五</a></li>
</ul>
</div>
</header>
<div class="box">
<div class="left">
<div class="aside-btns">
<button class="layui-btn showFull"><i class="layui-icon"></i></button>
<button class="layui-btn"><i class="layui-icon"></i></button>
<button class="layui-btn"><i class="layui-icon"></i></button>
<button class="layui-btn"><i class="layui-icon"></i></button>
</div>
<ul class="layui-nav layui-nav-tree left-tree" lay-filter="aside">
<li class="layui-nav-item">
<a href="javascript:;">小菜单1.1</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" data-href="1.1.1.html">小菜单1.1.1</a></dd>
<dd><a href="javascript:;" data-href="1.1.2.html">小菜单1.1.2</a></dd>
</dl>
</li>
<li class="layui-nav-item"><a href="javascript:;" data-href="1.2.html">小菜单1.2</a></li>
<li class="layui-nav-item"><a href="javascript:;" data-href="1.3.html">小菜单1.3</a></li>
</ul>
</div>
<div class="con">
<div class="layui-tab" lay-allowClose="true" lay-filter="tab">
<ul class="layui-tab-title">
<li class="layui-this">
小菜单1.1.1
</li>
</ul>
<div class="layui-tab-content">
<!-- <div class="tabOperation">
<ul>
<li><a href="">关闭当前选项卡</a></li>
<li class="divider"></li>
<li><a href="">关闭其他选项卡</a></li>
<li><a href="">刷新当前选项卡</a></li>
</ul>
</div> -->
<div class="layui-tab-item layui-show">
<iframe src="html/1.1.1.html" name="小菜单1.1.1" index="0"></iframe>
</div>
</div>
</div>
</div>
</div>
<script src="./lay/layui.js"></script>
<script>
var json = [{
"name": "菜单一",
"children": [{
"name": "小菜单1.1",
"url": "",
children: [{
"name": "小菜单1.1.1",
"url": "1.1.1.html"
}, {
"name": "小菜单1.1.2",
"url": "1.1.2.html"
}]
}, {
"name": "小菜单1.2",
"url": "1.2.html"
}, {
"name": "小菜单1.3",
"url": "1.3.html"
}]
}, {
"name": "菜单二",
"children": [{
"name": "小菜单2.1",
"url": "",
children: [{
"name": "小菜单2.1.1",
"url": "2.1.1.html"
}, {
"name": "小菜单2.1.2",
"url": "2.1.2.html"
}]
}, {
"name": "小菜单2.2",
"url": "2.2.html"
}, {
"name": "小菜单2.3",
"url": "2.3.html"
}]
}, {
"name": "菜单三"
}, {
"name": "菜单四"
}, {
"name": "菜单五"
}];
</script>
<script src="./js/basis.js"></script>
</body>
</html>