Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
syzy_se
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
syzy_se
Commits
503898b8
Commit
503898b8
authored
Apr 17, 2023
by
yangbenyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单样式大小等调试
parent
0d1b178f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
125 additions
and
40 deletions
+125
-40
index.css
src/main/resources/static/css/index.css
+55
-26
login.css
src/main/resources/static/css/login.css
+14
-1
logo.jpg
src/main/resources/static/images/logo.jpg
+0
-0
index.html
src/main/resources/templates/index.html
+43
-8
login.html
src/main/resources/templates/login.html
+13
-5
No files found.
src/main/resources/static/css/index.css
View file @
503898b8
...
...
@@ -7,6 +7,7 @@ body{
margin-top
:
0px
;
margin-right
:
0px
;
margin-bottom
:
0px
;
font-size
:
14px
;
}
a
{
text-decoration
:
none
;}
...
...
@@ -31,13 +32,13 @@ ul,li{
.index-top
{
position
:
relative
;
height
:
5
0px
;
height
:
7
0px
;
}
.index-ex
{
margin-right
:
20px
;
float
:
right
;
font-family
:
"微软雅黑"
,
Arial
;
font-size
:
1
2
px
;
font-size
:
1
4
px
;
color
:
#FFF
;
margin-top
:
10px
;
}
...
...
@@ -48,27 +49,43 @@ ul,li{
.index-logo
{
float
:
left
;
}
.index-logo
a
{
position
:
relative
;
display
:
block
;}
.index-logo
a
:before
{
display
:
block
;
content
:
""
;
width
:
100%
;
height
:
100%
;}
#userSetup
.layui-nav-more
{
display
:
none
;
}
.tabTopMenu
{
position
:
relative
;
text-decoration
:
none
;
background-color
:
#3F94F2
;
height
:
5
0px
;
height
:
7
0px
;
overflow
:
hidden
;
margin-right
:
55px
;
padding-left
:
10px
;
}
.btnleft
,
.btnright
{
position
:
absolute
;
top
:
12px
;
}
.btnleft
{
left
:
10px
;
}
.btnright
{
right
:
10px
;}
.btnleft
.layui-btn
,
.btnright
.layui-btn
{
background
:
transparent
;}
.btnleft
.layui-btn
:hover
,
.btnright
.layui-btn
:hover
{
background-color
:
#1E9FFF
;
}
.tabTopMenuLi
{
position
:
relative
;
font-family
:
"微软雅黑"
,
Arial
;
font-size
:
16px
;
color
:
#FFF
;
line-height
:
5
0px
;
height
:
5
0px
;
line-height
:
7
0px
;
height
:
7
0px
;
min-width
:
100px
;
padding
:
0
15px
;
text-align
:
center
;
float
:
left
;
display
:
inline-block
;
cursor
:
pointer
;
box-sizing
:
border-box
;
}
...
...
@@ -84,7 +101,7 @@ ul,li{
width
:
120%
;
height
:
100%
;
background-image
:
url(../images/tabActive.jpg)
;
background-size
:
105%
42
px
;
background-size
:
105%
64
px
;
color
:
#f0d268
;
background-repeat
:
no-repeat
;
background-position
:
center
;
...
...
@@ -96,11 +113,23 @@ ul,li{
color
:
#fff
;
text-decoration
:
none
;
font-family
:
"微软雅黑"
,
Arial
;
font-size
:
14px
;
font-size
:
20px
;
}
.tabTopCenter
{
position
:
absolute
;
right
:
95px
;
left
:
95px
;
height
:
100%
;
overflow
:
hidden
;
}
.tabScroll
{
position
:
absolute
;
left
:
0px
;
white-space
:
nowrap
;
}
.layui-nav
.layui-nav-item
{
line-height
:
5
0px
;
line-height
:
7
0px
;
}
.cen
:after
{
...
...
@@ -111,11 +140,11 @@ ul,li{
}
.cen
{
position
:
relative
;
padding-top
:
1px
;
top
:
1px
;
background
:
url(../images/mainBg.jpg)
no-repeat
right
bottom
/
100%
auto
;
height
:
-webkit-calc
(
100vh
-
5
0px
);
height
:
-moz-calc
(
100vh
-
5
0px
);
height
:
calc
(
100vh
-
5
0px
);
height
:
-webkit-calc
(
100vh
-
7
0px
);
height
:
-moz-calc
(
100vh
-
7
0px
);
height
:
calc
(
100vh
-
7
0px
);
box-sizing
:
border-box
;
}
.cen_zhuce
{
...
...
@@ -131,9 +160,9 @@ ul,li{
height
:
100%
;
box-sizing
:
border-box
;
overflow
:
hidden
;
min-height
:
-webkit-calc
(
100vh
-
5
7px
);
min-height
:
-moz-calc
(
100vh
-
5
7px
);
min-height
:
calc
(
100vh
-
5
7px
);
min-height
:
-webkit-calc
(
100vh
-
7
7px
);
min-height
:
-moz-calc
(
100vh
-
7
7px
);
min-height
:
calc
(
100vh
-
7
7px
);
background
:
url(../images/menuBtm.jpg)
no-repeat
center
bottom
,
linear-gradient
(
#3F93F2
0%
,
#398AE5
60%
)
;
background-size
:
100%
auto
;
}
...
...
@@ -153,15 +182,14 @@ ul,li{
.menu-content
{
padding-top
:
10px
;
height
:
calc
(
100vh
-
6
6px
);
height
:
calc
(
100vh
-
7
6px
);
overflow
:
hidden
;
}
.menu-left-left
{
width
:
212
px
;
width
:
195
px
;
overflow-y
:
auto
;
box-sizing
:
border-box
;
height
:
100%
;
padding-right
:
17px
;
}
.menu-left-left
li
{
...
...
@@ -169,10 +197,11 @@ ul,li{
font-size
:
16px
;
line-height
:
50px
;
color
:
#ba7f5a
;
padding-left
:
50px
;
text-align
:
center
;
}
.menu-left-left
li
a
{
color
:
#fff
;
}
.menu-left-left
li
.lay-active
{
background
:
url(../images/menuBg.jpg)
no-repeat
center
;
...
...
@@ -190,13 +219,13 @@ ul,li{
width
:
-webkit-calc
(
100%
-
220px
);
width
:
-moz-calc
(
100%
-
220px
);
width
:
calc
(
100%
-
220px
);
height
:
-webkit-calc
(
100vh
-
6
0px
);
height
:
-moz-calc
(
100vh
-
6
0px
);
height
:
calc
(
100vh
-
6
0px
);
height
:
-webkit-calc
(
100vh
-
8
0px
);
height
:
-moz-calc
(
100vh
-
8
0px
);
height
:
calc
(
100vh
-
8
0px
);
}
.main
.layui-tab-item
,
.main
.iframes
{
height
:
calc
(
100vh
-
6
0px
);
height
:
calc
(
100vh
-
8
0px
);
width
:
100%
;
border
:
0
none
;
}
...
...
src/main/resources/static/css/login.css
View file @
503898b8
...
...
@@ -18,6 +18,8 @@
}
.subbtn-group
{
position
:
relative
;
z-index
:
2
;
width
:
320px
;
display
:
flex
;
justify-content
:
center
;
...
...
@@ -27,7 +29,6 @@
.button_login
{
display
:
inline-block
;
margin
:
0
;
color
:
#fff
;
border-radius
:
8px
;
border-top-color
:
#915d3b
;
border-right-color
:
#915d3b
;
...
...
@@ -40,10 +41,22 @@
font-size
:
18px
;
color
:
#ACB4C1
;
}
#loginbox
.submitBtn
{
position
:
absolute
;
left
:
0px
;
top
:
0px
;
z-index
:
-1
;
border-radius
:
8px
;
width
:
50%
;
height
:
40px
;
color
:
#fff
;
line-height
:
40px
;
text-align
:
center
;
font-size
:
18px
;
box-shadow
:
0
0
10px
1px
#3383df
;
background
:
linear-gradient
(
#499AF6
,
#3383DF
);
transition
:
1s
all
;
}
#loginbox
{
...
...
src/main/resources/static/images/logo.jpg
View replaced file @
0d1b178f
View file @
503898b8
13.6 KB
|
W:
|
H:
18.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/main/resources/templates/index.html
View file @
503898b8
...
...
@@ -5,17 +5,21 @@
var menusJson = @objectMapper.writeValueAsString(menus);
-->
<form
class=
"layui-form layui-form-pane"
>
<div
class=
"layui-header"
style=
"height:
5
0px;"
>
<div
class=
"layui-header"
style=
"height:
7
0px;"
>
<!-- 顶部banner -->
<!-- <p><font size="50px" color="green">各位老师好:本系统将在19:00分更新维护,届时将不能访问系统,</font></p> -->
<div
class=
"index-top layui-clear"
>
<div
class=
"index-logo"
>
<a
href=
""
><img
height=
"
5
0px"
src=
"${ctxPath}/images/logo.jpg"
/></a>
<a
href=
""
><img
height=
"
7
0px"
src=
"${ctxPath}/images/logo.jpg"
/></a>
</div>
<div
class=
"tabTopMenu"
>
<div
class=
"tabTopMenuLi"
style=
"display: none"
>
<div
class=
"tabTopMenu"
id=
"tabTopMenu"
>
<div
class=
"btnleft"
><button
class=
"layui-btn layui-btn-lg layui-btn-normal"
type=
"button"
><i
class=
"layui-icon layui-icon-prev"
></i></button></div>
<div
class=
"btnright"
><button
class=
"layui-btn layui-btn-lg layui-btn-normal"
type=
"button"
><i
class=
"layui-icon layui-icon-next"
></i></button></div>
<div
class=
"tabTopCenter"
>
<div
class=
"tabScroll"
id=
"tabScroll"
>
<!-- <div class="tabTopMenuLi" style="display: none">
<a href="javascript:;">首页</a>
</div
>
</div> --
>
<!--#for(node in menus.children[0].children ){ -->
<!--#if(node.data.name!="成果转化" && node.data.name!="通知信息"){ -->
<div
class=
"tabTopMenuLi"
>
...
...
@@ -24,12 +28,13 @@
<!--#} -->
<!--#} -->
</div>
</div>
</div>
<div
class=
"index-ex"
>
<ul
class=
"layui-nav layui-layout-right"
>
<input
type=
"hidden"
id=
"userId"
value=
"${session["
core:user
"].
id
}"
/>
<input
type=
"hidden"
id=
"userPasswordMd5"
value=
"${session["
core:user
"].
password
}"
/>
<li
class=
"layui-nav-item layui-hide-xs"
><a
id=
"userSetup"
herf=
"javascript:;"
style=
"font-size:2
0
px;"
class=
"layui-icon layui-icon-friends"
></a>
<li
class=
"layui-nav-item layui-hide-xs"
><a
id=
"userSetup"
herf=
"javascript:;"
style=
"font-size:2
6
px;"
class=
"layui-icon layui-icon-friends"
></a>
<dl
class=
"layui-nav-child"
style=
"left: -40px;"
>
<dd><a
id=
"changeCompanyButton"
href=
"javascript:;"
>
角色切换
</a></dd>
<dd><a
class=
"user-modify-password"
style=
"cursor: pointer;"
>
修改密码
</a></dd>
...
...
@@ -109,9 +114,38 @@ layui.use(['table','layer','form','element'],function(){
var
listmenu
=
menus
.
children
[
0
].
children
;
var
roleId
=
"${roleId!}"
;
var
navtop
=
navScroll
=
0
;
$
(
".btnleft , .btnright"
).
click
(
function
(){
navScroll
=
$
(
".tabTopCenter"
).
width
()
-
$
(
".tabScroll"
).
width
();
if
(
$
(
this
).
hasClass
(
"btnleft"
)){
navtop
+=
200
;
$
(
".tabScroll"
).
animate
({
"left"
:
navtop
+
'px'
},
500
,
function
(){
if
(
navtop
>=
0
){
navtop
=
0
;
$
(
this
).
animate
({
"left"
:
navtop
+
'px'
})
}
})
}
else
{
navtop
-=
200
;
$
(
".tabScroll"
).
animate
({
"left"
:
navtop
+
'px'
},
500
)
if
(
navtop
<
navScroll
){
navtop
=
navScroll
;
$
(
".tabScroll"
).
animate
({
"left"
:
navtop
+
'px'
})
}
}
});
$
(
'.tabTopMenuLi'
).
click
(
function
(){
$
(
this
).
addClass
(
'active'
).
siblings
(
'.active'
).
removeClass
(
'active'
);
//$('.menu-left-top').text($(this).text());
if
(
$
(
this
).
index
()
==
0
){
if
(
roleId
==
1
){
$
(
'.menu-left-left'
).
html
(
$
([
'<li><a href="JavaScript:;" lay-href="/notifi/notification/index.do?flag=1">发布信息</a></li>'
,
...
...
@@ -134,6 +168,7 @@ layui.use(['table','layer','form','element'],function(){
})
});
}
return
false
;
});
function
getDate
(){
...
...
src/main/resources/templates/login.html
View file @
503898b8
...
...
@@ -98,7 +98,7 @@
<!--小键盘承载器-->
<div
class=
"banner-cen"
style=
"padding-top:30px;"
>
<!-- 登录 -->
<div
id=
"loginbox"
>
<div
id=
"loginbox"
>
<div
class=
"logo"
><img
height=
"60px"
src=
"images/login/login1_03.png"
></div>
<div
class=
"centerSesion"
>
<form
onsubmit=
"return false;"
class=
"layui-form"
name=
"loginForm"
id=
"loginForm"
>
...
...
@@ -121,8 +121,9 @@
<div
class=
"layui-row"
>
<div
align=
"center"
>
<div
class=
"subbtn-group"
>
<a
href=
"javascript:;"
id=
"loginRegister"
class=
"button_login"
>
点击注册
</a>
<a
onclick=
"severCheck();"
href=
"javascript:;"
class=
"button_login submitBtn"
id=
"to-recover"
>
登
录
</a>
<a
href=
"javascript:;"
id=
"loginRegister"
style=
"color: #fff;"
class=
"button_login"
>
点击注册
</a>
<a
onclick=
"severCheck();"
href=
"javascript:;"
class=
"button_login"
id=
"to-recover"
>
登
录
</a>
<span
class=
"submitBtn"
></span>
</div>
<label
style=
"width:350px;margin: 10px;display:block;text-align:right; "
><a
href=
"javascript:;"
id=
"loginPasswords"
style=
"font-size:16px;color:#fff; "
>
忘记密码?
</a></label>
...
...
@@ -133,7 +134,7 @@
<input
type=
"hidden"
ID=
"ContainerName"
name=
"ContainerName"
>
<input
type=
"hidden"
ID=
"strRandom"
name=
"strRandom"
>
<input
type=
"hidden"
ID=
"loginType"
name=
"loginType"
value=
"0"
>
</form>
</form>
</div>
</div>
...
...
@@ -159,7 +160,14 @@
})
$
(
".button_login"
).
hover
(
function
(){
$
(
this
).
addClass
(
"submitBtn"
).
siblings
().
removeClass
(
"submitBtn"
)
if
(
$
(
this
).
index
()){
$
(
".submitBtn"
).
css
({
left
:
"50%"
})
$
(
this
).
css
(
"color"
,
"#fff"
).
siblings
().
css
(
"color"
,
"#ACB4C1"
);
}
else
{
$
(
".submitBtn"
).
css
({
left
:
"0%"
})
$
(
this
).
css
(
"color"
,
"#fff"
).
siblings
().
css
(
"color"
,
"#ACB4C1"
);
}
//$(this).addClass("submitBtn").siblings().removeClass("submitBtn")
})
//注册点击事件
$
(
"#loginPasswords"
).
click
(
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment