| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <html>
- <head>
- <style>
- /* .body {
- background: url(/apps/space/images/login/bgs/universe.wiki.jpg) no-repeat center;
- background-size: cover;
- } */
- .content-wrap {
- width: 86%;
- margin: 0 auto;
- }
- .logo {
- text-align: center;
- margin: 13% 0;
- }
- #wxLoginLoading {
- width: 100%;
- min-height: 300px;
- text-align: center;
- margin-top: 20%;
- }
- #wxLoginLoading .icon-houqin {
- font-size: 52px;
- color: #fff;
- padding: 12px;
- background-color: rgb(25, 137, 250);
- box-shadow: 1px 1px 6px #999;
- border-radius: 50%;
- }
- .title {
- margin-top: 20px;
- font-size: 26px;
- line-height: 60px;
- font-weight: 400;
- }
- .desc {
- color: red;
- margin-top: 20px;
- }
- </style>
- <title>登录 - ${curWebSiteObj.seoTitle}</title>
- </head>
- <body class="body" style="background-color: #fff;">
- <div id="space-content" v-cloak>
- <div class="content-wrap">
- <div id="wxLoginLoading">
- <c:if test="${appcode != 'null'}">
- <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
- </c:if>
- <c:if test="${appcode == 'null'}">
- <div class="animate__animated animate__bounceIn"><i class="spaceicon icon-houqin"></i></div>
- </c:if>
- <h2 class="title">${curWebSiteObj.name}</h2>
- <div v-if="appcode == 'fail'" style="text-align: center;margin-top: 52px;">
- <img src="/apps/space/images/mobile/wiki/no-account.png" alt="" style="width: 200px;">
- <p class="desc">{{msg}}</p>
- </div>
- <div v-if="appcode == 'null'" style="margin-top: 100px;font-size: 26px;color: #999;">
- <van-loading color="#1989fa"></van-loading>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data: function () {
- return {
- msg: '${msg}',
- appcode: "${appcode}",
- }
- },
- created: function () {
- // 未在微信打开
- var ua = navigator.userAgent.toLowerCase();
- if (ua.match(/MicroMessenger/i) != "micromessenger") {
- space.message.warning("请在微信内打开此页");
- return;
- }
- this.initSID();
- // 登录成功
- if (this.appcode == 'success') {
- location.href = '/apps/workbench/?errpage=toLogin';
- }
- // 未授权
- else if (this.appcode == 'null') {
- var url = encodeURIComponent("${host}");
- location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=' + url + '&response_type=code&scope=snsapi_base#wechat_redirect';
- }
- },
- methods: {
- initSID: function () {
- var sid = '${sid}';
- if (space.utils.notNull(sid)) {
- space.localStorage.setItem("wxMsgJumpSID", sid);
- }
- }
- }
- })
- </script>
- </body>
- </html>
|