summary.blade.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. @extends('layouts.admin')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-lg-12">
  5. <h1 class="page-header">用户行为汇总</h1>
  6. </div>
  7. <!-- /.col-lg-12 -->
  8. </div>
  9. <div class="panel">
  10. <form action=''>
  11. <div class="form-group">
  12. <label>渠道名称</label>
  13. <input class="form-control" name="cm" value="{{ @$params['cm'] }}">
  14. </div>
  15. <div class="form-group">
  16. <label>选择时间:</label>
  17. <input name="start" onClick="WdatePicker()" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{{ @$params['start'] }}"> -
  18. <input name="end" onClick="WdatePicker()" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{{ @$params['end'] }}">
  19. </div>
  20. <div class="form-group">
  21. <label>选择公众号</label>
  22. <select class="form-control" name="wx_id">
  23. <option value="0" >全部</option>
  24. @foreach ($gzh_list as $id=>$gzh)
  25. <option value="{{ $id }}" {{ $id == @$params['wx_id'] ? 'selected' : '' }}>{{ $gzh->gzh_name }}</option>
  26. @endforeach
  27. </select>
  28. </div>
  29. <button type="submit" class="btn btn-success">查询</button>
  30. <button type="button" class="btn btn-success" onclick="user_action_statistics_export()">导出</button>
  31. </form>
  32. </div>
  33. <div class="alert alert-success">
  34. </div>
  35. <div class="panel panel-default">
  36. <div class="panel-heading">
  37. 列表
  38. </div>
  39. <!-- /.panel-heading -->
  40. <div class="panel-body">
  41. <div class="dataTable_wrapper">
  42. <table class="table table-striped table-bordered table-hover" id="dataTables-example" style="text-align: center">
  43. <tr>
  44. <th>公众号</th>
  45. <th>渠道名称</th>
  46. <th>行为</th>
  47. <th>用户数</th>
  48. <th>ip数</th>
  49. <th>年龄段对应数量</th>
  50. <th>课程对应数量</th>
  51. </tr>
  52. @foreach ($records as $cm => $cm_records)
  53. @foreach ($cm_records as $action => $record)
  54. <tr>
  55. <td>
  56. {{ @$extend_channels[$cm]['channel_name'] }}
  57. </td>
  58. <td>
  59. <span style="color:blue;font-weight:bold;">{{ @$extend_channels[$cm]['channel_name'] }}</span>
  60. </td>
  61. <td>
  62. @if (@$action=='index')
  63. 进入首页
  64. @elseif (@$action=='class')
  65. 进入课程列表
  66. @elseif (@$action=='one_class')
  67. 进入单课程(抽奖)
  68. @elseif (@$action=='create_pay')
  69. 创建支付
  70. @elseif (@$action=='suc_pay')
  71. 支付成功
  72. @elseif (@$action=='success')
  73. 进入支付成功页
  74. @elseif (@$action=='share_friend')
  75. 分享(朋友)
  76. @elseif (@$action=='share_friend_group')
  77. 分享(朋友圈)
  78. @elseif (@$action=='subscribe_gzh')
  79. 关注公众号
  80. @elseif (@$action=='unsubscribe_gzh')
  81. 取关公众号
  82. @elseif (@$action=='enter_category')
  83. 进入分类
  84. @elseif (@$action=='enter_book_list')
  85. 进入书籍列表
  86. @elseif (@$action=='enter_user_center')
  87. 进入个人中心
  88. @else
  89. {{ @$action }}
  90. @endif
  91. </td>
  92. <td>
  93. {{ @$record['open_id_count'] }}</span>
  94. </td>
  95. <td>
  96. {{ @$record['ip_count'] }}</span>
  97. </td>
  98. <td>
  99. @if (@$record['age_range_count'])
  100. @foreach (@$record['age_range_count'] as $age_range => $age_range_count)
  101. @if (@age_range=='0_3')
  102. 0~3岁
  103. @elseif (@$age_range=='4_6')
  104. 4~6岁
  105. @elseif (@age_range=='7_12')
  106. 7~12岁
  107. @else
  108. {{@$age_range}}
  109. @endif
  110. ({{@$age_range_count}})<br>
  111. @endforeach
  112. @endif
  113. </td>
  114. <td>
  115. @if (@$record['group_type_count'])
  116. @foreach (@$record['group_type_count'] as $group_type => $group_type_count)
  117. @if (@$group_type=='single')
  118. 单人课程
  119. @elseif (@$group_type=='spouse')
  120. 夫妻共读
  121. @elseif (@$group_type=='ladybro')
  122. 闺蜜共读
  123. @else
  124. {{@$group_type}}
  125. @endif
  126. ({{@$group_type_count}})<br>
  127. @endforeach
  128. @endif
  129. </td>
  130. </tr>
  131. @endforeach
  132. @endforeach
  133. </table>
  134. </div>
  135. </div>
  136. </div>
  137. <script type="text/javascript" src="{{ asset('admin/js/My97DatePicker/WdatePicker.js') }}"></script>
  138. <script>
  139. </script>
  140. @endsection