|
|
@@ -17,14 +17,16 @@ $(function(){
|
|
17
|
17
|
|
|
18
|
18
|
// logout
|
|
19
|
19
|
$("#logoutBtn").click(function(){
|
|
20
|
|
- $.post(base_url + "/logout", function(data, status) {
|
|
21
|
|
- if (data.code == "200") {
|
|
22
|
|
- ComAlert.show(1, "注销成功", function(){
|
|
23
|
|
- window.location.href = base_url;
|
|
24
|
|
- });
|
|
25
|
|
- } else {
|
|
26
|
|
- ComAlert.show(1, data.msg);
|
|
27
|
|
- }
|
|
|
20
|
+ ComConfirm.show("确认注销登录?", function(){
|
|
|
21
|
+ $.post(base_url + "/logout", function(data, status) {
|
|
|
22
|
+ if (data.code == "200") {
|
|
|
23
|
+ ComAlert.show(1, "注销成功", function(){
|
|
|
24
|
+ window.location.href = base_url;
|
|
|
25
|
+ });
|
|
|
26
|
+ } else {
|
|
|
27
|
+ ComAlert.show(1, data.msg);
|
|
|
28
|
+ }
|
|
|
29
|
+ });
|
|
28
|
30
|
});
|
|
29
|
31
|
});
|
|
30
|
32
|
|