fans-display.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {template 'common/header'}
  2. <ul class="we7-page-tab">
  3. <li class="active">{$_W['account']['type_name']}用户数据统计</li>
  4. </ul>
  5. <div class="api" id="js-statistics-fans-display" ng-controller="FansStatisticeCtrl" ng-cloak>
  6. <div class="panel we7-panel api-target">
  7. <div class="panel-heading">今日/昨日关键指标</div>
  8. <div class="panel-body we7-padding-vertical">
  9. <div class="col-sm-4 text-center">
  10. <div class="title">新关注人数</div>
  11. <div>
  12. <span class="today">{$today_stat['new']}</span>
  13. <span class="yesterday">/ {$yesterday_stat['new']}</span>
  14. </div>
  15. </div>
  16. <div class="col-sm-4 text-center">
  17. <div class="title">取消关注人数</div>
  18. <div>
  19. <span class="today">{$today_stat['cancel']}</span>
  20. <span class="yesterday">/ {$yesterday_stat['cancel']}</span>
  21. </div>
  22. </div>
  23. <div class="col-sm-4 text-center">
  24. <div class="title">累计关注人数</div>
  25. <div>
  26. <span class="today">{$today_stat['cumulate']}</span>
  27. <span class="yesterday">/ {$yesterday_stat['cumulate']}</span>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="panel we7-panel">
  33. <div class="panel-heading tab">
  34. <span class="we7-margin">关键指标详解</span>
  35. <a href="javascript:;" ng-class="{'active': fansDivideType == 'bynew'}" ng-click="changeDivideType('bynew')">新关注人数</a>
  36. <a href="javascript:;" ng-class="{'active': fansDivideType == 'bycancel'}" ng-click="changeDivideType('bycancel')">取消关注人数</a>
  37. <a href="javascript:;" ng-class="{'active': fansDivideType == 'bytotal'}" ng-click="changeDivideType('bytotal')">累计关注人数</a>
  38. </div>
  39. <div class="panel-body data-view">
  40. <div class="tab-bar-time clearfrix">
  41. <span class="we7-margin-right">时间</span>
  42. <div class="btn-group" role="group">
  43. <button type="button" class="btn btn-default" ng-class="{'active': fansTimeType == 'week'}" ng-click="getFansApi('week')">周统计</button>
  44. <button type="button" class="btn btn-default" ng-class="{'active': fansTimeType == 'month'}" ng-click="getFansApi('month')">月统计</button>
  45. <div class="btn-group" role="group">
  46. <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>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="col-sm-12" id="chart-line" style="height:500px"></div>
  51. </div>
  52. </div>
  53. </div>
  54. <script>
  55. require(['daterangepicker'], function() {
  56. angular.module('statisticsApp').value('config', {
  57. 'links': {
  58. 'fansApi': "{php echo url('statistics/fans/get_fans_api')}",
  59. },
  60. });
  61. angular.bootstrap($('#js-statistics-fans-display'), ['statisticsApp']);
  62. })
  63. </script>
  64. {template 'common/footer'}