Keine Beschreibung

districtRoi30dayTotal.blade.php 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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" selected>30日roi汇总</option>
  16. <option value="7">45日roi明细</option>
  17. <option value="8">45日roi汇总</option>
  18. <option value="9">所有时段roi汇总</option>
  19. <option value="10">单独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="5%">城市</th>
  32. <th width="5%">投放成本</th>
  33. <th width="5%">加粉数</th>
  34. <th width="5%">下单人数</th>
  35. <th width="5%">新粉成单数</th>
  36. <th width="5%">新粉收入</th>
  37. <th width="5%">新粉ROI</th>
  38. <th width="5%">30日累计成单数</th>
  39. <th width="5%">30日累计收入</th>
  40. <th width="5%">30日累计ROI</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. @if($result)
  45. @foreach($result as $a)
  46. <tr class="text-c" style=" text-align:center;">
  47. <td>{{$a['city']}}</td>
  48. <td>{{$a['cost']}}</td>
  49. <td>{{$a['gzh_count']}}</td>
  50. <td>{{$a['fan_count']}}</td>
  51. <td>{{$a['new_fan_order_count']}}</td>
  52. <td>{{$a['new_fan_order_amount']}}</td>
  53. <td>{{$a['new_roi']}}</td>
  54. <td>{{$a['order_count']}}</td>
  55. <td>{{$a['order_amount']}}</td>
  56. <td>{{$a['total_roi']}}</td>
  57. </tr>
  58. @endforeach
  59. @endif
  60. </tbody>
  61. </table>
  62. </div>
  63. <div id="page" class="page_div"></div>
  64. </div>
  65. <!--_footer 作为公共模版分离出去-->
  66. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  67. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  68. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  69. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  70. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  71. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  72. <!--/_footer 作为公共模版分离出去-->
  73. <!--/_footer 作为公共模版分离出去-->
  74. <script type="text/javascript">
  75. function user_search(){
  76. var city = $('#city').val();
  77. //var page = {{$page}};
  78. location.href = 'districtRoi30dayTotal?city='+city;
  79. }
  80. //导出
  81. function statistics_export(){
  82. var city = $('#city').val();
  83. location.href = '/admin/statistics/districtRoi30dayTotal_export?city='+city;
  84. }
  85. $("#data_type").change(function(){
  86. var date_type = $(this).val();
  87. if(date_type == 0){
  88. location.href='districtRoi7day';
  89. }
  90. else if(date_type == 1){
  91. location.href='districtRoi7dayTotal';
  92. }
  93. else if(date_type == 2){
  94. location.href='districtRoi';
  95. }
  96. else if(date_type == 3){
  97. location.href='districtRoi30day';
  98. }
  99. else if(date_type == 4){
  100. location.href='districtRoi30dayTotal';
  101. }
  102. else if(date_type == 5){
  103. location.href='districtRoi15day';
  104. }
  105. else if(date_type == 6){
  106. location.href='districtRoi15dayTotal';
  107. }
  108. else if(date_type == 7){
  109. location.href='districtRoi45day';
  110. }
  111. else if(date_type == 8){
  112. location.href='districtRoi45dayTotal';
  113. }
  114. else if(date_type == 9){
  115. location.href='districtRoiAllTotal';
  116. }
  117. else if(date_type == 10){
  118. location.href='districtRoiAllTotal?only_roi=1';
  119. }
  120. })
  121. /*分页*/
  122. $("#page").paging({
  123. pageNo:{{$page}},
  124. totalPage: {{$pages}},
  125. totalSize: {{$count}},
  126. callback: function(num) {
  127. var city = $('#city').val();
  128. location.href='districtRoi30dayTotal?page='+num+'&city='+city;
  129. }
  130. })
  131. </script>
  132. </body>
  133. @endsection