看起来像歌剧迷你打开弹出窗口(因为移动浏览器作为新标签)。我的建议是不要在移动设备的情况下打开新窗口。按照步骤解决此问题
1.将此模板添加到您的页面
<script id="loginradiuscustom_tmpl_mobile" type="text/html"><div class="<%=Name%>">
<a class="anchor_<%=Name%>" href="javascript:void()" onclick="window.location.href = '<%=Endpoint%>&same_window=1&callback=<%=createCurrentRoute(window.location.href)%>'">
<span class="icon-image-<%=Name%>" ></span>
<span class="<%=Name%>-text">Continue with <%=Name%></span>
</a>
</div></script>
2.添加此方法检测移动设备
function detectmob() {
if( navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
){
return true;
}
else {
return false;
}
}
3.替换以下行
options.templatename = "loginradiuscustom_tmpl";
和
if(detectmob()){
options.templatename = "loginradiuscustom_tmpl_mobile";
}else{
options.templatename = "loginradiuscustom_tmpl";
}