account.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {template 'common/header'}
  2. <ul class="we7-page-tab">
  3. <li class="active"><a href="{url 'statistics/account'}">所有平台账号流量统计</a></li>
  4. <li><a href="{url 'statistics/account/app_display'}">所有平台账号app端访问统计</a></li>
  5. </ul>
  6. <div class="api">
  7. <div class="panel we7-panel api-target">
  8. <div class="panel-heading">今日/昨日关键指标</div>
  9. <div class="panel-body we7-padding-vertical">
  10. <div class="col-sm-4 text-center">
  11. <div class="title">整站流量总访问值</div>
  12. <div>
  13. <span class="today">{$today}</span>
  14. <span class="yesterday">/ {$yesterday}</span>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="panel we7-panel" id="js-system-account-analysis" ng-controller="systemAccountAnalysisCtrl" ng-cloak>
  20. <div class="panel-heading tab">
  21. <span class="we7-margin">关键指标详解</span>
  22. <a href="javascript:;" class="active">所有平台账号流量访问值</a>
  23. </div>
  24. <div class="panel-body Date-view">
  25. <div class="tab-bar-time clearfrix">
  26. <span class="we7-margin-right">时间</span>
  27. <div class="btn-group" role="group">
  28. <button type="button" class="btn btn-default" ng-class="{'active': timeType == 'week'}" ng-click="getAccountApi('week')">周统计</button>
  29. <button type="button" class="btn btn-default" ng-class="{'active': timeType == 'month'}" ng-click="getAccountApi('month')">月统计</button>
  30. <div class="btn-group" role="group" ng-class="{'active': timeType == 'daterange'}">
  31. <button class="btn btn-default daterange daterange-date" we7-date-range-picker ng-model="dateRange"><span>{{dateRange.startDate}} </span>至<span> {{dateRange.endDate}}</span> <i class="fa fa-calendar"></i></button>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="col-sm-12" id="chart-line" style="height:500px"></div>
  36. </div>
  37. </div>
  38. <div class="we7-margin-vertical color-dark font-lg">站内各平台账号访问量统计</div>
  39. <div class="panel we7-panel" id="js-system-account-visit" ng-controller="systemAccountVisit" ng-cloak>
  40. <div class="panel-heading tab">
  41. <a href="javascript:;">关键指标详解</a>
  42. </div>
  43. <div class="panel-body Date-view">
  44. <div class="tab-bar-time clearfrix">
  45. <span class="we7-margin-right">时间</span>
  46. <div class="btn-group" role="group">
  47. <button type="button" class="btn btn-default" ng-class="{'active': visitTimeType == 'today'}" ng-click="getAccountVisit('today')">今日统计</button>
  48. <button type="button" class="btn btn-default" ng-class="{'active': visitTimeType == 'week'}" ng-click="getAccountVisit('week')">周统计</button>
  49. <button type="button" class="btn btn-default" ng-class="{'active': visitTimeType == 'month'}" ng-click="getAccountVisit('month')">月统计</button>
  50. <div class="btn-group" role="group">
  51. <button class="btn btn-default daterange daterange-date" we7-date-range-picker ng-model="visitDateRange"><span ng-bind="visitDate.startDate"></span>至<span ng-bind="visitDate.endDate"> </span> <i class="fa fa-calendar"></i></button>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="api-percent-box">
  56. <table class="table we7-table">
  57. <col width="400px">
  58. <col width="200px">
  59. <col>
  60. <tr>
  61. <th>平台账号</th>
  62. <th>访问量</th>
  63. <th>占比</th>
  64. </tr>
  65. <tr ng-repeat="item in visitList">
  66. <td ng-bind="item.name"></td>
  67. <td ng-bind="item.total"></th>
  68. <td>
  69. <div class="percent-item" ng-style="{width: + (visitTotal > 0 ? item.total / visitTotal * 100 : 0) + '%'}"></div>
  70. </td>
  71. </tr>
  72. </table>
  73. </div>
  74. <div class="text-right">
  75. <div>
  76. <ul class="pagination pagination-centered">
  77. <li><a href="javascript:;" class="pager-nav" ng-click="changePage(1)">首页</a></li>
  78. <li><a href="javascript:;" class="pager-nav" ng-click="changePage(page - 1)" ng-show="page > 1">«上一页</a></li>
  79. <li ng-class="{active: item == page}" ng-repeat="item in pageArray"><a href="javascript:;" ng-bind="item" ng-click="changePage(item)"></a></li>
  80. <li><a href="javascript:;" class="pager-nav" ng-click="changePage(page + 1)">下一页»</a></li>
  81. <li><a href="javascript:;" class="pager-nav" ng-click="changePage(visitTotalPage)">尾页</a></li>
  82. </ul>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <script>
  89. require(['daterangepicker'], function() {
  90. angular.module('statisticsApp').value('config', {
  91. 'links': {
  92. 'accountApi': "{php echo url('statistics/account/get_account_api')}",
  93. 'accountVisit': "{php echo url('statistics/account/get_account_visit')}"
  94. },
  95. });
  96. angular.bootstrap($('#js-system-account-visit'), ['statisticsApp']);
  97. angular.bootstrap($('#js-system-account-analysis'), ['statisticsApp']);
  98. })
  99. </script>
  100. {template 'common/footer'}