Commit 0f2ceee7 by libai

测试

parent 54e73360
......@@ -75,7 +75,15 @@
uid:localStorage.uid
},
success:function(data){
window.location.href='index.html'
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
window.location.href='mTest/index.html'
} else if (/android/.test(ua)) {
window.location.href='mTest/index.html'
}else{
window.location.href='index.html'
}
}
})
......
......@@ -261,7 +261,7 @@
<div class="login-line"></div>
<div class="login-line-text">其他方式登入</div>
<ul class="login-more-btn">
<li><img src="images/d2.png" alt=""></li>
<li class="line_btn"><img src="images/d2.png" alt=""></li>
<li class="facebook_btn"><img src="images/d3.png" alt=""></li>
<li class="twitter_btn"><img src="images/d4.png" alt=""></li>
</ul>
......
......@@ -712,4 +712,23 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数
// window.location.href = ;
}, log);
}
$(".line_btn").on("click",function(){
lineLog()
setInterval(function(){
if(localStorage.uid!=undefined){
window.location.reload()
}
},1000)
})
function lineLog() {
var client_id = '1654468829';
var redirect_uri ='https://www.footseen.xyz/lineBack.html';
var link = 'https://access.line.me/oauth2/v2.1/authorize?';
link += 'response_type=code';
link += '&client_id=' + client_id;
link += '&redirect_uri=' + redirect_uri;
link += '&state=login';
link += '&scope=openid%20profile';
window.location.href = link;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment