人人商城

account.html 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <a href="javascript:;">关键指标详解</a>
  22. <a href="javascript:;" class="active">所有公众号流量访问值</a>
  23. </div>
  24. <div class="panel-body data-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>
  39. <script>
  40. require(['daterangepicker'], function() {
  41. angular.module('statisticsApp').value('config', {
  42. 'links': {
  43. 'accountApi': "{php echo url('statistics/account/get_account_api')}",
  44. },
  45. });
  46. angular.bootstrap($('#js-system-account-analysis'), ['statisticsApp']);
  47. })
  48. </script>
  49. {template 'common/footer'}