noauthorize.html 3.09 KB
<!DOCTYPE html >
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>授权失败</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}"/>
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="email=no"/>
    <meta name="format-detection" content="address=no;">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <script type="text/javascript" src="https://mshop-lib.yolipai.net/public/js/jquery-1.10.2.min.js"></script>
    <style type="text/css">
        *{margin: 0; padding: 0}
        .ware {
            position: relative;
        }
        .ware img {
            max-width: 100%;
        }
        .noaubg {
            position: absolute;
            left: 50%;
            top: 15%;
            width: 320px;
            margin-left: -160px;
            text-align: center;
        }
        .noaubg img{
            width: 50%;
            margin:auto;
        }
        .footfonts{
            font-size: 22px; color: #fff;margin-top: 15px;
        }
        @media (max-width: 520px) {
            .noaubg {
                top: 10%;
            }
            .noaubg img{
                width: 30%;
            }
            .footfonts{
                font-size: 17px;
            }
        }
    </style>
</head>
<body>
<div class="ware">
    <img src="https://mshop-lib.yolipai.net/public/images/noau.jpg" alt="">
    <div class="noaubg">
        <img src="https://mshop-lib.yolipai.net/public/images/noceclose.png" alt="">
        <div class="footfonts">请商家检查微信公众号APPSecret配置是否有误</div>
    </div>
</div>
</body>
</html>
<script>
    var geter=getQueryString("er");
    var getstoid=getQueryString("stoid");
    switch (geter)
    {
        case "-1":
            $(".footfonts").html("微信公众号系统繁忙,<span id='dot_reset'>请点击稍候再试</span>");
            break;
        case "40003":
            $(".footfonts").html("不合法的微信用户,请确认是否有关注该公众号,已关注,<span id='dot_reset'>请点击稍候再试</span>");
            break;
        default:
            $(".footfonts").html("请商家检查微信公众号APPSecret配置是否有误,返回错误码["+geter+"],<span id='dot_reset'>请点击稍候再试</span>");
            break;
    }
    //获取当前utl的参数
    //name表示参数名称
    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;
    }
    $("#dot_reset").click(function () {
        if (getstoid!=null)
        {
            location.href="/mobile/index/index/stoid/"+getstoid;
        }
    })
</script>