|
@@ -9,6 +9,7 @@
|
|
|
<link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/css/font.css?v={{Msg "seo" "version"}}" />
|
|
|
<link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/me/css/forgetPwd.css?v={{Msg "seo" "version"}}" />
|
|
|
<script src="https://cdn-common.jianyu360.com/cdn/lib/jquery/3.6.0/jquery.min.js" type="text/javascript"></script>
|
|
|
+ <link rel="stylesheet" href="//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/index.css">
|
|
|
{{include "/common/js.html"}}
|
|
|
<title>找回密码</title>
|
|
|
</head>
|
|
@@ -30,14 +31,14 @@
|
|
|
</div>
|
|
|
<div class="tran-line-bottom"></div>
|
|
|
</div>
|
|
|
- <div class="code">
|
|
|
+ <!-- <div class="code">
|
|
|
<div>
|
|
|
<input type="tel" name="code" id="code" value="" placeholder="图形验证码" />
|
|
|
<img class="closeQc" src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/cancel.png?v={{Msg "seo" "version"}}"/>
|
|
|
</div>
|
|
|
<span class="captcha"><div class="vert-line"></div><img src="/jyapp/free/captcha"></span>
|
|
|
<div class="tran-line-bottom"></div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="code">
|
|
|
<div>
|
|
|
<input type="tel" id="identCode" name="" value="" placeholder="手机验证码" />
|
|
@@ -50,6 +51,18 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div id="slide-verify-node">
|
|
|
+ <van-popup v-model="popupShow" :lazy-render="false">
|
|
|
+ <div id="slide-wrap"></div>
|
|
|
+ </van-popup>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script src="//cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js"></script>
|
|
|
+ <script src="//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/vant.min.js"></script>
|
|
|
+ <link rel="stylesheet" href="https://cdn-common.jianyu360.com/cdn/lib/go-captcha-jslib/1.0.9/gocaptcha.global.css">
|
|
|
+ <script src="https://cdn-common.jianyu360.com/cdn/lib/go-captcha-jslib/1.0.9/gocaptcha.global.js"></script>
|
|
|
+ <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/slide-verify.js?v={{Msg "seo" "version" }}'></script>
|
|
|
+
|
|
|
<script type="text/javascript">
|
|
|
var dcsOne = false;
|
|
|
var phone = $.trim($("#tel").val());
|
|
@@ -112,18 +125,19 @@
|
|
|
}
|
|
|
phone = $.trim($("#tel").val());
|
|
|
var thisClass = this;
|
|
|
- $.post("/jyapp/free/forgetPwd",{reqType:"sendIdentCode",phone: phone,code:$.trim($("#code").val())},function(r){
|
|
|
- if(r.status=="phoneError"){
|
|
|
- EasyAlert.show("手机号格式错误");
|
|
|
- }else if(r.status=="codeError"){
|
|
|
- EasyAlert.show("图形验证码错误");
|
|
|
- reLoadCaptcha();
|
|
|
- }else if(r.status=="phoneNotExists"){
|
|
|
- EasyAlert.show("手机号不存在");
|
|
|
- }else if(r.status=="y"){
|
|
|
- time(thisClass);
|
|
|
- }
|
|
|
- });
|
|
|
+ initGoCaptchaVerify(phone, 3)
|
|
|
+ // $.post("/jyapp/free/forgetPwd",{reqType:"sendIdentCode",phone: phone,code:$.trim($("#code").val())},function(r){
|
|
|
+ // if(r.status=="phoneError"){
|
|
|
+ // EasyAlert.show("手机号格式错误");
|
|
|
+ // }else if(r.status=="codeError"){
|
|
|
+ // EasyAlert.show("图形验证码错误");
|
|
|
+ // reLoadCaptcha();
|
|
|
+ // }else if(r.status=="phoneNotExists"){
|
|
|
+ // EasyAlert.show("手机号不存在");
|
|
|
+ // }else if(r.status=="y"){
|
|
|
+ // time(thisClass);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
})
|
|
|
$("#nextStep").on("tap",function(){
|
|
|
if($(this).hasClass("disabled")){
|
|
@@ -133,7 +147,15 @@
|
|
|
EasyAlert.show("请重新获取手机验证码");
|
|
|
return;
|
|
|
}
|
|
|
- $.post("/jyapp/free/forgetPwd",{reqType:"nextStep",phone: phone,identCode:$.trim($("#identCode").val())},function(r){
|
|
|
+ var captInfo = getCaptchaInfo()
|
|
|
+ var payload = {
|
|
|
+ reqType:"nextStep",
|
|
|
+ phone: phone,
|
|
|
+ identCode:$.trim($("#identCode").val()),
|
|
|
+ captchaKey: captInfo.captKey,
|
|
|
+ }
|
|
|
+
|
|
|
+ $.post("/jyapp/free/forgetPwd",payload,function(r){
|
|
|
if(r.status=="identCodeError"){
|
|
|
EasyAlert.show("手机验证码错误");
|
|
|
}else if(r.status=="y"){
|
|
@@ -146,8 +168,7 @@
|
|
|
}
|
|
|
function commonMethod(){
|
|
|
var userPone = $.trim($("#tel").val());
|
|
|
- var code = $.trim($("#code").val());
|
|
|
- if(userPone.length >= 11 && code.length >= 4){
|
|
|
+ if(userPone.length >= 11){
|
|
|
dcsOne = true;
|
|
|
if(wait == 60){
|
|
|
$("#btn").css("color","#2cb7ca");
|
|
@@ -156,12 +177,16 @@
|
|
|
dcsOne = false;
|
|
|
$("#btn").css("color","#888888")
|
|
|
}
|
|
|
- if(phone != "" && dcsOne && $.trim($("#identCode").val()).length == 6){
|
|
|
+ if(phone != "" && dcsOne){
|
|
|
$("#nextStep").removeClass("disabled");
|
|
|
}else{
|
|
|
$("#nextStep").addClass("disabled");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function startSendSMSCodeTimer() {
|
|
|
+ time($("#btn")[0])
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<!--百度统计end-->
|