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.
 
 
 
 
 
 

172 lines
7.6 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  8. <meta name="format-detection" content="telephone=no" />
  9. <link rel="shortcut icon" href="~/Content/images/LoginPage/dzlogo.ico" />
  10. <title>数字化智慧校园</title>
  11. <meta name="keywords" content="登陆页面" />
  12. <meta name="description" content="登陆页面" />
  13. <link href="~/Content/css/LoginModel/common.css" rel="stylesheet" />
  14. <link href="~/Content/css/LoginModel/index.css" rel="stylesheet" />
  15. <!--自适应-->
  16. <!--自适应-->
  17. </head>
  18. <body id="" class="" style="">
  19. <div class="loginBox">
  20. <div class="loginCon">
  21. @if (ViewBag.FeixinSwitch)
  22. {
  23. <a href="/feixin.exe" class="down">
  24. <img src="~/Content/images/LoginPage/download.png" alt="" /> 飞星下载
  25. </a>
  26. }
  27. @if (ViewBag.SSOSystemSwitch)
  28. {
  29. <a href="/SSOSystem/Index" class="down downsso">网上办事大厅</a>
  30. }
  31. @if (ViewBag.WeixinLoginSwitch)
  32. {
  33. <a href="/Login/LoginForWeixin?login=one" class="wxLogin down" title="使用微信登录">
  34. <img src="~/Content/images/LoginPage/icon.png" alt="" /> 使用微信登录
  35. </a>
  36. }
  37. <input id="errornum" type="hidden" value="@ViewBag.errornum" />
  38. <div class="loginR" style="">
  39. <div class="loginType">
  40. <img src="~/Content/images/LoginPage/iphoneLogin.png" alt="" />
  41. </div>
  42. <div class="loginLogo">
  43. <img src="~/Content/images/LoginPage/xxlogo.png" alt="" />
  44. </div>
  45. <form id="loginForm" role="form" action="/a/login" method="post" novalidate="novalidate">
  46. <div class="loginT">智慧校园</div>
  47. <div class="error_info" hidden="hidden">*&nbsp;<span>密码不正确</span></div>
  48. <div class="loginInput">
  49. <input type="text" placeholder="用户名" id="lr_username" name="username" class="form-control required" aria-required="true" />
  50. <img src="~/Content/images/LoginPage/person.png" alt="" />
  51. </div>
  52. <div class="loginInput">
  53. <input type="password" placeholder="密码" id="lr_password" name="password" class="form-control required" aria-required="true" />
  54. <img src="~/Content/images/LoginPage/key.png" alt="" />
  55. </div>
  56. <div class="loginInput codeInput" hidden="hidden">
  57. <input type="code" placeholder="验证码" id="verifycode" name="code" class="form-control required" />
  58. <div class="variCode"><img class="code" id="lr_verifycode_img" src="~/Login/VerifyCode" alt="点击切换验证码" title="点击切换验证码" /></div>
  59. <img src="~/Content/images/LoginPage/variCode.png" alt="" />
  60. </div>
  61. <div class="loginBtn">
  62. <input type="button" id="lr_login_btn" class="btn btn-white btn-outline btn-lg btn-rounded progress-login" value="登录" style="cursor: pointer" />
  63. </div>
  64. <div class="bbh">
  65. @if (ViewBag.TeachSwitch)
  66. {
  67. <a href="/EducationalAdministration/EmpInfoEnternal/FormAdd"><span class="bbh_span1">教师注册</span></a>
  68. }
  69. @if (ViewBag.Version)
  70. {
  71. <a href="#"><span class="bbh_span2">版本号:<span>@ViewBag.VersionNum</span></span></a>
  72. }
  73. </div>
  74. </form>
  75. <div class="qrCodeBox">
  76. <div id="qrCode"></div>
  77. <div>@ViewBag.QRCodeText</div>
  78. </div>
  79. </div>
  80. <div class="loginL">
  81. <img src="~/Content/images/LoginPage/zuo.png" alt="" />
  82. </div>
  83. </div>
  84. </div>
  85. <div class="loginFooter">
  86. 在线用户人数 : @ViewBag.OnlineUserNum 人 <br />北京金隅科技学校 <span></span> 数字化智慧校园 版权所有 <span></span>
  87. <div class="tips">
  88. <img src="~/Content/images/LoginPage/tips1.png" alt="" /> <span>建议使用360或谷歌浏览器</span>
  89. </div>
  90. </div>
  91. </body>
  92. <script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
  93. <script src="~/Content/jquery/jquery.md5.min.js"></script>
  94. <script src="~/Content/jquery/qrcode.min.js"></script>
  95. <script src="~/Content/jquery/plugin/layer/layer.js"></script>
  96. <script>
  97. function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
  98. $.rootUrl = '@Url.Content("~")'.substr(0, '@Url.Content("~")'.length - 1);
  99. $.lrToken = $('@Html.AntiForgeryToken()').val();
  100. var DigitalschoolMisLoginurl = "@ViewBag.DigitalschoolMisLoginurl";
  101. var Returnurl = "@ViewBag.Returnurl";
  102. var Ip = "@ViewBag.Ip";
  103. var ACIp = "@ViewBag.ACIp";
  104. var ACIp2 = "@ViewBag.ACIp2";
  105. var qrCodeBox = $('.qrCodeBox');
  106. var loginForm = $('#loginForm');
  107. var qrcode = new QRCode(document.getElementById("qrCode"), {
  108. width: 200,
  109. height: 200
  110. });
  111. makeCode('@ViewBag.QRCodeUrl')
  112. //判断是否有登录二维码:有,显示扫码登录;否,不显示;
  113. if ("@ViewBag.HasQRCode" == "True") {
  114. $('.loginType').show();
  115. } else {
  116. $('.loginType').hide();
  117. }
  118. $('.loginBox').on('click','.loginType',function () {
  119. var flag = $(this).hasClass('active');
  120. if (flag) {
  121. $(this).removeClass('active').find('img').attr('src', '/Content/images/LoginPage/iphoneLogin.png');
  122. qrCodeBox.css('display', 'none');
  123. loginForm.stop().fadeIn();
  124. } else {
  125. $(this).addClass('active').find('img').attr('src', '/Content/images/LoginPage/login5.png');
  126. loginForm.css('display', 'none');
  127. qrCodeBox.stop().fadeIn();
  128. }
  129. })
  130. function makeCode(urls) {
  131. qrcode.makeCode(urls);
  132. }
  133. </script>
  134. @Html.AppendJsFile("/Views/Login/PageFive/Index.js")
  135. @Html.AppendJsFile("/Views/Login/ACLogon.js")
  136. <script>
  137. //点击版本号,显示版本号历史进程
  138. $('.loginEdition').click(function () {
  139. var html = '<div class="process"><div class="proTitle">历史进程</div><div class="pro_sec1">';
  140. $.each(@(new HtmlString(ViewBag.VersionList)), function (i, item) {
  141. var index = i % 2 == 0 ? 1 : 2;
  142. html += '<div class="proBox proBox'+index+'">' + item.Content + '<div class="edition">' + item.VersionNum + '</div><div class="time">' + item.UpdateTime.slice(0,item.UpdateTime.indexOf("T"))+'</div></div>' ;
  143. });
  144. html += '</div></div>';
  145. layer.open({
  146. type: 1,
  147. closeBtn: 2,
  148. title: "版本号",
  149. area: ['888px', '60%'],
  150. content: html
  151. })
  152. });
  153. </script>
  154. </html>