From 2305f409eb0315fb416d9542cc15d9b4db376c2b Mon Sep 17 00:00:00 2001 From: bobi Date: Sat, 21 Jul 2018 21:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=99=BB=E5=BD=95|=E7=99=BB?= =?UTF-8?q?=E5=87=BA=E9=80=BB=E8=BE=91=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 11 ++++++++++- login.html | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) 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; });