1234567891011121314151617181920212223242526272829303132333435 |
- $(function () {
- checkIDCard();
- });
- function cancel() {
- location.href = rootPath + "/Home/screensaver";
- }
- function checkIDCard() {
- $.post(rootPath + "/Home/Check", null, function (res) {
- if (res.IsSuccess) {
- $("#loading").show();
- getUserID(res.Data);
- } else {
- showError("验证失败:" + res.Message + "请联系管理员。");
- //checkIDCard();
- }
- resetTime();
- });
- }
- function getUserID(idNum) {
- $.post(emisWeb + "/StudentServices/GetStudentViewByIDNum", { idNum: idNum }, function (res) {
- if (res) {
- if (res.UserID != null) {
- location.href = rootPath + "/Home/Preview?userID=" + res.UserID + "&idNum=" + idNum;
- return;
- }
- }
- $("#loading").hide();
- showError("您的身份证信息无效,请联系相关老师。");
- resetTime();
- }, 'json');
- }
|