From 731a0e6ef9010e4dfabdefe17e9ae46e27704755 Mon Sep 17 00:00:00 2001 From: Elvis Date: Thu, 7 May 2020 16:21:21 +0800 Subject: [PATCH] 密码历史 --- WebRoot/WEB-INF/jsp/system/index/login.jsp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) diff --git a/WebRoot/WEB-INF/jsp/system/index/login.jsp b/WebRoot/WEB-INF/jsp/system/index/login.jsp index f0a82b4..c102b86 100644 --- a/WebRoot/WEB-INF/jsp/system/index/login.jsp +++ b/WebRoot/WEB-INF/jsp/system/index/login.jsp @@ -353,6 +353,23 @@ input:focus-within{ var passWordList=[]; //console.log(JSON.parse(storage.getItem('userNameList'))); + $("#loginname").focus(function(e){ + $("#password").attr("type","password"); + var _html=""; + var u_list=JSON.parse(storage.getItem('userNameList')); + console.log(u_list); + if((u_list!=null)||(u_list.length>0)){ + $("#loginname").blur(function(){ + $(".history").hide(); + }) + for(var i=0;i'; + } + $(".history ul").html(_html); + $(".history").show(); + } + }); + //清除历史记录 function clear_history(){ window.top.remove.init({"title":"确定清除历史记录吗?","func":function(success){ -- libgit2 0.21.4