| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
- <% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
- <!DOCTYPE html >
- <html>
- <head> <!-- HEAD -->
- <link rel="stylesheet" type="text/css" href="/css/reset.css">
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css">
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css">
- <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css">
- <link rel="stylesheet" type="text/css" href="/css/components.css">
- <link rel="stylesheet" href="/css/ckeditor.css">
- <script>var space = { vars: {} };</script>
- <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script>
- <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script>
- <script src="/js/space.vue.pc.subassembly.js?v=20261111-image-center-source-v3"></script>
- <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script>
- <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script>
- <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="renderer" content="webkit">
- <link rel="icon" type="image/png" sizes="16x16" href="${curWebSiteObj.seoIcon}">
- <title>登录 - ${curWebSiteObj.seoTitle}</title>
- <link rel="stylesheet" type="text/css" href="/css/login.css">
- <link rel="stylesheet" type="text/css" href="/css/animate.css">
- <style type="text/css">
- .login-content {
- height: 100%;
- width: 100%;
- background: url(/imgs/universe.jpg) right bottom;
- background-size: cover;
- }
- :-webkit-autofill {
- -webkit-text-fill-color: #000 !important;
- transition: background-color 5000s ease-in-out 0s;
- }
- #qrcode {
- width: 140px;
- height: 140px;
- margin: 50px auto 40px;
- }
- #qrcode canvas {
- width: 100%;
- height: 100%;
- }
- .login-states {
- position: absolute;
- top: 0;
- left: 0%;
- width: 100%;
- height: 100%;
- background-color: rgba(255, 255, 255, .8);
- text-align: center;
- color: #000;
- font-size: 18px;
- display: none;
- }
- .login-states i {
- color: #409eff;
- font-size: 50px;
- margin: 25px 0 5px;
- display: inline-block;
- }
- .refresh {
- width: 110px;
- height: 34px;
- line-height: 34px;
- text-align: center;
- margin: 0 auto;
- background: #409eff;
- border-color: #409eff;
- display: block;
- color: #fff;
- border-radius: 3px;
- font-size: 14px;
- cursor: pointer;
- }
- </style> <!--[if lt IE 10]>
- <script type="text/javascript">
- document.write("<div style='position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%; height: 100%; padding-top: 30px; background-color: #fff;overflow: auto;'><div style='font-size: 26px; padding-left:60px'><p style='margin-bottom: 30px;font-size: 30px; text-align:center;'>您的浏览器版本太低了,为了达到最佳的浏览效果</p><p style='margin-bottom: 30px;'>一、请使用高版本IE浏览器或者谷歌浏览器!<img src='/apps/space/images/login/Chrome.jpg' style='width:50px;display:inline-block;vertical-align:middle;' /></p>二、若您使用双核浏览器,如360浏览器,请您切换“极速模式”浏览!<p style='margin-top: 30px;font-size: 22px;'>(1)点击地址栏的内核切换按钮,可以手动切换浏览模式。</p><p style='margin: 30px 0;'><img src='/apps/space/images/login/3601.png'style='width:980px' /></p><p style='margin: 30px 0;font-size: 22px;'>(2)选择“极速模式”</p><p style='margin-bottom: 30px;'><img src='/apps/space/images/login/3602.png' style='width:980px' /></p></div></div>")
- </script>
- <![endif]-->
- </head>
- <body>
- <%-- 登录页未挂载 Vue,勿用 v-cloak;否则前置脚本异常时会一直 display:none 导致白屏 --%>
- <div id="space-content" style="display:block;">
- <div class="login-content">
- <div class="login-logo">
- <a href="javascript:;">
- <img src="${curWebSiteObj.whiteLogoFile}" />
- </a>
- </div>
- <div class="login-right">
- <div id="content" class="login-box">
- <!-- 账号密码登录 -->
- <div class="login-account login-item">
- <!-- 右上角图标 -->
- <div class="login-icon">
- <img src="/apps/space/images/qrcode-icon.png" alt="">
- </div>
- <!-- 登录头像 -->
- <div class="login-user-img">
- <img id="b" src="" style="animation-duration: 500ms" />
- <div class="user-img-cover">
- <img src="/imgs/switch.png" alt="" />
- </div>
- </div>
- <div id="c" class="login-user-name"></div>
-
- <h2>
- 账号密码登录
- </h2>
- <div class="login-form login-box-form">
- <div class="login-write">
- <p class="login-user">
- <i class="iconfont spaceicon icon-username"></i>
- <input type="text" id="uname" name="uname" autocomplete="off" value=""
- placeholder="用户名" />
- </p>
- <p class="login-password">
- <i class="iconfont spaceicon icon-password2"></i>
- <input type="password" id="upwd" name="upwd" autocomplete="off" value=""
- placeholder="密 码" readonly onfocus="this.removeAttribute('readonly');" />
- </p>
- </div>
- <div class="login-warn"></div>
- <input class="submit" type="button" value="登 录" />
- </div>
- </div>
- <!-- 扫码登录 -->
- <div class="login-QRcode login-item">
- <!-- 右上角图标 -->
- <div class="login-icon">
- <img src="/apps/space/images/pc-icon.png" alt="">
- </div>
- <h2>
- 打开微信扫一扫登录
- </h2>
- <div class="login-form login-box-form">
- <div id="qrcode"></div>
- <div class="login-states states-succeed">
- <i class="spaceicon icon-succeed"></i>
- <div>扫码成功</div>
- </div>
- <div class="login-states states-failed">
- <i class="spaceicon icon-failed2" style="color: #F56C6C;"></i>
- <div>二维码过期</div>
- <input class="refresh" type="button" value="刷 新" onclick="qrcodeLogin()"/>
- </div>
- <div class="login-states states-cancel">
- <i class="spaceicon icon-failed2" style="color: #F56C6C;"></i>
- <div>已取消登录</div>
- <input class="refresh" type="button" value="刷 新" onclick="qrcodeLogin()"/>
- </div>
- </div>
-
- </div>
-
- <div id="verify" style="animation-duration: 500ms"></div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script src="/js/space.login.js?v=20261109-login-2" type="text/javascript" charset="utf-8"></script>
- <script src="/js/Sprite.js" type="text/javascript" charset="utf-8"></script>
- <script src="/js/jquery.qrcode.min.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- $("#space-content").removeAttr("v-cloak").show();
- if (window.top != window.self) {
- top.location.href = "/console";
- }
- // 扫码切换
- $(function () {
-
- $(".login-icon").on("click", function () {
- $(".login-item").hide();
- $(this).parent().siblings(".login-item").show();
- qrcodeLogin();
- })
- })
- </script>
- <script>
- var msg = "${msg}";
- if (msg.length != 0) {
- $(".login-warn").html(msg);
- }
- </script>
- <script type="text/javascript">
- document.onkeydown = function (e) { // 回车提交表单
- // 兼容FF和IE和Opera
- var theEvent = window.event || e;
- var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
- if (code == 13) {
- $(".submit").click();
- }
- }
- </script>
- <script type="text/javascript">
- var verifyQrcode = undefined;
- var winInterval = undefined;
- var qrcodeFlag = true;
- var loginUrl = '<app:token name='sys.login' />';
- function qrcodeLogin() {
- if (winInterval == undefined) {
- $(".states-failed").hide();
- $(".states-succeed").hide();
- $(".states-cancel").hide();
- space.utils.ajax({
- url: '<app:token name='sys.wechat_scan_qrcode' />',
- dataType: 'json',
- loadLayer: false,
- callback: function (data) {
- if (data.code == 'success') {
- verifyQrcode = data.data;
- qrcode(verifyQrcode);
- }
- }
- });
- return;
- }
- else {
- window.clearInterval(winInterval);
- winInterval = undefined;
- }
- }
- function qrcode(verifyQrcode) {
- var uri = '<app:token name='sys.wechat_scan_url' page='10167' />';
- jQuery(function () {
- if (qrcodeFlag) {
- $('#qrcode').html('');
- jQuery('#qrcode').qrcode(window.location.protocol + "//" + window.location.hostname + uri + "&loginToken=" + verifyQrcode.loginToken);
- qrcodeFlag = false;
- }
- })
- winInterval = setInterval(function () {
- // 是否可登录
- $.ajax({
- type: "post",
- url: '<app:token name='sys.verify_qrcode' />',
- data: verifyQrcode,
- async: true,
- cache: false,
- dataType: 'json',
- success: function (data) {
- if (data.code == 'success') {
- var tmpData = data.data;
- if (tmpData.code == 10004) {
- window.clearInterval(winInterval);
- winInterval = undefined;
- qrcodeFlag = true;
- $(".states-failed").show();
- }
- else if (tmpData.code == 10001) {
- $(".states-failed").hide();
- $(".states-succeed").show();
- }
- else if (tmpData.code == 10002) {
- window.clearInterval(winInterval);
- winInterval = undefined;
- qrcodeFlag = true;
- $(".states-failed").hide();
- $(".states-succeed").hide();
- $(".states-cancel").show();
- }
- else if (tmpData.code == 10006) {
- top.location.href = "/apps/workbench/";
- }
- }
- }
- });
- }, 3000);
- }
- </script>
- <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
- <script type="text/javascript">space.vars.pageHashCode = "0stYP0tb3FG5Za5VXua8pQ==";</script>
- <script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
- </html>
|