Browse Source

后台概览增加缓存,增加上周统计数据,百分号

pull/347/head
xxq250 2 years ago
parent
commit
90ea1804e9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      app/views/admins/dashboards/_baidu_tongji.html.erb

+ 4
- 4
app/views/admins/dashboards/_baidu_tongji.html.erb View File

@@ -21,10 +21,10 @@
<td><%= @pre_week_statistic.map(&:pv).sum %></td>
<td><%= @pre_week_statistic.map(&:visitor).sum %></td>
<td><%= @pre_week_statistic.map(&:ip).sum %></td>
<td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %></td>
<td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %></td>
<td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %></td>
<td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %></td>
<td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %>%</td>
<td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %>%</td>
<td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %>%</td>
<td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %>%</td>
</td>
</tr>
<% end %>


Loading…
Cancel
Save