...
|
...
|
@@ -26,7 +26,8 @@ var provFn, |
|
|
identityFn;
|
|
|
|
|
|
var alertConfig,
|
|
|
makeAlert;
|
|
|
makeAlert,
|
|
|
identityFlag = false;
|
|
|
|
|
|
// j面跳转对象
|
|
|
var redirect = {
|
...
|
...
|
@@ -158,11 +159,16 @@ function clearSelectUl($a, code) { |
|
|
$ul.empty();
|
|
|
$wrap.removeClass('active');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 最终提交表单
|
|
|
*/
|
|
|
function submitIdentity(json) {
|
|
|
|
|
|
if (identityFlag) {
|
|
|
return;
|
|
|
}
|
|
|
identityFlag = true;
|
|
|
|
|
|
// xls-3提交认证埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 1});
|
|
|
$.ajax({
|
...
|
...
|
@@ -172,10 +178,12 @@ function submitIdentity(json) { |
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
window.location.href = data.data;
|
|
|
|
|
|
|
|
|
// xls-4认证成功埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_RESULT', {SRC_ID: 5, SUBMIT_RES: 1});
|
|
|
} else {
|
|
|
identityFlag = false;
|
|
|
|
|
|
$identityForm.addClass('hide');
|
|
|
$('identity-back-wrap').remove();
|
|
|
$identityWrap.append(identityFn({msg: data.message}));
|
...
|
...
|
@@ -708,3 +716,7 @@ $(function() { |
|
|
F_URL: url, F_INDEX: 6, I_INDEX: parseInt(index, 0) + 1});
|
|
|
});
|
|
|
});
|
|
|
|
|
|
window.onbeforeunload = function(){
|
|
|
clearForm();
|
|
|
} |
...
|
...
|
|