You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
649 B
20 lines
649 B
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Title</title>
|
|
</head>
|
|
<body>
|
|
<input type="button" value="WeiXin" onclick="printCode();">
|
|
<script>
|
|
function printCode() {
|
|
var redirect_uri = "http://zh.hayouzhuan.org.cn/baseService/html/huanghai.html";
|
|
var appid = "wx4628eaa32a22c666";
|
|
var state = "STATE";
|
|
var getCodeUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appid + "&redirect_uri=" + redirect_uri + "&response_type=code&scope=snsapi_userinfo&state=" + state + "#wechat_redirect";
|
|
window.location.href = getCodeUrl;
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |