Commit bdbddbd5 by 陈天仲

20240416陈天仲本地代码提交

parent b39c28c8
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
.shadow { .shadow {
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
} }
/*去除ie edge的密码框默认出现的小眼睛,给人添乱这一块,巨硬从来都没让我失望过*/
input[type="password"]::-ms-reveal{
display: none;
}
</style> </style>
</head> </head>
<body style="background-color: #EDEDED;"> <body style="background-color: #EDEDED;">
...@@ -54,8 +58,10 @@ ...@@ -54,8 +58,10 @@
<div class="form-group" style="height:78px" id="username-block"> <div class="form-group" style="height:78px" id="username-block">
<div class="label text-blue"> <div class="label text-blue">
<label for="username">用户名: </label> <label for="username">用户名: </label>
<a style="cursor:pointer;text-decoration:none;color: #0f4bac" onclick="queryAccount();">忘记用户名?点这里...</a>
<!-- <input class="button bg-yellow bouncein" id="selectUser" type="button" value="选择用户"/>--> <a style="cursor:pointer;text-decoration:none;color: #0f4bac;display: none" onclick="queryAccount();" id="searchUser">忘记用户名?点这里...</a>
<input class="button bg-yellow bouncein" id="selectUser" type="button" value="选择用户"/>
</div> </div>
<!-- th:field="*{username}"--> <!-- th:field="*{username}"-->
<input id="hideUserId" type="hidden" value=""/> <input id="hideUserId" type="hidden" value=""/>
...@@ -79,6 +85,7 @@ ...@@ -79,6 +85,7 @@
</div> </div>
<div class="field field-icon"> <div class="field field-icon">
<span class="icon icon-key"></span> <span class="icon icon-key"></span>
<i class="iconfont icon-eye" id="icons" style="position: absolute; top: 7px; right: 7px" onclick="changeType(this)"></i>
<input class="required input " <input class="required input "
type="password" type="password"
id="password" id="password"
...@@ -87,6 +94,7 @@ ...@@ -87,6 +94,7 @@
th:accesskey="#{screen.welcome.label.password.accesskey}" th:accesskey="#{screen.welcome.label.password.accesskey}"
th:field="*{password}" th:field="*{password}"
autocomplete="off"/> autocomplete="off"/>
</div> </div>
</div> </div>
...@@ -112,6 +120,7 @@ ...@@ -112,6 +120,7 @@
<input class="required input" <input class="required input"
type="password" type="password"
id="certPwd" id="certPwd"
autocomplete="off"
size="25"/> size="25"/>
</div> </div>
</div> </div>
...@@ -200,7 +209,10 @@ ...@@ -200,7 +209,10 @@
<script type="text/javascript" src="./app/js/myself/login_new.js"></script> <script type="text/javascript" src="./app/js/myself/login_new.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// SelectGXFYUsers.init("selectUser", "username", "hideUserId", 3, false);
SelectGXFYUsers.init("selectUser", "username", "hideUserId", 3, false);
configure();
bindKeyup(); bindKeyup();
$(function (){ $(function (){
...@@ -241,6 +253,52 @@ ...@@ -241,6 +253,52 @@
} }
}); });
} }
function changeType(e){
// js原生小眼睛 1.获取元素
var pwd = document.getElementById('password');
var pwdtype = (pwd.type == "password") ? "text" : "password";
console.log("pwdtype",pwdtype)
var pwdClass = (pwdtype == "password" )? "iconfont icon-eye":'iconfont icon-eye-slash';
console.log("pwdClass",pwdClass)
pwd.type = pwdtype;
e.className = pwdClass;
}
function configure(){
$.ajax({
url: "configure.json",//同文件夹下的json文件路径
type: "GET",//请求方式为get
dataType: "json", //返回数据格式为json
success: function(data) {//请求成功完成后要执行的方法
if (data.index = 0){ //0 显示选人组件 1显示搜人组件
$("#selectUser").show();
$("#searchUser").hide();
}else{
$("#selectUser").hide();
$("#searchUser").show();
}
}
})
}
// // 2.注册事件 处理程序
// var flag = 0;
// eye.onclick = function(){
// if(flag == 0){
// pwd.type = 'text';
// //更改元素的类名,以达到变换图标的作用
// eye.className='iconfont icon-eye-close'
// //点击一次之后 flag一定要发生变化
// flag = 1
// }else{
// pwd.type = 'password'
// flag = 0
// eye.className='iconfont icon-eye'
// }
// }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
{
//0 显示选人组件 1显示搜人组件
"index": 1
}
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 to comment