|
@@ -15,6 +15,7 @@
|
|
|
</div>
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
|
|
<script>
|
|
|
+
|
|
|
//获取用户信息
|
|
|
var jionData = {
|
|
|
"code": GetQueryString('code')
|
|
@@ -27,8 +28,8 @@
|
|
|
data: jionData,
|
|
|
success: function (userData) {
|
|
|
//alert(JSON.stringify(userData.data))
|
|
|
- $('.btn').show();
|
|
|
- localStorage.setItem('userData', JSON.stringify(userData.data));
|
|
|
+ //$('.btn').show();
|
|
|
+ //localStorage.setItem('userData', JSON.stringify(userData.data));
|
|
|
},
|
|
|
error: function (e) {
|
|
|
//alert(JSON.stringify(e))
|
|
@@ -36,7 +37,8 @@
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- window.location = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx75a6f8d1b4a850d7&redirect_uri=https%3A%2F%2Factivity.lingjiao.cn%2Fanswer%2Findex.html&response_type=code&scope=snsapi_userinfo&state=12345#wechat_redirect';
|
|
|
+ $('.btn').show();
|
|
|
+ //window.location = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx75a6f8d1b4a850d7&redirect_uri=https%3A%2F%2Factivity.lingjiao.cn%2Fanswer%2Findex.html&response_type=code&scope=snsapi_userinfo&state=12345#wechat_redirect';
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|