2022-02-23 22:26:36 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>微信登录</title>
|
2022-02-28 00:53:38 +00:00
|
|
|
<script type="text/javascript" src="js/hotime.js"></script>
|
2022-02-23 22:26:36 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
2022-03-03 13:23:57 +00:00
|
|
|
function run() {
|
|
|
|
var data={"code":H.getParam("code"),"org_id":H.getParam("org_id")}
|
|
|
|
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'
|
2022-02-28 00:53:38 +00:00
|
|
|
return
|
2022-02-23 22:26:36 +00:00
|
|
|
}
|
|
|
|
|
2022-03-03 13:23:57 +00:00
|
|
|
H.post("app/wechat/code", data, function (res) {
|
|
|
|
|
|
|
|
if (res.status != 0) {
|
|
|
|
alert(res.result.type)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
H.upUrl("https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzg5MDczNDcwMw==#wechat_redirect");
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
run()
|
2022-02-23 22:26:36 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|