Brak opisu

districtRoiAllTotal.blade.php 11KB

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