From d3b51bef2fbd852e15e35a5c89fde2ccdb356e08 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 20 Aug 2019 18:19:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4js=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E8=AE=BE=E7=BD=AE=E6=A0=B7=E5=BC=8F=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Views/Account/Lock.cshtml | 11 +---------- Bootstrap.Admin/wwwroot/css/lock.css | 2 +- Bootstrap.Admin/wwwroot/js/lock.js | 3 --- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Bootstrap.Admin/Views/Account/Lock.cshtml b/Bootstrap.Admin/Views/Account/Lock.cshtml index 35995d64..8c2086e9 100644 --- a/Bootstrap.Admin/Views/Account/Lock.cshtml +++ b/Bootstrap.Admin/Views/Account/Lock.cshtml @@ -1,7 +1,7 @@ @model LockModel @{ ViewBag.Title = "系统登陆"; - Layout = "~/Views/Shared/_Layout.cshtml"; + Layout = "_Layout"; } @section css { @@ -12,25 +12,16 @@ - } @section javascript { - - - - - - - - }
diff --git a/Bootstrap.Admin/wwwroot/css/lock.css b/Bootstrap.Admin/wwwroot/css/lock.css index b2f3d21d..35eb5c71 100644 --- a/Bootstrap.Admin/wwwroot/css/lock.css +++ b/Bootstrap.Admin/wwwroot/css/lock.css @@ -1,4 +1,4 @@ -.lock-screen { +body { background: #02bac6 url("../images/lock-bg.jpg"); background-size: cover; background-repeat: repeat; diff --git a/Bootstrap.Admin/wwwroot/js/lock.js b/Bootstrap.Admin/wwwroot/js/lock.js index ca02b45d..6fbdd226 100644 --- a/Bootstrap.Admin/wwwroot/js/lock.js +++ b/Bootstrap.Admin/wwwroot/js/lock.js @@ -1,12 +1,9 @@ $(function () { - $('body').addClass('lock-screen'); $('#time').text((new Date()).format('HH:mm:ss')); setInterval(function () { $('#time').text((new Date()).format('HH:mm:ss')); }, 500); - $.extend($.validator.messages, { required: "请输入密码" }); - $(".lock-wrapper").autoCenter(); });