暫無描述

volumeRank.blade.php 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. <div class="page-container">
  5. <div>
  6. <div>
  7. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 导出数据</a>
  8. </div>
  9. </div>
  10. <div class="mt-20">
  11. <table class="table table-border table-bordered table-bg table-hover table-sort">
  12. <thead>
  13. <tr class="text-c">
  14. <th width="5%">排名</th>
  15. <th width="10%">商品标题</th>
  16. <th width="10%">商品规格</th>
  17. <th width="8%">价格</th>
  18. <th width="8%">成单量</th>
  19. <th width="8%">最近30日销量</th>
  20. <th width="8%">最近30日销售额</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @if($result)
  25. @foreach($result as $k=>$a)
  26. <tr class="text-c" style=" text-align:center;">
  27. <td>{{$k+1}}</td>
  28. <td>{{$a['name']}}</td>
  29. <td>{{$a['propsName']}}</td>
  30. <td>{{$a['price']}}</td>
  31. <td>{{$a['counts']}}</td>
  32. <td>{{$a['volume']}}</td>
  33. <td>{{$a['amount']}}</td>
  34. </tr>
  35. @endforeach
  36. @endif
  37. </tbody>
  38. </table>
  39. </div>
  40. <!--div id="page" class="page_div"></div-->
  41. </div>
  42. <!--_footer 作为公共模版分离出去-->
  43. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  44. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  45. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  46. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  47. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  48. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  49. <!--/_footer 作为公共模版分离出去-->
  50. <!--/_footer 作为公共模版分离出去-->
  51. <script type="text/javascript">
  52. function user_search(){
  53. var stime = $('#stime').val();
  54. var etime = $('#etime').val();
  55. var team_id = $('#team_id').val();
  56. location.href = 'volumeRank?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  57. }
  58. //导出
  59. function statistics_export(){
  60. location.href = '/admin/statistics/volumeRank_export';
  61. }
  62. </script>
  63. </body>
  64. @endsection