项目活跃度的弹框

This commit is contained in:
cxt 2017-02-10 15:14:53 +08:00
parent 4a0310f88c
commit 8078bc9c15
1 changed files with 25 additions and 2 deletions

View File

@ -76,7 +76,7 @@
<td><%= member.board_message_num %></td>
<td class="pr">
<span><%= member.project_act_score %></span>
<div class="st_tips_box_inner undis" style="text-align:left;">
<div class="st_tips_box_inner undis" style="text-align:left; left: 90px;">
<em></em>
<span></span>
<p>发布资源数*5=<%= member.attach_num %>*5=<%= member.attach_num.to_i * 5 %><br/>
@ -105,4 +105,27 @@
<% else %>
<div class="icons_tishi"><img src="/images/sy/icons_smile.png" width="110" height="110" alt="" ></div>
<p class="sy_tab_con_p">没有数据可以显示!</p>
<% end %>
<% end %>
<script>
$(".muban_table tbody tr").each(function(){
$(this).mouseenter(function(){
$(".st_tips_box_inner").hide();
$(this).children().eq(7).children().eq(1).stop();
$(this).children().eq(7).children().eq(1).show();
});
$(this).mouseleave(function(){
$(this).children().eq(7).children().eq(1).delay(500).hide(0);
});
});
$(".st_tips_box_inner").each(function(){
$(this).mouseover(function(){
$(this).stop();
$(this).show();
});
$(this).mouseout(function(){
$(this).delay(500).hide(0);
});
});
</script>