hotime/example/tpt/wx/code.html
2022-02-24 06:26:36 +08:00

26 lines
536 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.statu==0){
if(res.result==0){
H.upUrl("wx/index.html");
}else {
H.upUrl("wx/register.html");
}
return;
}
alert(res.result.type)
})
</script>
</body>
</html>