<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="wx_login_container"></div>
</body>
</html>
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/jquery.min.js"></script>
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script>
$(document).ready(function () {
var obj = new WxLogin({
self_redirect: true,
id: "wx_login_container",
appid: "wxf513b200b000a474",
scope: "snsapi_login,snsapi_userinfo",
redirect_uri: '<?php echo $name?>',
state: "123",
style: "black",
href: "",
});
});
</script>