组织回复点登录直接跳入登录界面

This commit is contained in:
yuanke 2016-06-15 17:01:53 +08:00
parent fd337913ee
commit a2d1b6d646
1 changed files with 2 additions and 11 deletions

View File

@ -1,13 +1,4 @@
<div class="visitor-box fontGrey2"> <div class="visitor-box fontGrey2">
<a href='javascript:void(0);' class='linkBlue' onclick='loginClick()'>登录</a>后可添加回复 <a href='<%= signin_url_without_domain %>' class='linkBlue' target='_Blank' >登录</a>后可添加回复
<%#= link_to "登录", signin_path, :class => "linkBlue", :target => "_blank" %> <%#= link_to "登录", signin_path, :class => "linkBlue", :target => "_blank" %>
</div> </div>
<script type="text/javascript">
function loginClick()
{
//获取登录页面地址
var signinPath = '<%= signin_url_without_domain %>';
var htmlvalue = "</br><div style='width:550px;text-align:center'>您还没有登录,请登录后再执行此操作,谢谢!</div></br><div style='width:164px; margin:0 auto; text-align:center'><a href="+signinPath+" class='Blue-btn fl' target='_Blank' onclick=' hideModal()' >登录</a><a href='javascript:void(0);' class='Blue-btn fl' onclick='hideModal()'>关闭</a></div>";
pop_up_box(htmlvalue,580,30,50);
}
</script>