|
@@ -224,14 +224,39 @@
|
|
|
emailEle.focus();
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ const dp = {
|
|
|
+ form: {
|
|
|
+ mobile: email,
|
|
|
+ smsCode: "hjhjhj",
|
|
|
+ isParty: false,
|
|
|
+ partyData: []
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url: "/index/captcha/sendEmailCaptcha",
|
|
|
+ headers: {platform: 'H5'},
|
|
|
+ dataType: 'json',
|
|
|
+ data: JSON.stringify(dp),
|
|
|
+ type: "POST",
|
|
|
+ contentType: 'application/json',
|
|
|
+ success: function (obj) {
|
|
|
+ console.log(obj);
|
|
|
+ //return false;
|
|
|
+ //注册成功后进入
|
|
|
+ if (obj.status === 200 || obj.status === '200') {
|
|
|
+ const parentElement = $(this).parent();
|
|
|
+ parentElement.hide(0)
|
|
|
+ parentElement.siblings().hide(0)
|
|
|
+ $("#emailVerifyModel").show(0)
|
|
|
+ $("#emailAddress").text(email)
|
|
|
+ }else {
|
|
|
+ showToast('Please try again later.')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
//验证成功后进入
|
|
|
- if (true) {
|
|
|
- const parentElement = $(this).parent();
|
|
|
- parentElement.hide(0)
|
|
|
- parentElement.siblings().hide(0)
|
|
|
- $("#emailVerifyModel").show(0)
|
|
|
- $("#emailAddress").text(email)
|
|
|
- }
|
|
|
});
|
|
|
|
|
|
//验证电子邮箱(注册)
|
|
@@ -248,14 +273,36 @@
|
|
|
vcodeEle.focus();
|
|
|
return
|
|
|
}
|
|
|
- console.log("验证码", vcode)
|
|
|
- //验证成功后进入
|
|
|
- if (true) {
|
|
|
- const parentElement = $(this).parent();
|
|
|
- parentElement.hide(0)
|
|
|
- parentElement.siblings().hide(0)
|
|
|
- $("#setPasswordModel").show(0)
|
|
|
- }
|
|
|
+ console.log("验证码", vcode)//checkEmailCaptcha
|
|
|
+ const emailEle = $("#email");
|
|
|
+ const email = emailEle.val()
|
|
|
+
|
|
|
+ const dp = {
|
|
|
+ mobile: email,
|
|
|
+ smsCode: vcode,
|
|
|
+ };
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url: "/index/captcha/checkEmailCaptcha",
|
|
|
+ headers: {platform: 'H5'},
|
|
|
+ dataType: 'json',
|
|
|
+ data: JSON.stringify(dp),
|
|
|
+ type: "POST",
|
|
|
+ contentType: 'application/json',
|
|
|
+ success: function (obj) {
|
|
|
+ console.log(obj);
|
|
|
+ //return false;
|
|
|
+ //验证成功后进入
|
|
|
+ if (obj.status === 200 || obj.status === '200') {
|
|
|
+ const parentElement = $(this).parent();
|
|
|
+ parentElement.hide(0)
|
|
|
+ parentElement.siblings().hide(0)
|
|
|
+ $("#setPasswordModel").show(0)
|
|
|
+ }else {
|
|
|
+ showToast('Please try again later.')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
|
|
|
//确认注册(注册)
|