hotime/example/tpt/wx/code.html

26 lines
536 B
HTML
Raw Normal View History

2022-02-23 22:26:36 +00:00
<!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>