Commit 7805d66b by limin

新增登录页面

1 parent 2f080eb9
@import url(https://www.layuicdn.com/layui/css/layui.css);
\ No newline at end of file \ No newline at end of file
@import url(https://www.layuicdn.com/layui/css/layui.css);
html, body {
height: 100%;
}
#app {
display: flex;
flex-direction: column;
height: 100%;
background: #F7F7F7;
}
main {
height: 100%;
}
.wrap {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.wrap form {
width: 400px;
height: 419px;
background: #FFFFFF;
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
.wrap form .title {
height: 60px;
background: #F7F7F7;
display: flex;
justify-content: center;
align-items: center;
}
.wrap form .items {
padding-top: 40px;
}
.wrap form .items .layui-form-item {
margin-bottom: 25px;
}
.wrap form .items .layui-form-item .layui-input-inline {
width: 252px;
}
.wrap form .btn-login {
margin-left: 38px;
}
.wrap form .btn-login .layui-btn {
width: 324px;
height: 40px;
background: #1989FA;
border-radius: 4px;
margin-top: 25px;
}
\ No newline at end of file \ No newline at end of file
...@@ -11,10 +11,80 @@ html, body { ...@@ -11,10 +11,80 @@ html, body {
} }
header { header {
height: 60px; height: 48px;
flex-shrink: 0; flex-shrink: 0;
} }
.header {
height: 100%;
background: #fff;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
padding: 0 38px;
}
.header-nav {
display: flex;
align-items: center;
}
.header-nav .header-nav-item {
width: 90px;
height: 32px;
text-align: center;
line-height: 32px;
background-color: #F7F7F7;
font-size: 14px;
font-weight: 400;
color: #37383A;
border: 1px solid #F7F7F7;
}
.header-nav .header-nav-item a {
color: #37383A;
}
.header-nav .header-nav-item.active, .header-nav .header-nav-item:hover {
background-color: #fff;
}
.header-nav .header-nav-item.active a, .header-nav .header-nav-item:hover a {
color: #3D94FF;
}
.header-nav .header-nav-item:nth-child(1) {
border-radius: 4px 0 0 4px;
}
.header-nav .header-nav-item:nth-child(3) {
border-radius: 0 4px 4px 0;
}
.header-user {}
.header-user .layui-nav {
background-color: transparent;
}
.header-user .layui-nav .layui-nav-item {
line-height: 48px;
}
.header-user .layui-nav .layui-nav-item .layui-nav-child {
top: 48px;
left: 25px;
}
.header-user .layui-nav .layui-nav-item a {
color: #262626;
}
.header-user .layui-nav .layui-nav-item a i.layui-nav-more {
right: -20px;
color: #8C8C8C;
}
main { main {
flex: 1; flex: 1;
min-height: calc(100% - 60px - 30px); min-height: calc(100% - 60px - 30px);
......
...@@ -25,7 +25,8 @@ website: http://code.google.com/p/jquerytree/ ...@@ -25,7 +25,8 @@ website: http://code.google.com/p/jquerytree/
padding: 0; padding: 0;
margin: 0; margin: 0;
list-style: none; list-style: none;
line-height: 14px; /*limin line-height: 14px;*/
line-height: 28px;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
outline: 0 outline: 0
...@@ -41,12 +42,13 @@ website: http://code.google.com/p/jquerytree/ ...@@ -41,12 +42,13 @@ website: http://code.google.com/p/jquerytree/
} }
.ztree li a { .ztree li a {
padding: 1px 3px 0 0; /** padding: 1px 3px 0 0; limin**/
padding: 1px 3px 0 8px;
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
/** height: 17px; limin**/ /** height: 17px; limin**/
height: 17px; height: 17px;
color: #333; color: #262626;
background-color: transparent; background-color: transparent;
text-decoration: none; text-decoration: none;
vertical-align: top; vertical-align: top;
...@@ -58,20 +60,21 @@ website: http://code.google.com/p/jquerytree/ ...@@ -58,20 +60,21 @@ website: http://code.google.com/p/jquerytree/
} }
.ztree li a.curSelectedNode { .ztree li a.curSelectedNode {
padding-top: 0px; /* padding-top: 0px; */
background-color: #FFE6B0; /* background-color: #FFE6B0; */
color: black; color: #3D94FF;
height: 16px; /** height: 16px; limin**/
border: 1px #FFB951 solid; /* height: 28px; */
/* border: 1px #3D94FF solid; */
opacity: 0.8; opacity: 0.8;
} }
.ztree li a.curSelectedNode_Edit { .ztree li a.curSelectedNode_Edit {
padding-top: 0px; /* padding-top: 0px; */
background-color: #FFE6B0; /* background-color: #FFE6B0; */
color: black; color: #3D94FF;
height: 16px; /* height: 16px; */
border: 1px #FFB951 solid; /* border: 1px #3D94FF solid; */
opacity: 0.8; opacity: 0.8;
} }
......
<div class="header"> <div class="header-wrap">
<ul class="layui-nav layui-bg-cyan"> <div class="header">
<li class="layui-nav-item"> <div class="header-nav">
<a href="javascript:;">XXXX有限公司</a> <span class="header-nav-item"><a href="/html/merchant/index.html">商户管理</a></span>
<dl class="layui-nav-child"> <span class="header-nav-item"><a href="/html/employee/index.html">员工管理</a></span>
<dt></dt> <span class="header-nav-item"><a href="/html/role/index.html">角色管理</a></span>
<dd><a href="">退出登录</a></dd> </div>
<dd><a href="">退出登录</a></dd> <div class="header-user">
</dl> <ul class="layui-nav">
</li> <li class="layui-nav-item">
<li class="layui-nav-item"> <a href="">
<a href="/html/merchant/index.html">商户管理</a> <img src="//t.cn/RCzsdCq" class="layui-nav-img" />
</li> <span>XXXX有限公司</span>
<li class="layui-nav-item"> </a>
<a href="/html/employee/index.html">员工管理</a> <dl class="layui-nav-child">
</li> <dd><a href="javascript:;">修改信息</a></dd>
<li class="layui-nav-item"> <dd><a href="javascript:;">安全管理</a></dd>
<a href="/html/role/index.html">角色管理</a> <dd><a href="javascript:;">退了</a></dd>
</li> </dl>
</ul> </li>
</ul>
</div>
</div>
<div class="bread-crumb"></div>
</div> </div>
<script> <script>
layui.use('element', function () { layui.use('element', function () {
...@@ -28,10 +32,10 @@ ...@@ -28,10 +32,10 @@
function highlight($) { function highlight($) {
var _path = getPath()[0] var _path = getPath()[0]
var _href = '/html/' + _path var _href = '/html/' + _path
$('.layui-nav-item').each(function (i, e) { $('.header-nav-item').each(function (i, e) {
var _hr = $(e).find('a').attr('href') var _hr = $(e).find('a').attr('href')
if (_hr.startsWith(_href)) { if (_hr.startsWith(_href)) {
$(e).addClass('layui-this').siblings().removeClass('layui-this') $(e).addClass('active').siblings().removeClass('active')
return false return false
} }
}) })
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-07-19 16:37:36 * @Date: 2021-07-19 16:37:36
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2021-07-22 20:01:49 * @LastEditTime: 2021-07-23 14:02:28
* @FilePath: \account\js\gtree.js * @FilePath: \account\js\gtree.js
*/ */
layui.define(['ztree'], function (exports) { layui.define(['ztree'], function (exports) {
...@@ -24,7 +24,8 @@ layui.define(['ztree'], function (exports) { ...@@ -24,7 +24,8 @@ layui.define(['ztree'], function (exports) {
} }
var setting = { var setting = {
view: { view: {
selectedMulti: false selectedMulti: false,
showIcon: false
}, },
check: { check: {
enable: true, enable: true,
......
...@@ -7,31 +7,42 @@ ...@@ -7,31 +7,42 @@
<meta name="description" content="广联帐户管理中心-员工管理" /> <meta name="description" content="广联帐户管理中心-员工管理" />
<meta name="author" content="GLSX Web Team" /> <meta name="author" content="GLSX Web Team" />
<meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" /> <meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" />
<link rel="stylesheet" type="text/css" href="/css/main.css" /> <link rel="stylesheet" type="text/css" href="/css/login.css" />
<title>登录</title> <title>登录</title>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<main> <main>
<form class="layui-form" action=""> <div class="wrap">
<div class="layui-form-item"> <form class="layui-form" action="">
<label class="layui-form-label">用户名</label> <div class="title">登录</div>
<div class="layui-input-inline"> <div class="items">
<input type="text" name="userName" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" /> <div class="layui-form-item">
<label class="layui-form-label">帐户名:</label>
<div class="layui-input-inline">
<input type="text" name="userName" required lay-verify="required" placeholder="请输入帐户名" autocomplete="off" class="layui-input" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
<div class="layui-input-inline">
<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" />
</div>
</div>
<!-- <div class="layui-form-item">
<label class="layui-form-label">验证码:</label>
<div class="layui-input-inline">
<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" />
</div>
</div> -->
</div> </div>
</div> <div class="layui-form-item">
<div class="layui-form-item"> <div class="layui-input-block btn-login">
<label class="layui-form-label">密码</label> <button class="layui-btn layui-input-inline" lay-submit lay-filter="formLogin">登录</button>
<div class="layui-input-inline"> </div>
<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" />
</div> </div>
</div> </form>
<div class="layui-form-item"> </div>
<div class="layui-input-block">
<button class="layui-btn layui-input-inline" lay-submit lay-filter="formLogin">登录</button>
</div>
</div>
</form>
</main> </main>
</div> </div>
<script src="https://www.layuicdn.com/layui/layui.js"></script> <script src="https://www.layuicdn.com/layui/layui.js"></script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!