|
@@ -354,6 +354,9 @@
|
|
|
$("#bottombox").css("position","fixed");
|
|
|
}
|
|
|
});
|
|
|
+ if(sessionStorage.getItem("new_email_"+userId)!=null){
|
|
|
+ $(".email_input").val(sessionStorage.getItem("new_email_"+userId));
|
|
|
+ }
|
|
|
if (sessionStorage.getItem("send_email_"+{{.T._id}})!=null&&sessionStorage.getItem("send_code_"+{{.T._id}})!=null&&sessionStorage.getItem("send_email_"+{{.T._id}})!=email_lastInput){
|
|
|
$(".email_check_ok").hide();
|
|
|
$(".email_input").val(sessionStorage.getItem("send_email_"+{{.T._id}}));
|
|
@@ -519,10 +522,14 @@
|
|
|
if (email_input.indexOf("@") > 0) {
|
|
|
if (email_input != email_lastInput) {
|
|
|
$(this).parents('div.form-control').siblings().slideDown();
|
|
|
- console.log(email_lastVerity)
|
|
|
if (email_lastVerity > 0) {
|
|
|
+ console.log("3333")
|
|
|
$("#sendCode").attr("disabled", true);
|
|
|
+ //返回后验证码可输入
|
|
|
$(".verity_input").attr("readonly", true);
|
|
|
+ if((sessionStorage.getItem("new_email_"+userId)!=null)&&(sessionStorage.getItem("new_email_"+userId)==email_input)){
|
|
|
+ $(".verity_input").attr("readonly", false);
|
|
|
+ }
|
|
|
}
|
|
|
finishEmailVerity = false;
|
|
|
$(".toPay").attr("disabled", "disabled");
|
|
@@ -536,6 +543,7 @@
|
|
|
$(".email_err_msg").hide();
|
|
|
}
|
|
|
} else {
|
|
|
+ console.log("111")
|
|
|
finishEmailVerity = true;
|
|
|
if (readClause && finishPhoneVerity) {
|
|
|
$(".toPay").removeAttr("disabled")
|
|
@@ -547,6 +555,7 @@
|
|
|
$(this).parents('div.form-control').siblings().slideUp();
|
|
|
}
|
|
|
} else {
|
|
|
+ console.log("222")
|
|
|
$(this).parents('div.form-control').siblings().slideUp();
|
|
|
$("#sendCode").attr("disabled", "disabled");
|
|
|
$(".verity_input").attr("readonly", true);
|
|
@@ -603,6 +612,8 @@
|
|
|
$(".email_input").attr("readonly", true);
|
|
|
//sessionStorage.setItem("send_email_"+{{.T._id}}, $(".email_input").val().replace(/\s*/g,""));
|
|
|
sessionStorage.setItem("send_code_"+{{.T._id}}, Date.parse(new Date())/1000);
|
|
|
+ //
|
|
|
+ sessionStorage.setItem("new_email_"+userId,$(".email_input").val().replace(/\s*/g,""))
|
|
|
}
|
|
|
} else {
|
|
|
EasyAlert.show(data.errMsg, "", 3000)
|
|
@@ -628,6 +639,7 @@
|
|
|
}
|
|
|
$(".email_check_ok").show();
|
|
|
$(".email_err_msg").hide();
|
|
|
+ console.log("555")
|
|
|
$(".verity_input").attr("readonly", true);
|
|
|
$(".email_input").parents('div.form-control').siblings().slideUp();
|
|
|
//进入其他页面 验证码显示 清除缓存
|
|
@@ -748,6 +760,7 @@
|
|
|
sessionStorage.removeItem("readClause");
|
|
|
sessionStorage.removeItem("index");
|
|
|
sessionStorage.removeItem("pay_way");
|
|
|
+ sessionStorage.removeItem("new_email_"+userId);
|
|
|
clearInterval(interval);
|
|
|
window.location.replace("/jyapp/front/dataExport/paySuccessPage?code=" + r.orderCode+"&email="+r.email+"&payTime="+r.payTime+"&pay_way="+r.pay_way);
|
|
|
}
|
|
@@ -766,6 +779,7 @@
|
|
|
clearInterval(r)
|
|
|
$(".sendCode").text("发送验证码");
|
|
|
if (!finishEmailVerity) {
|
|
|
+ console.log("666")
|
|
|
$(".verity_input").attr("readonly", true);
|
|
|
$(".sendCode").removeAttr("disabled");
|
|
|
$(".email_input").removeAttr("readonly");
|