验证失败后重置验证码

This commit is contained in:
季圣华
2019-05-03 16:12:39 +08:00
parent 3739bd2dfd
commit 4357896841
2 changed files with 6 additions and 5 deletions

View File

@@ -714,7 +714,7 @@ input.inputstyle:hover{
border:none;
font-family:Arial, Helvetica, sans-serif;
background:url(../images/bg_logininout.jpg) no-repeat;
left: 118px;
left: 120px;
top: 84px;
}
#user_pwd{
@@ -726,7 +726,7 @@ input.inputstyle:hover{
border:none;
font-family:Arial, Helvetica, sans-serif;
background:url(../images/bg_logininout.jpg) no-repeat;
left: 118px;
left: 120px;
top: 118px;
}
#user_pwd_repeat{
@@ -738,7 +738,7 @@ input.inputstyle:hover{
border:none;
font-family:Arial, Helvetica, sans-serif;
background:url(../images/bg_logininout.jpg) no-repeat;
left: 118px;
left: 120px;
top: 152px;
}
#user_captcha{
@@ -750,7 +750,7 @@ input.inputstyle:hover{
border:none;
font-family:Arial, Helvetica, sans-serif;
background:url(../images/bg_logininout.jpg) no-repeat;
left: 118px;
left: 120px;
top: 186px;
}
#imgCaptcha{

View File

@@ -32,7 +32,7 @@
<input type="password" id="user_pwd"/>
<input type="password" id="user_pwd_repeat"/>
<input type="text" id="user_captcha"/>
<div id="imgCaptcha"></div>
<div id="imgCaptcha" title="点击刷新验证码"></div>
<p id="tip_username" style="display: none"><span class="error_input">用户名不正确</span></p>
<p id="tip_userpwd" style="display: none">密码不能为空</p>
<div class="register_btn">
@@ -77,6 +77,7 @@
location.href = "login.html";
} else {
alert(res.msg);
verifyCode.refresh(); //刷新
}
},
//此处添加错误处理