No Description

districtRoiAllTotal.blade.php 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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="5">15日roi明细</option>
  13. <option value="6" >15日roi汇总</option>
  14. <option value="3" >30日roi明细</option>
  15. <option value="4">30日roi汇总</option>
  16. <option value="7">45日roi明细</option>
  17. <option value="8">45日roi汇总</option>
  18. <option value="9" @if($only_roi == 0) selected @endif>各类roi汇总</option>
  19. <option value="10" @if($only_roi == 1) selected @endif>单独roi列统计</option>
  20. </select>
  21. <input class="input-text" style="width:5%;text-align:center" type="text" value="所属城市"/>
  22. <input id="city" type="text" class="input-text" style="width:6%;text-align:center" name="city" value="{{$city?$city:''}}">
  23. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  24. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a>
  25. </div>
  26. </div>
  27. <div class="mt-20">
  28. <table class="table table-border table-bordered table-bg table-hover table-sort">
  29. <thead>
  30. <tr class="text-c">
  31. <th width="4%">城市</th>
  32. @if($only_roi == 1)
  33. <th width="4%">7日累计ROI</th>
  34. <th width="4%">15日累计ROI</th>
  35. <th width="4%">30日累计ROI</th>
  36. <th width="4%">45日累计ROI</th>
  37. <th width="4%">60日累计ROI</th>
  38. @else
  39. <th width="4%">7日累计投放成本</th>
  40. <th width="4%">7日累计成单数</th>
  41. <th width="4%">7日累计收入</th>
  42. <th width="4%">7日累计ROI</th>
  43. <th width="4%">15日累计投放成本</th>
  44. <th width="4%">15日累计成单数</th>
  45. <th width="4%">15日累计收入</th>
  46. <th width="4%">15日累计ROI</th>
  47. <th width="4%">30日累计投放成本</th>
  48. <th width="4%">30日累计成单数</th>
  49. <th width="4%">30日累计收入</th>
  50. <th width="4%">30日累计ROI</th>
  51. <th width="4%">45日累计投放成本</th>
  52. <th width="4%">45日累计成单数</th>
  53. <th width="4%">45日累计收入</th>
  54. <th width="4%">45日累计ROI</th>
  55. <th width="4%">60日累计投放成本</th>
  56. <th width="4%">60日累计成单数</th>
  57. <th width="4%">60日累计收入</th>
  58. <th width="4%">60日累计ROI</th>
  59. @endif
  60. </tr>
  61. </thead>
  62. <tbody>
  63. @if($result)
  64. @foreach($result as $a)
  65. <tr class="text-c" style=" text-align:center;">
  66. <td>{{$a['city']}}</td>
  67. @if($only_roi == 1)
  68. <td>{{$a['total_roi']}}</td>
  69. <td>{{$a['total_roi15']}}</td>
  70. <td>{{$a['total_roi30']}}</td>
  71. <td>{{$a['total_roi45']}}</td>
  72. <td>{{$a['total_roi60']}}</td>
  73. @else
  74. <td>{{$a['cost']}}</td>
  75. <td>{{$a['order_count']}}</td>
  76. <td>{{$a['order_amount']}}</td>
  77. <td>{{$a['total_roi']}}</td>
  78. <td>{{$a['cost15']}}</td>
  79. <td>{{$a['order_count15']}}</td>
  80. <td>{{$a['order_amount15']}}</td>
  81. <td>{{$a['total_roi15']}}</td>
  82. <td>{{$a['cost30']}}</td>
  83. <td>{{$a['order_count30']}}</td>
  84. <td>{{$a['order_amount30']}}</td>
  85. <td>{{$a['total_roi30']}}</td>
  86. <td>{{$a['cost45']}}</td>
  87. <td>{{$a['order_count45']}}</td>
  88. <td>{{$a['order_amount45']}}</td>
  89. <td>{{$a['total_roi45']}}</td>
  90. <td>{{$a['cost60']}}</td>
  91. <td>{{$a['order_count60']}}</td>
  92. <td>{{$a['order_amount60']}}</td>
  93. <td>{{$a['total_roi60']}}</td>
  94. @endif
  95. </tr>
  96. @endforeach
  97. @endif
  98. </tbody>
  99. </table>
  100. </div>
  101. <div id="page" class="page_div"></div>
  102. </div>
  103. <!--_footer 作为公共模版分离出去-->
  104. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  105. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  106. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  107. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  108. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  109. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  110. <!--/_footer 作为公共模版分离出去-->
  111. <!--/_footer 作为公共模版分离出去-->
  112. <script type="text/javascript">
  113. function user_search(){
  114. var city = $('#city').val();
  115. var only_roi = "{{$only_roi}}";
  116. //var page = {{$page}};
  117. location.href = 'districtRoiAllTotal?city='+city+'&only_roi='+only_roi;
  118. }
  119. //导出
  120. function statistics_export(){
  121. var city = $('#city').val();
  122. var only_roi = "{{$only_roi}}"
  123. location.href = '/admin/statistics/districtRoiAllTotal_export?city='+city+'&only_roi='+only_roi;
  124. }
  125. $("#data_type").change(function(){
  126. var date_type = $(this).val();
  127. if(date_type == 0){
  128. location.href='districtRoi7day';
  129. }
  130. else if(date_type == 1){
  131. location.href='districtRoi7dayTotal';
  132. }
  133. else if(date_type == 2){
  134. location.href='districtRoi';
  135. }
  136. else if(date_type == 3){
  137. location.href='districtRoi30day';
  138. }
  139. else if(date_type == 4){
  140. location.href='districtRoi30dayTotal';
  141. }
  142. else if(date_type == 5){
  143. location.href='districtRoi15day';
  144. }
  145. else if(date_type == 6){
  146. location.href='districtRoi15dayTotal';
  147. }
  148. else if(date_type == 7){
  149. location.href='districtRoi45day';
  150. }
  151. else if(date_type == 8){
  152. location.href='districtRoi45dayTotal';
  153. }
  154. else if(date_type == 9){
  155. location.href='districtRoiAllTotal';
  156. }
  157. else if(date_type == 10){
  158. location.href='districtRoiAllTotal?only_roi=1';
  159. }
  160. })
  161. /*分页*/
  162. $("#page").paging({
  163. pageNo:{{$page}},
  164. totalPage: {{$pages}},
  165. totalSize: {{$count}},
  166. callback: function(num) {
  167. var city = $('#city').val();
  168. var only_roi = "{{$only_roi}}"
  169. location.href='districtRoiAllTotal?page='+num+'&city='+city+'&only_roi='+only_roi;
  170. }
  171. })
  172. </script>
  173. </body>
  174. @endsection