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 a0431127
authored
Jul 23, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
7805d66b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
13 deletions
css/layui.css
css/login.css
css/main.css
html/components/footer.html
html/components/header.html
js/gtree.js
js/load.js
css/layui.css
0 → 100644
View file @
a043112
/*-------------------------------------
layui 样式自定义
-------------------------------------*/
.layui-input
:focus
,
.layui-textarea
:focus
{
border-color
:
#1989FA
!important
;
}
\ No newline at end of file
\ No newline at end of file
css/login.css
View file @
a043112
@import
url(https://www.layuicdn.com/layui/css/layui.css)
;
@import
url(https://www.layuicdn.com/layui/css/layui.css)
;
@import
url('./layui.css')
;
html
,
body
{
html
,
body
{
height
:
100%
;
height
:
100%
;
}
}
...
...
css/main.css
View file @
a043112
@import
url(https://www.layuicdn.com/layui/css/layui.css)
;
@import
url(https://www.layuicdn.com/layui/css/layui.css)
;
@import
url('./ztree.css')
;
@import
url('./ztree.css')
;
@import
url('./layui.css')
;
html
,
body
{
html
,
body
{
height
:
100%
;
height
:
100%
;
}
}
...
@@ -94,10 +95,17 @@ main {
...
@@ -94,10 +95,17 @@ main {
footer
{
footer
{
height
:
30px
;
height
:
30px
;
background-color
:
red
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.footer
{
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
#37383A
;
}
.pr-parent-ul
{
.pr-parent-ul
{
display
:
flex
;
display
:
flex
;
}
}
...
...
html/components/footer.html
View file @
a043112
<div
class=
"footer"
>
<div
class=
"footer"
>
glsx
</div>
<div>
glsx
</div>
</div>
<script></script>
<script></script>
html/components/header.html
View file @
a043112
...
@@ -14,8 +14,7 @@
...
@@ -14,8 +14,7 @@
</a>
</a>
<dl
class=
"layui-nav-child"
>
<dl
class=
"layui-nav-child"
>
<dd><a
href=
"javascript:;"
>
修改信息
</a></dd>
<dd><a
href=
"javascript:;"
>
修改信息
</a></dd>
<dd><a
href=
"javascript:;"
>
安全管理
</a></dd>
<dd><a
href=
"javascript:;"
id=
"logout"
>
退了
</a></dd>
<dd><a
href=
"javascript:;"
>
退了
</a></dd>
</dl>
</dl>
</li>
</li>
</ul>
</ul>
...
@@ -24,12 +23,14 @@
...
@@ -24,12 +23,14 @@
<div
class=
"bread-crumb"
></div>
<div
class=
"bread-crumb"
></div>
</div>
</div>
<script>
<script>
layui
.
use
(
'element'
,
function
()
{
layui
.
use
([
'element'
,
'request'
],
function
()
{
highlight
(
layui
.
$
)
var
element
=
layui
.
element
var
element
=
layui
.
element
element
.
init
()
element
.
init
()
highlight
()
bindEvents
()
})
})
function
highlight
(
$
)
{
function
highlight
()
{
var
$
=
layui
.
$
var
_path
=
getPath
()[
0
]
var
_path
=
getPath
()[
0
]
var
_href
=
'/html/'
+
_path
var
_href
=
'/html/'
+
_path
$
(
'.header-nav-item'
).
each
(
function
(
i
,
e
)
{
$
(
'.header-nav-item'
).
each
(
function
(
i
,
e
)
{
...
@@ -41,6 +42,19 @@
...
@@ -41,6 +42,19 @@
})
})
}
}
function
bindEvents
()
{
$
=
layui
.
$
request
=
layui
.
request
$
(
'#logout'
).
click
(
function
()
{
var
sessionId
=
layui
.
store
.
get
(
'token'
)
request
({
sessionId
:
sessionId
,
method
:
'org.ore.api.example.logout'
},
function
(
result
)
{
layui
.
store
.
remove
(
'external'
)
layui
.
store
.
remove
(
'token'
)
goLogin
()
})
})
}
function
getPath
()
{
function
getPath
()
{
var
_href
=
location
.
href
.
split
(
'/'
)
var
_href
=
location
.
href
.
split
(
'/'
)
var
_path
=
_href
.
slice
(
_href
.
length
-
2
,
_href
.
length
)
var
_path
=
_href
.
slice
(
_href
.
length
-
2
,
_href
.
length
)
...
...
js/gtree.js
View file @
a043112
...
@@ -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-23 14:
02:28
* @LastEditTime: 2021-07-23 14:
49:25
* @FilePath: \account\js\gtree.js
* @FilePath: \account\js\gtree.js
*/
*/
layui
.
define
([
'ztree'
],
function
(
exports
)
{
layui
.
define
([
'ztree'
],
function
(
exports
)
{
...
@@ -17,8 +17,8 @@ layui.define(['ztree'], function (exports) {
...
@@ -17,8 +17,8 @@ layui.define(['ztree'], function (exports) {
if
(
!
$parentUl
.
hasClass
(
'pr-parent-ul'
))
{
if
(
!
$parentUl
.
hasClass
(
'pr-parent-ul'
))
{
$parentUl
.
addClass
(
'pr-parent-ul'
)
$parentUl
.
addClass
(
'pr-parent-ul'
)
var
$switchs
=
$parentUl
.
find
(
'li >span.switch'
)
var
$switchs
=
$parentUl
.
find
(
'li >span.switch'
)
$switchs
.
addClass
(
'op0
'
)
$switchs
.
eq
(
0
).
removeClass
(
'center_docu'
).
addClass
(
'bottom_docu
'
)
$switchs
.
eq
(
0
).
removeClass
(
'center_docu'
).
addClass
(
'bottom_docu op1
'
)
$switchs
.
not
(
':eq(0)'
).
addClass
(
'op0
'
)
}
}
}
}
}
}
...
...
js/load.js
View file @
a043112
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-07-15 15:46:53
* @Date: 2021-07-15 15:46:53
* @LastEditors: limin
* @LastEditors: limin
* @LastEditTime: 2021-07-2
2 18:08:1
4
* @LastEditTime: 2021-07-2
3 15:23:5
4
* @FilePath: \account\js\load.js
* @FilePath: \account\js\load.js
*/
*/
;(
function
load
()
{
;(
function
load
()
{
...
@@ -20,6 +20,9 @@ function go(module, page, params) {
...
@@ -20,6 +20,9 @@ function go(module, page, params) {
var
href
=
'/html/'
+
module
+
'/'
+
page
+
'.html'
var
href
=
'/html/'
+
module
+
'/'
+
page
+
'.html'
window
.
location
.
href
=
_p
?
href
+
'?'
+
_p
:
href
window
.
location
.
href
=
_p
?
href
+
'?'
+
_p
:
href
}
}
function
goLogin
()
{
window
.
location
.
href
=
'/login.html'
}
function
loadLayConfig
()
{
function
loadLayConfig
()
{
layui
.
config
({
layui
.
config
({
base
:
'/js/'
base
:
'/js/'
...
...
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