Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7805d66b
authored
Jul 23, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增登录页面
1 parent
2f080eb9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
207 additions
and
57 deletions
css/login.css
css/main.css
css/ztree.css
html/components/header.html
js/gtree.js
login.html
css/login.css
View file @
7805d66
@import
url(https://www.layuicdn.com/layui/css/layui.css)
;
\ 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
css/main.css
View file @
7805d66
...
...
@@ -11,10 +11,80 @@ html, body {
}
header
{
height
:
60
px
;
height
:
48
px
;
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
{
flex
:
1
;
min-height
:
calc
(
100%
-
60px
-
30px
);
...
...
css/ztree.css
View file @
7805d66
...
...
@@ -25,7 +25,8 @@ website: http://code.google.com/p/jquerytree/
padding
:
0
;
margin
:
0
;
list-style
:
none
;
line-height
:
14px
;
/*limin line-height: 14px;*/
line-height
:
28px
;
text-align
:
left
;
white-space
:
nowrap
;
outline
:
0
...
...
@@ -41,12 +42,13 @@ website: http://code.google.com/p/jquerytree/
}
.ztree
li
a
{
padding
:
1px
3px
0
0
;
/** padding: 1px 3px 0 0; limin**/
padding
:
1px
3px
0
8px
;
margin
:
0
;
cursor
:
pointer
;
/** height: 17px; limin**/
height
:
17px
;
color
:
#
333
;
color
:
#
262626
;
background-color
:
transparent
;
text-decoration
:
none
;
vertical-align
:
top
;
...
...
@@ -58,20 +60,21 @@ website: http://code.google.com/p/jquerytree/
}
.ztree
li
a
.curSelectedNode
{
padding-top
:
0px
;
background-color
:
#FFE6B0
;
color
:
black
;
height
:
16px
;
border
:
1px
#FFB951
solid
;
/* padding-top: 0px; */
/* background-color: #FFE6B0; */
color
:
#3D94FF
;
/** height: 16px; limin**/
/* height: 28px; */
/* border: 1px #3D94FF solid; */
opacity
:
0.8
;
}
.ztree
li
a
.curSelectedNode_Edit
{
padding-top
:
0px
;
background-color
:
#FFE6B0
;
color
:
black
;
height
:
16px
;
border
:
1px
#FFB951
solid
;
/* padding-top: 0px; */
/* background-color: #FFE6B0; */
color
:
#3D94FF
;
/* height: 16px; */
/* border: 1px #3D94FF solid; */
opacity
:
0.8
;
}
...
...
html/components/header.html
View file @
7805d66
<div
class=
"header"
>
<ul
class=
"layui-nav layui-bg-cyan"
>
<li
class=
"layui-nav-item"
>
<a
href=
"javascript:;"
>
XXXX有限公司
</a>
<dl
class=
"layui-nav-child"
>
<dt></dt>
<dd><a
href=
""
>
退出登录
</a></dd>
<dd><a
href=
""
>
退出登录
</a></dd>
</dl>
</li>
<li
class=
"layui-nav-item"
>
<a
href=
"/html/merchant/index.html"
>
商户管理
</a>
</li>
<li
class=
"layui-nav-item"
>
<a
href=
"/html/employee/index.html"
>
员工管理
</a>
</li>
<li
class=
"layui-nav-item"
>
<a
href=
"/html/role/index.html"
>
角色管理
</a>
</li>
</ul>
<div
class=
"header-wrap"
>
<div
class=
"header"
>
<div
class=
"header-nav"
>
<span
class=
"header-nav-item"
><a
href=
"/html/merchant/index.html"
>
商户管理
</a></span>
<span
class=
"header-nav-item"
><a
href=
"/html/employee/index.html"
>
员工管理
</a></span>
<span
class=
"header-nav-item"
><a
href=
"/html/role/index.html"
>
角色管理
</a></span>
</div>
<div
class=
"header-user"
>
<ul
class=
"layui-nav"
>
<li
class=
"layui-nav-item"
>
<a
href=
""
>
<img
src=
"//t.cn/RCzsdCq"
class=
"layui-nav-img"
/>
<span>
XXXX有限公司
</span>
</a>
<dl
class=
"layui-nav-child"
>
<dd><a
href=
"javascript:;"
>
修改信息
</a></dd>
<dd><a
href=
"javascript:;"
>
安全管理
</a></dd>
<dd><a
href=
"javascript:;"
>
退了
</a></dd>
</dl>
</li>
</ul>
</div>
</div>
<div
class=
"bread-crumb"
></div>
</div>
<script>
layui
.
use
(
'element'
,
function
()
{
...
...
@@ -28,10 +32,10 @@
function
highlight
(
$
)
{
var
_path
=
getPath
()[
0
]
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'
)
if
(
_hr
.
startsWith
(
_href
))
{
$
(
e
).
addClass
(
'
layui-this'
).
siblings
().
removeClass
(
'layui-this
'
)
$
(
e
).
addClass
(
'
active'
).
siblings
().
removeClass
(
'active
'
)
return
false
}
})
...
...
js/gtree.js
View file @
7805d66
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-07-19 16:37:36
* @LastEditors: limin
* @LastEditTime: 2021-07-2
2 20:01:49
* @LastEditTime: 2021-07-2
3 14:02:28
* @FilePath: \account\js\gtree.js
*/
layui
.
define
([
'ztree'
],
function
(
exports
)
{
...
...
@@ -24,7 +24,8 @@ layui.define(['ztree'], function (exports) {
}
var
setting
=
{
view
:
{
selectedMulti
:
false
selectedMulti
:
false
,
showIcon
:
false
},
check
:
{
enable
:
true
,
...
...
login.html
View file @
7805d66
...
...
@@ -7,31 +7,42 @@
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/
ma
in.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/
log
in.css"
/>
<title>
登录
</title>
</head>
<body>
<div
id=
"app"
>
<main>
<form
class=
"layui-form"
action=
""
>
<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
class=
"wrap"
>
<form
class=
"layui-form"
action=
""
>
<div
class=
"title"
>
登录
</div>
<div
class=
"items"
>
<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"
>
密
码:
</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
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
class=
"layui-form-item"
>
<div
class=
"layui-input-block btn-login"
>
<button
class=
"layui-btn layui-input-inline"
lay-submit
lay-filter=
"formLogin"
>
登录
</button>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"layui-btn layui-input-inline"
lay-submit
lay-filter=
"formLogin"
>
登录
</button>
</div>
</div>
</form>
</form>
</div>
</main>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment