Browse Source

Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu

5 years ago
parent
commit
0a28a02eaa

+ 15 - 14
.gitignore

@@ -1,14 +1,15 @@
-.idea/misc.xml
-.idea/modules.xml
-.idea/workspace.xml
-### Example user template template
-### Example user template
-
-# IntelliJ project files
-.idea
-*.iml
-out
-gen
-/.idea/misc.xml
-/.idea/modules.xml
-/.idea/workspace.xml
+.idea/misc.xml
+.idea/modules.xml
+.idea/workspace.xml
+### Example user template template
+### Example user template
+
+# IntelliJ project files
+.idea
+*.iml
+out
+gen
+/.idea/misc.xml
+/.idea/modules.xml
+/.idea/workspace.xml
+/.project

+ 1 - 0
.settings/.gitignore

@@ -0,0 +1 @@
+/org.eclipse.core.resources.prefs

+ 4 - 0
.settings/org.eclipse.m2e.core.prefs

@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

+ 3 - 2
cloud-socket/.settings/org.eclipse.core.resources.prefs

@@ -1,2 +1,3 @@
-eclipse.preferences.version=1
-encoding//src/com/tenpay=GBK
+eclipse.preferences.version=1
+encoding//WebContent/bind_weixin.jsp=UTF-8
+encoding//src/com/tenpay=GBK

+ 15 - 0
cloud-socket/WebContent/bind_weixin.jsp

@@ -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">