130 lines
4.2 KiB
Plaintext
130 lines
4.2 KiB
Plaintext
${Styles.src(zhiqim.css)}
|
||
${Scripts.src(zhiqim.js)}
|
||
<link rel="stylesheet" type="text/css" href="zinc/css/base.css">
|
||
<script src="zinc/js/jquery-1.11.1.min.js"></script>
|
||
<script>
|
||
//重置密码
|
||
function resetPass()
|
||
{
|
||
var operatorMobile = Z("#operatorMobile").val();
|
||
if (Z.V.isEmptyBlank(operatorMobile))
|
||
{
|
||
Z.failure("手机号不能为空!");
|
||
Z("#operatorMobile").focus();
|
||
return;
|
||
}
|
||
|
||
var smsCode = Z("#smsCode").val();
|
||
if (Z.V.isEmptyBlank(smsCode))
|
||
{
|
||
Z.failure("验证码不能为空!");
|
||
return;
|
||
}
|
||
|
||
var operatorPass = Z("#operatorPass").val();
|
||
if (Z.V.isEmptyBlank(operatorPass))
|
||
{
|
||
Z.failure("密码不能为空!");
|
||
Z("#operatorPass").focus();
|
||
return;
|
||
}
|
||
|
||
var operatorNewPass = Z("#operatorNewPass").val();
|
||
if (operatorPass != operatorNewPass)
|
||
{
|
||
Z.failure("两次确认密码不一样!");
|
||
return;
|
||
}
|
||
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("ZmrLoginPresenter");
|
||
ajax.setMethodName("resetPassword");
|
||
ajax.addParam("operatorMobile", operatorMobile);
|
||
ajax.addParam("operatorPass", operatorPass);
|
||
ajax.addParam("operatorNewPass", operatorNewPass);
|
||
ajax.addParam("smsCode", smsCode);
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess(function(responseText){
|
||
Z.success(responseText,function(){window.location.href= window.location.href= "/";});
|
||
});
|
||
ajax.setLoading("modifyBtn", '正在提交', {disabled:true});
|
||
ajax.execute();
|
||
}
|
||
|
||
//发送验证码
|
||
function doSendSmsCode(){
|
||
var operatorMobile = Z("#operatorMobile").val();
|
||
if (Z.V.isEmptyBlank(operatorMobile))
|
||
{
|
||
Z.failure("手机号不能为空!");
|
||
Z("#operatorMobile").focus();
|
||
return;
|
||
}
|
||
|
||
if (Z('#getsms-submit')[0].innerHTML != "获取验证码" && Z('#getsms-submit')[0].innerHTML != "重新发送") {
|
||
Z.failure("请稍后再试");
|
||
return ;
|
||
}
|
||
|
||
var ajax = new Z.Ajax();
|
||
ajax.setContextPath("${context.getContextPath()}");
|
||
ajax.setClassName("ZmrLoginPresenter");
|
||
ajax.setMethodName("sendSmsRestPass");
|
||
ajax.addParam("operatorMobile", operatorMobile);
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess();
|
||
ajax.execute();
|
||
|
||
setYzmLabel();
|
||
}
|
||
|
||
var wait = 60;
|
||
function setYzmLabel() {
|
||
if (wait == 0)
|
||
{
|
||
Z('#getsms-submit')[0].innerHTML = "重新发送";
|
||
wait = 60;
|
||
}
|
||
else
|
||
{
|
||
Z('#getsms-submit')[0].innerHTML = "已发送(" + wait + ")";
|
||
wait--;
|
||
setTimeout(function () {
|
||
setYzmLabel()
|
||
}, 1000);
|
||
}
|
||
|
||
};
|
||
</script>
|
||
<div class="reg-box">
|
||
<div class="header">欢迎注册 [ ${context.getContextName()} ]!</div>
|
||
<div class="reg-login p-login">
|
||
<div class="design-logo p-int"><img src="ztmpl/zhiqim_manager/designLogo.png"></div>
|
||
<div class="reg">
|
||
<div class="reg-title">已有账号?<a href="/">马上登录</a></div>
|
||
<div class="reg-h">重置密码</div>
|
||
<div class="reg-list">
|
||
<span>手机号码:</span>
|
||
<input type="tel" id="operatorMobile" name="operatorMobile" data-options="type:Integer;" placeholder="请输入手机号码" maxlength="11" autocomplete="off" />
|
||
</div>
|
||
<div class="reg-list">
|
||
<span>验证码:</span>
|
||
<input id="smsCode" name="smsCode" class="input-code" data-options="type:Integer;" placeholder="请输入验证码" maxlength="6" autocomplete="off" />
|
||
<button id="getsms-submit" onclick="doSendSmsCode()">获取验证码</button>
|
||
</div>
|
||
<div class="reg-list">
|
||
<span>新密码:</span>
|
||
<input type="password" name="operatorPass" id="operatorPass" placeholder="请输入登录密码" maxlength="16" autocomplete="off" />
|
||
</div>
|
||
<div class="reg-list">
|
||
<span>确认密码:</span>
|
||
<input type="password" name="operatorNewPass" id="operatorNewPass" placeholder="请再次输入登录密码" maxlength="16" autocomplete="off" />
|
||
</div>
|
||
|
||
<button id="modifyBtn" class="reg-btn p-btn" onclick="resetPass()">确认</button>
|
||
</div>
|
||
</div>
|
||
<div class="footer">Copyright © 2023 领淘众创 All Rights Reserved <a href="https://beian.miit.gov.cn/" style="color: white" target="_blank">备案号:闽ICP备2023014112号-1 </a></div>
|
||
</div>
|
||
|