No Description

districtRoi30dayTotal.blade.php 7.0KB

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