28 lines
581 B
HTML
28 lines
581 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>微信登录</title>
|
|
<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.status != 0) {
|
|
alert(res.result.msg)
|
|
return
|
|
}
|
|
|
|
localStorage.setItem("token", res.result.token)
|
|
if (res.result.type == 0) {
|
|
H.upUrl("wx/");
|
|
} else {
|
|
H.upUrl("wx/#/companyone");
|
|
}
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|