app-account.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {template 'common/header'}
  2. <ul class="we7-page-tab">
  3. <li><a href="{url 'statistics/account'}">所有公众号流量统计</a></li>
  4. <li class="active"><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_module_api['visit_sum']}</span>
  14. <span class="yesterday">/ {$yesterday_module_api['visit_sum']}</span>
  15. </div>
  16. </div>
  17. <div class="col-sm-4 text-center">
  18. <div class="title">公众号平均访问数</div>
  19. <div>
  20. <span class="today">{$today_module_api['visit_avg']}</span>
  21. <span class="yesterday">/ {$yesterday_module_api['visit_avg']}</span>
  22. </div>
  23. </div>
  24. <div class="col-sm-4 text-center">
  25. <div class="title">公众号最高访问数</div>
  26. <div>
  27. <span class="today">{$today_module_api['visit_highest']}</span>
  28. <span class="yesterday">/ {$yesterday_module_api['visit_highest']}</span>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="panel we7-panel" id="js-system-account-app-analysis" ng-controller="systemAccountAppAnalysisCtrl" ng-cloak>
  34. <div class="panel-heading tab">
  35. <span class="we7-margin">关键指标详解</span>
  36. <a href="javascript:;" ng-class="{'active': divideType == 'bysum'}" ng-click="changeDivideType('bysum')">公众号总访问数</a>
  37. <a href="javascript:;" ng-class="{'active': divideType == 'byavg'}" ng-click="changeDivideType('byavg')">公众号平均访问数</a>
  38. <a href="javascript:;" ng-class="{'active': divideType == 'byhighest'}" ng-click="changeDivideType('byhighest')">公众号最高访问数</a>
  39. </div>
  40. <div class="panel-body data-view">
  41. <div class="tab-bar-time clearfrix">
  42. <span class="we7-margin-right">时间</span>
  43. <div class="btn-group" role="group">
  44. <button type="button" class="btn btn-default" ng-class="{'active': timeType == 'week'}" ng-click="getAccountApi('week')">周统计</button>
  45. <button type="button" class="btn btn-default" ng-class="{'active': timeType == 'month'}" ng-click="getAccountApi('month')">月统计</button>
  46. <div class="btn-group" role="group" ng-class="{'active': timeType == 'daterange'}">
  47. <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>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="col-sm-12" id="chart-line" style="height:500px"></div>
  52. </div>
  53. </div>
  54. </div>
  55. <script>
  56. require(['daterangepicker'], function() {
  57. angular.module('statisticsApp').value('config', {
  58. 'links': {
  59. 'accountApi': "{php echo url('statistics/account/get_account_app_api')}",
  60. },
  61. });
  62. angular.bootstrap($('#js-system-account-app-analysis'), ['statisticsApp']);
  63. })
  64. </script>
  65. {template 'common/footer'}