Aucune description

districtRoi15day.blade.php 8.4KB

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