51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
|
<title>绑定微信号</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
outline: 0;
|
|
}
|
|
|
|
#p {
|
|
margin: 10px 10px;
|
|
font-size: 18px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<p id="p">{{msg}}</p>
|
|
{% if code == 1 %}
|
|
<p>您已可接受微信通知</p>
|
|
<div id="mpdiv">
|
|
<p>可识别下方二维码打开小程序</p>
|
|
<img src="/static/safesite/mystatic/images/weixinmp.jpg" width="80%" height="80%"
|
|
style="margin-top:10px;text-align: center" />
|
|
</div>
|
|
{% endif %}
|
|
{% if code != 1 %}
|
|
<img src="/static/safesite/mystatic/images/ctcgzh.jpg" width="80%" height="80%"
|
|
style="margin-top:10px;text-align: center" />
|
|
|
|
{% endif %}
|
|
<script>
|
|
wx.miniProgram.getEnv(function(res) {
|
|
if(res.miniprogram){
|
|
document.getElementById("mpdiv").innerHTML = "<input onclick='back()' type='button' value='返回小程序'></input>"
|
|
}
|
|
})
|
|
function back(){
|
|
wx.miniProgram.reLaunch({url:'/pages/main/main'})
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |