|
@@ -6,6 +6,21 @@
|
|
|
<title>云模绑定微信</title>
|
|
|
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
|
|
|
<link rel="stylesheet" type="text/css" href="css/bind_weixin.css">
|
|
|
+<script>
|
|
|
+ $(function(){
|
|
|
+ login();
|
|
|
+ $(".confirm").click(function(){
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ function login(){
|
|
|
+ var url = "http://wx.yunsu.cn/JSKBT/getWeiXinOpenid.do";
|
|
|
+ var appId = "wx42c0f9d19a4756a7";
|
|
|
+ var weixinUrl="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+encodeURI(url)+"&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect";
|
|
|
+ console.log(weixinUrl);
|
|
|
+ window.location.href = weixinUrl;
|
|
|
+ }
|
|
|
+</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="main">
|