政企超链接开始集成
This commit is contained in:
+14
-12
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user