政企超链接开始集成

This commit is contained in:
hoteas
2022-02-28 08:53:38 +08:00
parent 2a98f0dcad
commit 42f91d57ff
8 changed files with 158 additions and 58 deletions
+14 -12
View File
@@ -3,23 +3,25 @@
<head>
<meta charset="UTF-8">
<title>微信登录</title>
<script type="text/javascript" src="js/hotime.js" ></script>
<script type="text/javascript" src="js/hotime.js"></script>
</head>
<body>
<script>
H.post("app/wechat/code",{"code":H.getParam("code")},function (res) {
if(res.statu==0){
if(res.result==0){
H.upUrl("wx/index.html");
}else {
H.upUrl("wx/register.html");
}
return;
H.post("app/wechat/code", {"code": H.getParam("code")}, function (res) {
if (res.status != 0) {
alert(res.result.msg)
return
}
alert(res.result.type)
localStorage.setItem("token", res.result.token)
if (res.result.type == 0) {
H.upUrl("wx/");
} else {
H.upUrl("wx/#/companyone");
}
})
</script>
</body>
</html>