Browse Source

登陆注销交互优化

xuxueli 8 years ago
parent
commit
36508c0c3c

+ 6 - 2
xxl-job-admin/src/main/webapp/static/js/common.1.js View File

7
 
7
 
8
 			$.post(base_url + "/logout", function(data, status) {
8
 			$.post(base_url + "/logout", function(data, status) {
9
 				if (data.code == "200") {
9
 				if (data.code == "200") {
10
-					layer.open({
10
+                    layer.msg('注销成功');
11
+                    setTimeout(function(){
12
+                        window.location.href = base_url + "/";
13
+                    }, 500);
14
+					/*layer.open({
11
 						title: '系统提示',
15
 						title: '系统提示',
12
 						content: '注销成功',
16
 						content: '注销成功',
13
 						icon: '1',
17
 						icon: '1',
14
 						end: function(layero, index){
18
 						end: function(layero, index){
15
 							window.location.href = base_url + "/";
19
 							window.location.href = base_url + "/";
16
 						}
20
 						}
17
-					});
21
+					});*/
18
 				} else {
22
 				} else {
19
 					layer.open({
23
 					layer.open({
20
 						title: '系统提示',
24
 						title: '系统提示',

+ 6 - 2
xxl-job-admin/src/main/webapp/static/js/login.1.js View File

48
         submitHandler : function(form) {
48
         submitHandler : function(form) {
49
 			$.post(base_url + "/login", $("#loginForm").serialize(), function(data, status) {
49
 			$.post(base_url + "/login", $("#loginForm").serialize(), function(data, status) {
50
 				if (data.code == "200") {
50
 				if (data.code == "200") {
51
-                    layer.open({
51
+                    layer.msg('登录成功');
52
+                    setTimeout(function(){
53
+                        window.location.href = base_url;
54
+                    }, 500);
55
+                    /*layer.open({
52
                         title: '系统提示',
56
                         title: '系统提示',
53
                         content: '登录成功',
57
                         content: '登录成功',
54
                         icon: '1',
58
                         icon: '1',
55
                         end: function(layero, index){
59
                         end: function(layero, index){
56
                             window.location.href = base_url;
60
                             window.location.href = base_url;
57
                         }
61
                         }
58
-                    });
62
+                    });*/
59
 				} else {
63
 				} else {
60
                     layer.open({
64
                     layer.open({
61
                         title: '系统提示',
65
                         title: '系统提示',