hotime/example/tpt/wx/wx.html

26 lines
651 B
HTML
Raw Normal View History

2022-03-03 13:23:57 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试</title>
<script type="text/javascript" src="js/hotime.js"></script>
</head>
<body>
<script>
2022-03-06 15:55:14 +00:00
function run() {
var data={"code":H.getParam("code")}
if(data.code==null){
location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri='+location.href+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
return
}
2022-03-03 13:23:57 +00:00
2022-03-06 15:55:14 +00:00
H.post("app/wechat/code", data, function (res) {
H.upUrl("/wx/");
})
}
run()
2022-03-03 13:23:57 +00:00
</script>
</body>
</html>