Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
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
胡懿
warehouse
Commits
b9527d86
Commit
b9527d86
authored
Feb 21, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录页样式
parent
d8b7e90f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
107 deletions
+89
-107
login.css
src/main/webapp/static/common/css/login.css
+57
-0
logo.png
src/main/webapp/static/common/images/logo.png
+0
-0
sysLogin.jsp
src/main/webapp/webpage/modules/sys/login/sysLogin.jsp
+32
-107
No files found.
src/main/webapp/static/common/css/login.css
0 → 100644
View file @
b9527d86
.login-page
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
}
#loginForm
{
width
:
700px
;
height
:
485px
;
border-radius
:
10px
;
background
:
#fff
;
}
.title
{
font-family
:
"微软雅黑 Bold"
,
"微软雅黑 Regular"
,
微软雅黑
;
font-weight
:
700
;
font-style
:
normal
;
font-size
:
24px
;
color
:
rgb
(
51
,
153
,
255
);
}
.input-text
{
width
:
306px
;
height
:
54px
;
margin
:
auto
;
border-radius
:
4px
;
}
.form-group
{
margin-bottom
:
0
;
}
.login-page
.form-content
{
padding-bottom
:
8px
;
}
.progress-login
{
line-height
:
54px
;
}
.input-group-addon
{
border-radius
:
4px
;
border-right
:
0
;
background
:
transparent
;
color
:
#eee
;
font-size
:
22px
;
}
.input-group
{
width
:
306px
;
margin
:
auto
;
}
.input-group
.input-text
{
font-size
:
14px
;
}
.logo
{
width
:
140px
;
padding-top
:
24px
;
}
.login-page
.form-content
{
padding
:
5px
0
;
}
\ No newline at end of file
src/main/webapp/static/common/images/logo.png
0 → 100644
View file @
b9527d86
52.1 KB
src/main/webapp/webpage/modules/sys/login/sysLogin.jsp
View file @
b9527d86
<
%@
page
contentType=
"text/html;charset=UTF-8"
%
>
<
%@
include
file=
"/webpage/include/taglib.jsp"
%
>
<
%@
include
file=
"/webpage/include/taglib.jsp"
%
>
<!-- _login_page_ --><!--登录超时标记 勿删-->
<html>
<head>
<head>
<meta
name=
"decorator"
content=
"ani"
/>
<title>
${fns:getConfig('productName')} 登录
</title>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/common/css/login.css"
>
<script>
if
(
window
.
top
!==
window
.
self
)
{
window
.
top
.
location
=
window
.
location
;
}
</script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
"#loginForm"
).
validate
({
rules
:
{
validateCode
:
{
remote
:
"${pageContext.request.contextPath}/servlet/validateCodeServlet"
}
},
messages
:
{
username
:
{
required
:
"请填写用户名."
},
password
:
{
required
:
"请填写密码."
},
username
:
{
required
:
"请填写用户名."
},
password
:
{
required
:
"请填写密码."
},
validateCode
:
{
remote
:
"验证码不正确."
,
required
:
"请填写验证码."
}
},
errorLabelContainer
:
"#messageBox"
,
errorPlacement
:
function
(
error
,
element
)
{
errorPlacement
:
function
(
error
,
element
)
{
error
.
appendTo
(
$
(
"#loginError"
).
parent
());
}
});
});
// 如果在框架或在对话框中,则弹出提示并跳转到首页
if
(
self
.
frameElement
&&
self
.
frameElement
.
tagName
==
"IFRAME"
||
$
(
'#left'
).
length
>
0
)
{
if
(
self
.
frameElement
&&
self
.
frameElement
.
tagName
==
"IFRAME"
||
$
(
'#left'
).
length
>
0
)
{
alert
(
'未登录或登录超时。请重新登录,谢谢!'
);
top
.
location
=
"${ctx}"
;
}
</script>
</head>
</head>
<body>
<body>
<div
class=
"login-page"
>
<div
class=
"row"
>
<div
class=
"col-md-4 col-lg-4 col-md-offset-4 col-lg-offset-4"
>
<img
class=
"img-circle"
src=
"${ctxStatic}/common/images/flat-avatar.png"
class=
"user-avatar"
/>
<h1>
Jeeplus
</h1>
<div
class=
"login-page"
>
<sys:message
content=
"${message}"
showType=
"1"
/>
<form
id=
"loginForm"
role=
"form"
action=
"${ctx}/login"
method=
"post"
>
<div><img
class=
"logo"
src=
"${ctxStatic}/common/images/logo.png"
></div>
<div
class=
"title"
>
${fns:getConfig('productName')}
</div>
<div
class=
"form-content"
>
<div
class=
"form-group"
>
<input
type=
"text"
id=
"username"
name=
"username"
class=
"form-control input-underline input-lg required"
value=
"admin"
placeholder=
"用户名"
>
<input
type=
"text"
id=
"username"
name=
"username"
class=
"form-control input-text input-lg required"
value=
"admin"
placeholder=
"用户名"
>
</div>
<div
class=
"form-group"
>
<input
type=
"password"
id=
"password"
name=
"password"
value=
"admin"
class=
"form-control input-underline input-lg required"
placeholder=
"密码"
>
<input
type=
"password"
id=
"password"
name=
"password"
value=
"admin"
class=
"form-control input-text input-lg required"
placeholder=
"密码"
>
</div>
<c:if
test=
"${isValidateCodeLogin}"
>
<div
class=
"form-group text-muted"
>
<label
class=
"inline"
><font
color=
"white"
>
验证码:
</font></label>
<sys:validateCode
name=
"validateCode"
inputCssStyle=
"margin-bottom:5px;"
buttonCssStyle=
"color:white"
/>
<label
class=
"inline"
>
验证码:
</label>
<sys:validateCode
name=
"validateCode"
inputCssStyle=
"margin-bottom:5px;"
buttonCssStyle=
"color:white"
/>
</div>
</c:if>
<ul
class=
"pull-right btn btn-info btn-circle"
style=
"background-color:white;height:45px;width:46px"
>
<li
class=
"dropdown color-picker"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-expanded=
"false"
>
<span><i
class=
"fa fa-circle"
></i></span>
</a>
<ul
class=
"dropdown-menu pull-right animated fadeIn"
role=
"menu"
>
<li
class=
"padder-h-xs"
>
<table
class=
"table color-swatches-table text-center no-m-b"
>
<tr>
<td
class=
"text-center colorr"
>
<a
href=
"#"
data-theme=
"blue"
class=
"theme-picker"
>
<i
class=
"fa fa-circle blue-base"
></i>
</a>
</td>
<td
class=
"text-center colorr"
>
<a
href=
"#"
data-theme=
"green"
class=
"theme-picker"
>
<i
class=
"fa fa-circle green-base"
></i>
</a>
</td>
<td
class=
"text-center colorr"
>
<a
href=
"#"
data-theme=
"red"
class=
"theme-picker"
>
<i
class=
"fa fa-circle red-base"
></i>
</a>
</td>
</tr>
<tr>
<td
class=
"text-center colorr"
>
<a
href=
"#"
data-theme=
"purple"
class=
"theme-picker"
>
<i
class=
"fa fa-circle purple-base"
></i>
</a>
</td>
<td
class=
"text-center color"
>
<a
href=
"#"
data-theme=
"midnight-blue"
class=
"theme-picker"
>
<i
class=
"fa fa-circle midnight-blue-base"
></i>
</a>
</td>
<td
class=
"text-center colorr"
>
<a
href=
"#"
data-theme=
"lynch"
class=
"theme-picker"
>
<i
class=
"fa fa-circle lynch-base"
></i>
</a>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
<label
class=
"inline"
>
<input
type=
"checkbox"
id=
"rememberMe"
name=
"rememberMe"
${
rememberMe
?
'
checked
'
:
''}
class=
"ace"
/>
<span
class=
"lbl"
>
记住我
</span>
</label>
</div>
<input
type=
"submit"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
value=
"登录"
>
<input
type=
"submit"
class=
"btn btn-primary input-text btn-lg progress-login"
value=
"登录"
>
<a
href=
"${ctx}/sys/register"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
>
注册
</a>
</form>
</div>
</div>
</div>
</div>
<script>
<script>
$
(
function
()
{
$
(
'.theme-picker'
).
click
(
function
()
{
$
(
function
()
{
$
(
'.theme-picker'
).
click
(
function
()
{
changeTheme
(
$
(
this
).
attr
(
'data-theme'
));
});
});
});
function
changeTheme
(
theme
)
{
function
changeTheme
(
theme
)
{
$
(
'<link>'
)
.
appendTo
(
'head'
)
.
attr
({
type
:
'text/css'
,
rel
:
'stylesheet'
})
.
attr
(
'href'
,
'${ctxStatic}/common/css/app-'
+
theme
+
'.css'
);
.
attr
({
type
:
'text/css'
,
rel
:
'stylesheet'
})
.
attr
(
'href'
,
'${ctxStatic}/common/css/app-'
+
theme
+
'.css'
);
//$.get('api/change-theme?theme='+theme);
$
.
get
(
'${pageContext.request.contextPath}/theme/'
+
theme
+
'?url='
+
window
.
top
.
location
.
href
,
function
(
result
){
});
}
$
.
get
(
'${pageContext.request.contextPath}/theme/'
+
theme
+
'?url='
+
window
.
top
.
location
.
href
,
function
(
result
)
{
});
}
</script>
<style>
li
.color-picker
i
{
font-size
:
24px
;
line-height
:
30px
;
}
.red-base
{
color
:
#D24D57
;
}
.blue-base
{
color
:
#3CA2E0
;
}
.green-base
{
color
:
#27ae60
;
}
.purple-base
{
color
:
#957BBD
;
}
.midnight-blue-base
{
color
:
#2c3e50
;
}
.lynch-base
{
color
:
#6C7A89
;
}
</style>
</body>
</html>
\ No newline at end of file
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