| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | <!DOCTYPE html><html class="remModel"><head>    <meta charset="UTF-8">    <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8">    <meta http-equiv="Cache-Control" content="no-cache,no-store,must-revalidate">    <meta http-equiv="pragma" content="no-cache">    <meta http-equiv="expires" content="0">    <meta name="format-detection" content="telephone=no,email=no">    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">    <title></title>    <style>        html {            width: 100%;            height: 100%;        }        body {            width: 100%;            height: 100%;            margin: 0;            color: #fff;            background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);        }        a {            position: fixed;            top: 50%;            left: 50%;            transform: translateX(-50%) translateY(-50%);            color: #fff;            text-decoration: none;            border: 1px solid #fff;            line-height: 40px;            border-radius: 20px;            padding: 0 20px;            white-space: nowrap;        }    </style></head><body class=""><a href="javascript:goPage()" id="btn">    请稍候...</a><script>    // 此页面尽量不引入任何css和js,加快反应速度    function getQueryString(name) {        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");        var r = window.location.search.substr(1).match(reg);        if (r != null)            return decodeURI(r[2]);        return null;    }    var userPageRedirect = getQueryString("userPageRedirect");//步骤1,前台的原页面    var serverRedirect = location.pathname + location.hash;// 步骤2,后台鉴权完成后先跳到本页面    var btn = document.getElementById('btn');    // 前台先跳到本页面进行鉴权,因为IOS 在VUE鉴权太慢    if (userPageRedirect) {        btn.innerHTML = '微信正在鉴权,请稍候'        sessionStorage.setItem("USER_PAGE_REDIRECT", userPageRedirect);        location.href = "/user/moniUserAccess?redirect=" + serverRedirect;    } else {        btn.innerHTML = '√ 鉴权完成,点击跳转 ☜'        goPage()    }    function goPage() {        // 后台鉴权后再跳到次页面,然后根据本地缓存的地址进行跳转,本次会话有效        var userPageRedirectSaved = sessionStorage.getItem("USER_PAGE_REDIRECT");        if (userPageRedirectSaved) {            location.href = decodeURIComponent(userPageRedirectSaved);        } else {            alert('目标页面未找到,您可以从公众号重新进入,或是直接扫码使用设备')        }    }</script></body></html>
 |