...
|
...
|
@@ -510,6 +510,68 @@ $('#identity-Btn').on('click', function() { |
|
|
enrollmentYear: $('#stu-entrance-year').val()
|
|
|
};
|
|
|
|
|
|
var $prompt = $('#prompt'),
|
|
|
$agreen = $('#agreen-show'),
|
|
|
failText = '';
|
|
|
|
|
|
if (identData.name === '') {
|
|
|
failText = '真实姓名不能为空';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (identData.certNo === '') {
|
|
|
failText = '身份证号不能为空';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(identData.certNo)) {
|
|
|
failText = '身份证号格式错误';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (identData.collegeName === '') {
|
|
|
failText = '学校名称不能为空';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (identData.educationDegree === '') {
|
|
|
failText = '学历程度不能为空';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (identData.enrollmentYear === '') {
|
|
|
failText = '入学年份不能为空';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
if (!$agreen.hasClass('active')) {
|
|
|
failText = '未同意Yoho!有货学生认证协议';
|
|
|
$prompt.html(failText);
|
|
|
|
|
|
// xls-3埋点
|
|
|
givePoint('YB_STUDENT_ATTCT_SUBMIT', {SRC_ID: 2, SUBMIT_RES: 2, FAILURE_CAUSE: failText});
|
|
|
return;
|
|
|
}
|
|
|
$prompt.html('');
|
|
|
|
|
|
submitIdentity(identData);
|
|
|
});
|
|
|
|
...
|
...
|
|