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

测试微信移动端登录

... ... @@ -43,16 +43,21 @@
</div>
<div class="index_tenth_seconds">
<div class="index_tenth_second">
<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">
<form action="https://open.weixin.qq.com/connect/oauth2/authorize" method="GET" id="wx_mobile_form">
<div class="index_tenth_second_one">
<div class="index_tenth_second_img">
<div class="index_tenth_second_img" id="wx_mobile_login">
<img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
</div>
<div class="index_tenth_second_title">
微信登录
</div>
<input type="hidden" name="appid" value="wx3f1a38ee1e74f2bc">
<input type="hidden" name="redirect_uri" value="http://www.starplanet.cn/portal/login/wx_login_mobile">
<input type="hidden" name="response_type" value="code">
<input type="hidden" name="scope" value="snsapi_userinfo">
<input type="hidden" name="state" value="STATE#wechat_redirect">
</div>
</a>
</form>
<form action="https://api.weibo.com/oauth2/authorize" method="POST" id="wb_form">
<div class="index_tenth_second_one">
... ...
... ... @@ -266,10 +266,10 @@ $(function() {
$('#wb_form').submit();
});
//微信登录(暂时无用)
// $('#wx_login').click(function(){
// window.location.href = '/portal/login/wx_login_mobile';
// });
//微信移动端登录
$('#wx_mobile_login').click(function(){
$('#wx_mobile_form').submit();
});
//微信分享
$('#wx_share,#wx_share_video').click(function(){
... ...