1007810538_run.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
  4. <% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
  5. <!DOCTYPE html >
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <link rel="stylesheet" href="/apps/space/css/SpaceIcon/iconfont.css">
  12. <link rel="stylesheet" href="/css/mobile.animate.css">
  13. <link rel="stylesheet" href="/css/ckeditor.css">
  14. <link rel="stylesheet" href="/apps/space/plug-in/mescroll/dist/mescroll.min.css">
  15. <link rel="stylesheet" href="/apps/space/plug-in/vant/index.css">
  16. <link rel="stylesheet" href="/apps/space/plug-in/mobileSelect/css/mobileSelect.css">
  17. <link rel="stylesheet" href="/css/mobile.style.css">
  18. <script>var space = { vars: {} };</script>
  19. <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
  20. <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script>
  21. <script src="/apps/space/plug-in/vant/vant.min.js" type="text/javascript" charset="utf-8"></script>
  22. <script src="/apps/space/plug-in/dayjs/dayjs.min.js" type="text/javascript" charset="utf-8"></script>
  23. <script src="/apps/space/plug-in/mescroll/dist/mescroll.js"></script>
  24. <script src="/apps/space/plug-in/layer-v3.1.1/layer.js"></script>
  25. <script src="/apps/space/plug-in/mobileSelect/js/mobileSelect.js"></script>
  26. <script src="/js/space.mobile.core.js" type="text/javascript" charset="utf-8"></script>
  27. <script src="/js/space.vue.subassembly.js" type="text/javascript" charset="utf-8"></script>
  28. <script src="/js/space.mobile.recycle.js" type="text/javascript" charset="utf-8"></script>
  29. <style>
  30. /* .body {
  31. background: url(/apps/space/images/login/bgs/universe.wiki.jpg) no-repeat center;
  32. background-size: cover;
  33. } */
  34. .content-wrap {
  35. width: 86%;
  36. margin: 0 auto;
  37. }
  38. .logo {
  39. text-align: center;
  40. margin: 13% 0;
  41. }
  42. #wxLoginLoading {
  43. width: 100%;
  44. min-height: 300px;
  45. text-align: center;
  46. margin-top: 20%;
  47. }
  48. #wxLoginLoading .icon-houqin {
  49. font-size: 52px;
  50. color: #fff;
  51. padding: 12px;
  52. background-color: rgb(25, 137, 250);
  53. box-shadow: 1px 1px 6px #999;
  54. border-radius: 50%;
  55. }
  56. .title {
  57. margin-top: 20px;
  58. font-size: 26px;
  59. line-height: 60px;
  60. font-weight: 400;
  61. }
  62. .desc {
  63. color: red;
  64. margin-top: 20px;
  65. }
  66. </style>
  67. <title>登录 - ${curWebSiteObj.seoTitle}</title>
  68. </head>
  69. <body class="body" style="background-color: #fff;">
  70. <div v-cloak id="space-content" v-cloak>
  71. <div class="content-wrap">
  72. <div id="wxLoginLoading">
  73. <c:if test="${appcode != 'null'}">
  74. <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
  75. </c:if>
  76. <c:if test="${appcode == 'null'}">
  77. <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
  78. </c:if>
  79. <h2 class="title">${curWebSiteObj.name}</h2>
  80. <div v-if="appcode == 'fail'" style="text-align: center;margin-top: 52px;">
  81. <img src="/apps/space/images/mobile/wiki/no-account.png" alt="" style="width: 200px;">
  82. <p class="desc">{{msg}}</p>
  83. </div>
  84. <div v-if="appcode == 'null'" style="margin-top: 100px;font-size: 26px;color: #999;">
  85. <van-loading color="#1989fa"></van-loading>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script type="text/javascript">
  91. space.vue = new Vue({
  92. el: space.appContent,
  93. data: function () {
  94. return {
  95. msg: '${msg}',
  96. appcode: "${appcode}",
  97. }
  98. },
  99. created: function () {
  100. // 未在微信打开
  101. var ua = navigator.userAgent.toLowerCase();
  102. if (ua.match(/MicroMessenger/i) != "micromessenger") {
  103. space.message.warning("请在微信内打开此页");
  104. return;
  105. }
  106. this.initSID();
  107. // 登录成功
  108. if (this.appcode == 'success') {
  109. location.href = '/apps/workbench/?errpage=toLogin';
  110. }
  111. // 未授权
  112. else if (this.appcode == 'null') {
  113. var url = encodeURIComponent("${host}");
  114. location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=' + url + '&response_type=code&scope=snsapi_base#wechat_redirect';
  115. }
  116. },
  117. methods: {
  118. initSID: function () {
  119. var sid = '${sid}';
  120. if (space.utils.notNull(sid)) {
  121. space.localStorage.setItem("wxMsgJumpSID", sid);
  122. }
  123. }
  124. }
  125. })
  126. </script>
  127. </body>
  128. <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
  129. <script type="text/javascript">space.vars.pageHashCode = "lcvh4fH6PYzVu879ilkZHw==";</script>
  130. <script type="text/javascript">removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
  131. </html>