|
-
- @{
- Layout = null;
- }
-
- <!DOCTYPE html>
-
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>数字化校园-查询报名</title>
- <style>
- .box {
- width: 70%;
- height: 36px;
- text-align: center;
- line-height: 36px;
- background-color: #3298DC;
- border-radius: 4px;
- margin: 20px auto;
- }
-
- .box a {
- color: #fff;
- font-size: 14px;
- }
-
- .notclick {
- pointer-events: none;
- background-color: #778899;
- }
- </style>
- </head>
- <body>
- <div>
- <div class="box">
- <a href="#" id="stuenroll">报名</a>
- </div>
- <div class="box"><a href="" id="loc">查询考试地点及时间</a></div>
- <div class="box"><a href="" id="res">查询录取结果</a></div>
- <div class="box" style=""><a href="" id="stuRecruitmentBrochure">招生简章</a></div>
- <div class="box major"><a id="majorIntroduce">专业介绍</a></div>
- </div>
- <script src="/Content/jquery/jquery-1.10.2.min.js"></script>
- <script src="~/PhonePage/server.js"></script>
-
- <script>
- $(function () {
- var EmpNo = request('EmpNo');
- if (!!EmpNo) {
- //报名
- $('#stuenroll').on('click',
- function () {
- //查询
- $.ajax({
- url: '/EducationalAdministration/StuEnrollPhone/GetEmpInfoEntityByEmpNo?empNo=' + EmpNo,
- type: "GET",
- dataType: "json",
- async: true,
- cache: false,
- success: function (data) {
- if (data.code == 200) {
- var data = data.data.QRCodeStatus;
- if (data === 1 || data === '' || data === 'undefined') {
- alert('招生报名录取工作已结束!');
- return;
- } else {
- location.href = '/EducationalAdministration/StuEnrollPhone/Form?EmpNo=' + EmpNo;
- }
- } else {
- alert(data.info);
- //location.href = '/EducationalAdministration/StuEnrollPhone/Search?type=' + type;
- }
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- },
- beforeSend: function () {
- },
- complete: function () {
- }
- });
- });
- //$('#stuenroll').attr('href', '/EducationalAdministration/StuEnrollPhone/Form?EmpNo=' + EmpNo);
- //查询考试地点及时间
- $('#loc').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=1');
- //查询录取结果
- $('#res').attr('href', '/EducationalAdministration/StuEnrollPhone/Search?type=2');
- //招生简章
- $('#stuRecruitmentBrochure').attr('href', '/EducationalAdministration/StuEnrollPhone/StuRecruitmentBrochure');
-
- $('.major').find('a').on('click',
- function () {
- location.href = "/EducationalAdministration/StuEnrollPhone/FileDownLoad?name=" + '2022年各专业介绍' + '&pathName=' + '各专业介绍.pdf';
- });
- }
- //禁用按钮
- //function btnEnabled() {
- // $('.box').addClass('notclick');
- //}
-
- });
-
- </script>
- </body>
- </html>
|