...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
*/
|
|
|
var $ = require('yoho-jquery');
|
|
|
var phoneRegx = require('../common/mail-phone-regx').phoneRegx;
|
|
|
var Captcha = require('../../plugins/captcha');
|
|
|
|
|
|
var nopermissionoption = $('#nopermissionmessage').html(); // 倒计时dom
|
|
|
var sendmessagehtml = $('.validatewrapper').html(); // 发送短信dom
|
...
|
...
|
@@ -17,6 +18,8 @@ var $wrapper = $('.bindwrapper'), |
|
|
$phoneTip = $wrapper.find('.phone-err-tip'),
|
|
|
$nextBtn = $wrapper.find('.yohobindbtn');
|
|
|
|
|
|
var captcha = new Captcha('#captcha', {checkURI: '/passport/thirdlogin/checkCaptcha'}).init();
|
|
|
|
|
|
require('../../simple-header');
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -229,6 +232,7 @@ function sendMessageValidate() { |
|
|
return;
|
|
|
}
|
|
|
circleTime($('#mobile').val());
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/autouserinfo/sendBindMsg',
|
...
|
...
|
@@ -323,6 +327,8 @@ function nextStep() { |
|
|
}
|
|
|
openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579';
|
|
|
sourceType = $('#sourceType').val() || 'qq';
|
|
|
|
|
|
captcha.check().then(function() {
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
|
url: '/passport/autouserinfo/bindCheck',
|
...
|
...
|
@@ -360,12 +366,10 @@ function nextStep() { |
|
|
});
|
|
|
$('#alreayregist').show();
|
|
|
} else if (data.code === 203) {
|
|
|
|
|
|
// 已注册 可关联
|
|
|
$('#bindmobileform').attr('action', data.data.next);
|
|
|
$('#bindmobileform').submit();
|
|
|
} else if (data.code === 205) {
|
|
|
|
|
|
// 未注册 不可关联
|
|
|
username = data.data.user.username;
|
|
|
headImg = data.data.user.headImg;
|
...
|
...
|
@@ -394,6 +398,7 @@ function nextStep() { |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$wrapper.on('keydown', '.phonenum', function(e) {
|
...
|
...
|
|