Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36508c0c
authored
Dec 25, 2017
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
登陆注销交互优化
parent
2984ac5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
xxl-job-admin/src/main/webapp/static/js/common.1.js
xxl-job-admin/src/main/webapp/static/js/login.1.js
xxl-job-admin/src/main/webapp/static/js/common.1.js
View file @
36508c0c
...
@@ -7,14 +7,18 @@ $(function(){
...
@@ -7,14 +7,18 @@ $(function(){
$
.
post
(
base_url
+
"/logout"
,
function
(
data
,
status
)
{
$
.
post
(
base_url
+
"/logout"
,
function
(
data
,
status
)
{
if
(
data
.
code
==
"200"
)
{
if
(
data
.
code
==
"200"
)
{
layer
.
open
({
layer
.
msg
(
'注销成功'
);
setTimeout
(
function
(){
window
.
location
.
href
=
base_url
+
"/"
;
},
500
);
/*layer.open({
title: '系统提示',
title: '系统提示',
content: '注销成功',
content: '注销成功',
icon: '1',
icon: '1',
end: function(layero, index){
end: function(layero, index){
window.location.href = base_url + "/";
window.location.href = base_url + "/";
}
}
});
});
*/
}
else
{
}
else
{
layer
.
open
({
layer
.
open
({
title
:
'系统提示'
,
title
:
'系统提示'
,
...
...
xxl-job-admin/src/main/webapp/static/js/login.1.js
View file @
36508c0c
...
@@ -48,14 +48,18 @@ $(function(){
...
@@ -48,14 +48,18 @@ $(function(){
submitHandler
:
function
(
form
)
{
submitHandler
:
function
(
form
)
{
$
.
post
(
base_url
+
"/login"
,
$
(
"#loginForm"
).
serialize
(),
function
(
data
,
status
)
{
$
.
post
(
base_url
+
"/login"
,
$
(
"#loginForm"
).
serialize
(),
function
(
data
,
status
)
{
if
(
data
.
code
==
"200"
)
{
if
(
data
.
code
==
"200"
)
{
layer
.
open
({
layer
.
msg
(
'登录成功'
);
setTimeout
(
function
(){
window
.
location
.
href
=
base_url
;
},
500
);
/*layer.open({
title: '系统提示',
title: '系统提示',
content: '登录成功',
content: '登录成功',
icon: '1',
icon: '1',
end: function(layero, index){
end: function(layero, index){
window.location.href = base_url;
window.location.href = base_url;
}
}
});
});
*/
}
else
{
}
else
{
layer
.
open
({
layer
.
open
({
title
:
'系统提示'
,
title
:
'系统提示'
,
...
...
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