Commit dfa6d42d by xueli.xue

注销登录二次确认

parent 00465f53
...@@ -17,14 +17,16 @@ $(function(){ ...@@ -17,14 +17,16 @@ $(function(){
// logout // logout
$("#logoutBtn").click(function(){ $("#logoutBtn").click(function(){
$.post(base_url + "/logout", function(data, status) { ComConfirm.show("确认注销登录?", function(){
if (data.code == "200") { $.post(base_url + "/logout", function(data, status) {
ComAlert.show(1, "注销成功", function(){ if (data.code == "200") {
window.location.href = base_url; ComAlert.show(1, "注销成功", function(){
}); window.location.href = base_url;
} else { });
ComAlert.show(1, data.msg); } else {
} ComAlert.show(1, data.msg);
}
});
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment