作者 景龙
1 个管道 的构建 通过 耗费 0 秒

测试微信移动端登录

@@ -43,16 +43,21 @@ @@ -43,16 +43,21 @@
43 </div> 43 </div>
44 <div class="index_tenth_seconds"> 44 <div class="index_tenth_seconds">
45 <div class="index_tenth_second"> 45 <div class="index_tenth_second">
46 - <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3f1a38ee1e74f2bc&redirect_uri=http://www.starplanet.cn/portal/login/wx_login_mobile&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"> 46 + <form action="https://open.weixin.qq.com/connect/oauth2/authorize" method="GET" id="wx_mobile_form">
47 <div class="index_tenth_second_one"> 47 <div class="index_tenth_second_one">
48 - <div class="index_tenth_second_img"> 48 + <div class="index_tenth_second_img" id="wx_mobile_login">
49 <img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" /> 49 <img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
50 </div> 50 </div>
51 <div class="index_tenth_second_title"> 51 <div class="index_tenth_second_title">
52 微信登录 52 微信登录
53 </div> 53 </div>
  54 + <input type="hidden" name="appid" value="wx3f1a38ee1e74f2bc">
  55 + <input type="hidden" name="redirect_uri" value="http://www.starplanet.cn/portal/login/wx_login_mobile">
  56 + <input type="hidden" name="response_type" value="code">
  57 + <input type="hidden" name="scope" value="snsapi_userinfo">
  58 + <input type="hidden" name="state" value="STATE#wechat_redirect">
54 </div> 59 </div>
55 - </a> 60 + </form>
56 61
57 <form action="https://api.weibo.com/oauth2/authorize" method="POST" id="wb_form"> 62 <form action="https://api.weibo.com/oauth2/authorize" method="POST" id="wb_form">
58 <div class="index_tenth_second_one"> 63 <div class="index_tenth_second_one">
@@ -266,10 +266,10 @@ $(function() { @@ -266,10 +266,10 @@ $(function() {
266 $('#wb_form').submit(); 266 $('#wb_form').submit();
267 }); 267 });
268 268
269 - //微信登录(暂时无用)  
270 - // $('#wx_login').click(function(){  
271 - // window.location.href = '/portal/login/wx_login_mobile';  
272 - // }); 269 + //微信移动端登录
  270 + $('#wx_mobile_login').click(function(){
  271 + $('#wx_mobile_form').submit();
  272 + });
273 273
274 //微信分享 274 //微信分享
275 $('#wx_share,#wx_share_video').click(function(){ 275 $('#wx_share,#wx_share_video').click(function(){