orderData.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <h3>不要一次查询超过14天的数据</h3>
  8. </div>
  9. <div class="content">
  10. <form class="am-form view-list" action="{{:U('Admin/Statistic/orderCheck')}}" method="POST" id="form1">
  11. <div class="am-g">
  12. <div style="width:500px;display: inline-block;">
  13. <label>时间:</label>
  14. <input name="start_time" class="datebb" value="{{$start_time}}" autocomplete="off" style="width:20rem;border-left: 0.1rem solid;" />~
  15. <input name="end_time" class="datebb" value="{{$end_time}}" autocomplete="off" style="width: 20rem;border-left: 0.1rem solid;" />
  16. </div>
  17. <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
  18. <a href="#" class="am-btn am-btn-danger am-btn-xs" onclick="exportData();">导出</a>
  19. </div>
  20. </form>
  21. </div>
  22. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
  23. <thead>
  24. <tr>
  25. <th>序号</th>
  26. <th class="am-hide-sm-only">时间</th>
  27. <th class="am-hide-sm-only">pv</th>
  28. <th class="am-hide-sm-only">uv</th>
  29. <th class="am-hide-sm-only">订购数</th>
  30. <th class="am-hide-sm-only">退订数</th>
  31. <th class="am-hide-sm-only">预订购(去重)</th>
  32. <th class="am-hide-sm-only">预订购总数</th>
  33. <th class="am-hide-sm-only">播放总时长(秒)</th>
  34. <th class="am-hide-sm-only">新增用户</th>
  35. <th class="am-hide-sm-only">累计用户</th>
  36. <!-- <th>{{:L('common_operation_name')}}</th>-->
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <if condition="!empty($data)">
  41. <foreach name="data" item="v">
  42. <tr id="data-list-{{$v.id}}">
  43. <td class="am-hide-sm-only">{{$key+1}}</td>
  44. <td class="am-hide-sm-only">{{$v.date}}</td>
  45. <td class="am-hide-sm-only">{{$v.pv|default=0}}</td>
  46. <td class="am-hide-sm-only">{{$v.uv|default=0}}</td>
  47. <td class="am-hide-sm-only">{{$v.order|default=0}}</td>
  48. <td class="am-hide-sm-only">{{$v.cancel_order|default=0}}</td>
  49. <td class="am-hide-sm-only">{{$v.pre_order|default=0}}</td>
  50. <td class="am-hide-sm-only">{{$v.pre_order_count|default=0}}</td>
  51. <td class="am-hide-sm-only">{{$v.play_time_sum|default=0}}</td>
  52. <td class="am-hide-sm-only">{{$v.add_user|default=0}}</td>
  53. <td class="am-hide-sm-only">{{$v.user_sum|default=0}}</td>
  54. <!-- <td class="view-operation">-->
  55. <!-- <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/SourceOrigin/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}"></button>-->
  56. <!-- </td>-->
  57. </tr>
  58. </foreach>
  59. <else />
  60. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  61. </if>
  62. </tbody>
  63. </table>
  64. <!-- list end -->
  65. <!-- page start -->
  66. <if condition="!empty($List)">
  67. {{$page_html}}
  68. </if>
  69. <!-- page end -->
  70. </div>
  71. </div>
  72. <!-- right content end -->
  73. <script>
  74. function exportData(){
  75. var form = $('#form1').serialize();
  76. var url = './index.php?m=Admin&c=Statistic&a=orderCheck&model=export&'+form;
  77. window.location.href = url;
  78. }
  79. jeDate("input[name=start_time]",{
  80. //onClose:false,
  81. format: "YYYY-MM-DD 00:00:00"
  82. });
  83. jeDate("input[name=end_time]",{
  84. //onClose:false,
  85. format: "YYYY-MM-DD 23:59:59"
  86. });
  87. </script>
  88. <!-- footer start -->
  89. <include file="Public/Footer" />
  90. <!-- footer end