You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

106 lines
3.9 KiB

  1. @{
  2. Layout = null;
  3. }
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta name="viewport" content="width=device-width" />
  8. <title>数字化校园-查询报名</title>
  9. <style>
  10. .box {
  11. width: 70%;
  12. height: 36px;
  13. text-align: center;
  14. line-height: 36px;
  15. background-color: #3298DC;
  16. border-radius: 4px;
  17. margin: 20px auto;
  18. }
  19. .box a {
  20. color: #fff;
  21. font-size: 14px;
  22. }
  23. .notclick {
  24. pointer-events: none;
  25. background-color: #778899;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div>
  31. <div class="box">
  32. <a href="#" id="stuenroll">报名</a>
  33. </div>
  34. <div class="box"><a href="" id="loc">查询考试地点及时间</a></div>
  35. <div class="box"><a href="" id="res">查询录取结果</a></div>
  36. <div class="box" style=""><a href="" id="stuRecruitmentBrochure">招生简章</a></div>
  37. <div class="box major"><a id="majorIntroduce">专业介绍</a></div>
  38. </div>
  39. <script src="/Content/jquery/jquery-1.10.2.min.js"></script>
  40. <script src="~/PhonePage/server.js"></script>
  41. <script>
  42. $(function () {
  43. var EmpNo = request('EmpNo');
  44. if (!!EmpNo) {
  45. //报名
  46. $('#stuenroll').on('click',
  47. function () {
  48. //查询
  49. $.ajax({
  50. url: '/EducationalAdministration/StuEnrollPhone/GetEmpInfoEntityByEmpNo?empNo=' + EmpNo,
  51. type: "GET",
  52. dataType: "json",
  53. async: true,
  54. cache: false,
  55. success: function (data) {
  56. if (data.code == 200) {
  57. var data = data.data.QRCodeStatus;
  58. if (data === 1 || data === '' || data === 'undefined') {
  59. alert('招生报名录取工作已结束!');
  60. return;
  61. } else {
  62. location.href = '/EducationalAdministration/StuEnrollPhone/Form?EmpNo=' + EmpNo;
  63. }
  64. } else {
  65. alert(data.info);
  66. //location.href = '/EducationalAdministration/StuEnrollPhone/Search?type=' + type;
  67. }
  68. },
  69. error: function (XMLHttpRequest, textStatus, errorThrown) {
  70. },
  71. beforeSend: function () {
  72. },
  73. complete: function () {
  74. }
  75. });
  76. });
  77. //$('#stuenroll').attr('href', '/EducationalAdministration/StuEnrollPhone/Form?EmpNo=' + EmpNo);
  78. //查询考试地点及时间
  79. $('#loc').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=1');
  80. //查询录取结果
  81. $('#res').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=2');
  82. //招生简章
  83. $('#stuRecruitmentBrochure').attr('href', '/EducationalAdministration/StuEnrollPhone/StuRecruitmentBrochure');
  84. $('.major').find('a').on('click',
  85. function () {
  86. location.href = "/EducationalAdministration/StuEnrollPhone/FileDownLoad?name=" + '2022年各专业介绍' + '&pathName=' + '各专业介绍.pdf';
  87. });
  88. }
  89. //禁用按钮
  90. //function btnEnabled() {
  91. // $('.box').addClass('notclick');
  92. //}
  93. });
  94. </script>
  95. </body>
  96. </html>