Skip to content

Commit

Permalink
优化主页显示
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 2, 2015
1 parent 1786463 commit 5941b70
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 27 deletions.
4 changes: 3 additions & 1 deletion app/views/combinationgame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</li>
<% end %>

<%if @user%>
<% content_for :script do %>
$(".reccheck").blur(function(){
var coinitems = document.getElementsByClassName("reccheck");
Expand Down Expand Up @@ -257,4 +258,5 @@ function xprint() {
</tbody>
</table>
</div>
</div>
</div>
<%end%>
4 changes: 3 additions & 1 deletion app/views/doublegame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</li>
<% end %>

<%if @user%>
<% content_for :script do %>
$(document).ready(
function(){
Expand Down Expand Up @@ -291,4 +292,5 @@ function xprint() {
</tbody>
</table>
</div>
</div>
</div>
<%end%>
2 changes: 2 additions & 0 deletions app/views/flashview/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</li>
<% end %>

<%if @user%>
<% content_for :script do %>
var nextgameid = "";
var nextseconds = 0;
Expand Down Expand Up @@ -151,3 +152,4 @@ $(document).ready(
</p>
<p id="resultp"></p>
</div>
<%end%>
4 changes: 3 additions & 1 deletion app/views/singlegame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</li>
<% end %>

<%if @user%>
<% content_for :script do %>
$(document).ready(
function(){
Expand Down Expand Up @@ -338,4 +339,5 @@ function xprint() {
</tbody>
</table>
</div>
</div>
</div>
<%end%>
50 changes: 26 additions & 24 deletions app/views/traceresult/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
<% content_for :menus do %>
<li data-tag="idx">
<%= link_to '幸运九宫格', controller: 'main', action: 'index' %>
</li>
<li data-tag="kj">
<%= link_to '历史开奖号码', controller: 'mainhistory', action: 'index' %>
</li>
<li data-tag="zhl">
<%= link_to '单选盘', controller: 'singlegame', action: 'index' %>
</li>
<li data-tag="dshl">
<%= link_to '组合盘', controller: 'combinationgame', action: 'index' %>
</li>
<li data-tag="sxpl">
<%= link_to '双面盘', controller: 'doublegame', action: 'index' %>
</li>
<li data-tag="kjs">
<%= link_to '九宫格开奖直播', controller: 'flashview', action: 'index' %>
</li>
<li class=hover data-tag="mfc">
<%= link_to '游戏记录', controller: 'traceresult', action: 'index' %>
</li>
<% end %>

<%if @user%>
<% content_for :script do %>
$(document).ready(
function(){
Expand All @@ -24,30 +49,6 @@ $(document).ready(
}
<% end %>

<% content_for :menus do %>
<li data-tag="idx">
<%= link_to '幸运九宫格', controller: 'main', action: 'index' %>
</li>
<li data-tag="kj">
<%= link_to '历史开奖号码', controller: 'mainhistory', action: 'index' %>
</li>
<li data-tag="zhl">
<%= link_to '单选盘', controller: 'singlegame', action: 'index' %>
</li>
<li data-tag="dshl">
<%= link_to '组合盘', controller: 'combinationgame', action: 'index' %>
</li>
<li data-tag="sxpl">
<%= link_to '双面盘', controller: 'doublegame', action: 'index' %>
</li>
<li data-tag="kjs">
<%= link_to '九宫格开奖直播', controller: 'flashview', action: 'index' %>
</li>
<li class=hover data-tag="mfc">
<%= link_to '游戏记录', controller: 'traceresult', action: 'index' %>
</li>
<% end %>

<table class="lot-table" id="history">
<tr class="head">
<td style="width: 60px; text-align: center;">
Expand Down Expand Up @@ -129,6 +130,7 @@ $(document).ready(
<% end %>
<% end %>
</table>
<%end%>
<div class="lot-about mt10" style="width: 980px;">
<div class="l-title">
<h2>
Expand Down

0 comments on commit 5941b70

Please sign in to comment.