diff --git a/index.html b/index.html index cb76312..e8f39fc 100644 --- a/index.html +++ b/index.html @@ -45,7 +45,7 @@
锁定账户
-
  • 退出
  • +
  • 退出
  • @@ -183,6 +183,15 @@ }] }); }); + + /** + * 退出操作 + */ + $("#logout").click(function () { + layer.confirm("确定要退出吗?", {skin: 'layui-layer-lan', icon: 3, title:'提示', anim: 6}, function () { + window.location = "login.html"; + }); + }); }); diff --git a/login.html b/login.html index b280c40..23ac140 100644 --- a/login.html +++ b/login.html @@ -47,7 +47,7 @@ form.on('submit(login)', function (data) { layer.msg("登陆中...", {icon: 6, time: 1000, anim: 4}, function () { - parent.layer.close(parent.layer.getFrameIndex(window.name)); + window.location = "index.html"; }); return false; });