...
|
...
|
@@ -97,8 +97,8 @@ function phoneAjaxFn(callback) { |
|
|
validateResult[0].message = '';
|
|
|
validateResult[0].status = true;
|
|
|
break;
|
|
|
case 404:
|
|
|
validateResult[0].message = '改账号已经存在';
|
|
|
case 400:
|
|
|
validateResult[0].message = data.message;
|
|
|
validateResult[0].status = false;
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -464,7 +464,48 @@ $registerBtn.click(function() { |
|
|
if ($(this).hasClass('disable')) {
|
|
|
return;
|
|
|
} else {
|
|
|
('#register-form').submit();
|
|
|
|
|
|
//ajax提交
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/register/mobileregister',
|
|
|
data: {
|
|
|
area: $region.text().split('+')[1],
|
|
|
mobile: $pn.val(),
|
|
|
captcha: $ca.val(),
|
|
|
code: $mc.val(),
|
|
|
password: $pwd.val()
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
|
|
|
var time = 0,
|
|
|
t,
|
|
|
refer = data.href;
|
|
|
|
|
|
t = setTimeout(function() {
|
|
|
time++;
|
|
|
}, 1000);
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/register/mobileregister',
|
|
|
data: {
|
|
|
session: data.session
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
|
|
|
if (data.code === 200 && t < 3) {
|
|
|
clearInterval(t);
|
|
|
location.href = refer;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (t >= 3) {
|
|
|
clearInterval(t);
|
|
|
location.href = refer;
|
|
|
}
|
|
|
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|