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.

Link.cshtml 3.9 KiB

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