1007810538_edit.jsp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <html>
  2. <head>
  3. <style>
  4. /* .body {
  5. background: url(/apps/space/images/login/bgs/universe.wiki.jpg) no-repeat center;
  6. background-size: cover;
  7. } */
  8. .content-wrap {
  9. width: 86%;
  10. margin: 0 auto;
  11. }
  12. .logo {
  13. text-align: center;
  14. margin: 13% 0;
  15. }
  16. #wxLoginLoading {
  17. width: 100%;
  18. min-height: 300px;
  19. text-align: center;
  20. margin-top: 20%;
  21. }
  22. #wxLoginLoading .icon-houqin {
  23. font-size: 52px;
  24. color: #fff;
  25. padding: 12px;
  26. background-color: rgb(25, 137, 250);
  27. box-shadow: 1px 1px 6px #999;
  28. border-radius: 50%;
  29. }
  30. .title {
  31. margin-top: 20px;
  32. font-size: 26px;
  33. line-height: 60px;
  34. font-weight: 400;
  35. }
  36. .desc {
  37. color: red;
  38. margin-top: 20px;
  39. }
  40. </style>
  41. <title>登录 - ${curWebSiteObj.seoTitle}</title>
  42. </head>
  43. <body class="body" style="background-color: #fff;">
  44. <div id="space-content" v-cloak>
  45. <div class="content-wrap">
  46. <div id="wxLoginLoading">
  47. <c:if test="${appcode != 'null'}">
  48. <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
  49. </c:if>
  50. <c:if test="${appcode == 'null'}">
  51. <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
  52. </c:if>
  53. <h2 class="title">${curWebSiteObj.name}</h2>
  54. <div v-if="appcode == 'fail'" style="text-align: center;margin-top: 52px;">
  55. <img src="/apps/space/images/mobile/wiki/no-account.png" alt="" style="width: 200px;">
  56. <p class="desc">{{msg}}</p>
  57. </div>
  58. <div v-if="appcode == 'null'" style="margin-top: 100px;font-size: 26px;color: #999;">
  59. <van-loading color="#1989fa"></van-loading>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. space.vue = new Vue({
  66. el: space.appContent,
  67. data: function () {
  68. return {
  69. msg: '${msg}',
  70. appcode: "${appcode}",
  71. }
  72. },
  73. created: function () {
  74. // 未在微信打开
  75. var ua = navigator.userAgent.toLowerCase();
  76. if (ua.match(/MicroMessenger/i) != "micromessenger") {
  77. space.message.warning("请在微信内打开此页");
  78. return;
  79. }
  80. this.initSID();
  81. // 登录成功
  82. if (this.appcode == 'success') {
  83. location.href = '/apps/workbench/?errpage=toLogin';
  84. }
  85. // 未授权
  86. else if (this.appcode == 'null') {
  87. var url = encodeURIComponent("${host}");
  88. location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=' + url + '&response_type=code&scope=snsapi_base#wechat_redirect';
  89. }
  90. },
  91. methods: {
  92. initSID: function () {
  93. var sid = '${sid}';
  94. if (space.utils.notNull(sid)) {
  95. space.localStorage.setItem("wxMsgJumpSID", sid);
  96. }
  97. }
  98. }
  99. })
  100. </script>
  101. </body>
  102. </html>