...
|
...
|
@@ -391,9 +391,19 @@ $(document).on('click', '.s-footer .checkbox', function() { |
|
|
/*
|
|
|
* 数据提交
|
|
|
*/
|
|
|
$('.s-submit').data('isClick', true);
|
|
|
$(document).on('click', '.s-submit', function() {
|
|
|
var obj = changeSuccess(),
|
|
|
FAILURE_CAUSE;
|
|
|
var $that = $(this);
|
|
|
|
|
|
// 存cookie 记录状态
|
|
|
localStorage.setItem(STUDENTCOOKIES, JSON.stringify(obj.data));
|
|
|
|
|
|
if ($that.data('isClick') === false) {
|
|
|
return;
|
|
|
}
|
|
|
$that.data('isClick', false);
|
|
|
|
|
|
if (!obj.msg) {
|
|
|
$.ajax({
|
...
|
...
|
@@ -412,15 +422,15 @@ $(document).on('click', '.s-submit', function() { |
|
|
}
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
location.href = data.data;
|
|
|
} else {
|
|
|
$that.data('isClick', true);
|
|
|
tip.show(data.message);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
} else {
|
|
|
tip.show(obj.msg);
|
|
|
$that.data('isClick', true);
|
|
|
if (obj.msg.indexOf('字段为空') > -1) {
|
|
|
FAILURE_CAUSE = 1;
|
|
|
} else if (obj.msg.indexOf('认证协议') > -1) {
|
...
|
...
|
|