noauthorize.html
3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!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>