Nenhuma Descrição

districtRoi30dayTotal.blade.php 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. <div class="page-container">
  5. <div>
  6. <div>
  7. <input class="input-text" style="width:6%;text-align:center" type="text" value="数据分类"/>
  8. <select style="width:10%;text-align:center" id='data_type' name="data_type">
  9. <option value="0" >7日roi明细</option>
  10. <option value="1" >7日roi汇总</option>
  11. <option value="2" >每日roi明细</option>
  12. <option value="3">30日roi明细</option>
  13. <option value="4" selected>30日roi汇总</option>
  14. </select>
  15. <input class="input-text" style="width:5%;text-align:center" type="text" value="所属城市"/>
  16. <input id="city" type="text" class="input-text" style="width:6%;text-align:center" name="city" value="{{$city?$city:''}}">
  17. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  18. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a>
  19. </div>
  20. </div>
  21. <div class="mt-20">
  22. <table class="table table-border table-bordered table-bg table-hover table-sort">
  23. <thead>
  24. <tr class="text-c">
  25. <th width="5%">城市</th>
  26. <th width="5%">投放成本</th>
  27. <th width="5%">加粉数</th>
  28. <th width="5%">下单人数</th>
  29. <th width="5%">新粉成单数</th>
  30. <th width="5%">新粉收入</th>
  31. <th width="5%">新粉ROI</th>
  32. <th width="5%">30日累计成单数</th>
  33. <th width="5%">30日累计收入</th>
  34. <th width="5%">30日累计ROI</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @if($result)
  39. @foreach($result as $a)
  40. <tr class="text-c" style=" text-align:center;">
  41. <td>{{$a['city']}}</td>
  42. <td>{{$a['cost']}}</td>
  43. <td>{{$a['gzh_count']}}</td>
  44. <td>{{$a['fan_count']}}</td>
  45. <td>{{$a['new_fan_order_count']}}</td>
  46. <td>{{$a['new_fan_order_amount']}}</td>
  47. <td>{{$a['new_roi']}}</td>
  48. <td>{{$a['order_count']}}</td>
  49. <td>{{$a['order_amount']}}</td>
  50. <td>{{$a['total_roi']}}</td>
  51. </tr>
  52. @endforeach
  53. @endif
  54. </tbody>
  55. </table>
  56. </div>
  57. <div id="page" class="page_div"></div>
  58. </div>
  59. <!--_footer 作为公共模版分离出去-->
  60. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  61. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  62. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  63. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  64. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  65. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  66. <!--/_footer 作为公共模版分离出去-->
  67. <!--/_footer 作为公共模版分离出去-->
  68. <script type="text/javascript">
  69. function user_search(){
  70. var city = $('#city').val();
  71. //var page = {{$page}};
  72. location.href = 'districtRoi30dayTotal?city='+city;
  73. }
  74. //导出
  75. function statistics_export(){
  76. var city = $('#city').val();
  77. location.href = '/admin/statistics/districtRoi30dayTotal_export?city='+city;
  78. }
  79. $("#data_type").change(function(){
  80. var date_type = $(this).val();
  81. if(date_type == 0){
  82. location.href='districtRoi7day';
  83. }
  84. else if(date_type == 1){
  85. location.href='districtRoi7dayTotal';
  86. }
  87. else if(date_type == 2){
  88. location.href='districtRoi';
  89. }
  90. else if(date_type == 3){
  91. location.href='districtRoi30day';
  92. }
  93. else if(date_type == 4){
  94. location.href='districtRoi30dayTotal';
  95. }
  96. })
  97. /*分页*/
  98. $("#page").paging({
  99. pageNo:{{$page}},
  100. totalPage: {{$pages}},
  101. totalSize: {{$count}},
  102. callback: function(num) {
  103. var city = $('#city').val();
  104. location.href='districtRoi30dayTotal?page='+num+'&city='+city;
  105. }
  106. })
  107. </script>
  108. </body>
  109. @endsection