...
|
...
|
@@ -17,7 +17,7 @@ function chooseProtocol() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function chooseAreaToogle() {
|
...
|
...
|
@@ -29,12 +29,18 @@ function chooseAreaToogle() { |
|
|
function cancelChooseArea() {
|
|
|
$(document).on('click', 'body', function(e) {
|
|
|
var $target = $(e.target);
|
|
|
if ($target.hasClass('yohoselectarea') || $target.hasClass('yohoselectarea') || $target.hasClass('areaname') || $target.hasClass('righttag') || $target.hasClass('optionslist') || $target.hasClass('optionitem')) {
|
|
|
|
|
|
if ($target.hasClass('yohoselectarea') ||
|
|
|
$target.hasClass('yohoselectarea') ||
|
|
|
$target.hasClass('areaname') ||
|
|
|
$target.hasClass('righttag') ||
|
|
|
$target.hasClass('optionslist') ||
|
|
|
$target.hasClass('optionitem')) {
|
|
|
return;
|
|
|
} else {
|
|
|
$('.optionslist').addClass('hide');
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function chooseArea() {
|
...
|
...
|
@@ -42,17 +48,29 @@ function chooseArea() { |
|
|
var $option = $(this);
|
|
|
var areanum = $option.attr('areanum');
|
|
|
var areaname = $option.text();
|
|
|
|
|
|
$('#areaname').text(areaname);
|
|
|
$('#areanum').text(areanum);
|
|
|
$('#areacode').val(areanum);
|
|
|
$('.optionslist').addClass('hide');
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function isagree() {
|
|
|
return $('.choosetag').attr('checked');
|
|
|
}
|
|
|
|
|
|
function closeMask() {
|
|
|
var $target;
|
|
|
|
|
|
$(document).on('click', '#alreayregist', function(e) {
|
|
|
$target = $(e.target);
|
|
|
if ($target.hasClass('mask') || $target.hasClass('backdrop')) {
|
|
|
$('#alreayregist').hide();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function nextStep() {
|
|
|
var openId = '';
|
|
|
var sourceType = '';
|
...
|
...
|
@@ -74,7 +92,7 @@ function nextStep() { |
|
|
openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579';
|
|
|
sourceType = $('#sourceType').val() || 'qq';
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
type: 'post',
|
|
|
url: '/passport/autouserinfo/bindCheck',
|
|
|
data: {
|
|
|
mobile: mobile,
|
...
|
...
|
@@ -86,18 +104,17 @@ function nextStep() { |
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
if (data.data.isReg === 0) {
|
|
|
$('#bindmobileform').attr('action','/passport/thirdlogin/noregist');
|
|
|
$('#bindmobileform').attr('action', '/passport/thirdlogin/noregist');
|
|
|
$('#bindmobileform').submit();
|
|
|
} else {
|
|
|
|
|
|
$('#alreayregist').show();
|
|
|
}
|
|
|
} else {
|
|
|
alert(data.message);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function init() {
|
...
|
...
|
@@ -106,5 +123,6 @@ function init() { |
|
|
chooseAreaToogle();
|
|
|
cancelChooseArea();
|
|
|
nextStep();
|
|
|
closeMask();
|
|
|
}
|
|
|
init(); |
|
|
\ No newline at end of file |
...
|
...
|
|