|
@@ -0,0 +1,123 @@
|
|
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:5%;text-align:center" type="text" value="所属城市"/>
|
|
8
|
+ <input id="city" type="text" class="input-text" style="width:6%;text-align:center" name="city" value="{{$city?$city:''}}">
|
|
9
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
|
|
10
|
+ <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:''}}">
|
|
11
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
|
|
12
|
+ <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:''}}">
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+ <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
|
|
16
|
+ <!--a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a-->
|
|
17
|
+
|
|
18
|
+ </div>
|
|
19
|
+ </div>
|
|
20
|
+
|
|
21
|
+ <div class="mt-20">
|
|
22
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
23
|
+ <thead>
|
|
24
|
+ <tr class="text-c">
|
|
25
|
+ <th width="5%">日期</th>
|
|
26
|
+ <th width="5%">城市</th>
|
|
27
|
+ <th width="5%">投放成本</th>
|
|
28
|
+ <th width="5%">新粉收入</th>
|
|
29
|
+ <th width="5%">新粉ROI</th>
|
|
30
|
+ <th width="5%">累计收入</th>
|
|
31
|
+ <th width="5%">累计ROI</th>
|
|
32
|
+ </tr>
|
|
33
|
+ </thead>
|
|
34
|
+ <tbody>
|
|
35
|
+ @if($result)
|
|
36
|
+ @foreach($result as $a)
|
|
37
|
+ <tr class="text-c" style=" text-align:center;">
|
|
38
|
+ <td>{{$a['ad_time']}}</td>
|
|
39
|
+ <td>{{$a['city']}}</td>
|
|
40
|
+ <td>{{$a['total_cost']}}</td>
|
|
41
|
+ <td>{{$a['new_order_amount']}}</td>
|
|
42
|
+ <td>{{$a['new_roi']}}</td>
|
|
43
|
+ <td>{{$a['order_amount']}}</td>
|
|
44
|
+ <td>{{$a['total_roi']}}</td>
|
|
45
|
+ </tr>
|
|
46
|
+ @endforeach
|
|
47
|
+ @endif
|
|
48
|
+ </tbody>
|
|
49
|
+ </table>
|
|
50
|
+ </div>
|
|
51
|
+ <div id="page" class="page_div"></div>
|
|
52
|
+ </div>
|
|
53
|
+
|
|
54
|
+ <!--_footer 作为公共模版分离出去-->
|
|
55
|
+ <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
|
|
56
|
+ <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
|
|
57
|
+ <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
|
|
58
|
+ <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
|
|
59
|
+ <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
|
|
60
|
+ <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
61
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
62
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
63
|
+ <script type="text/javascript">
|
|
64
|
+ /*广告-添加*/
|
|
65
|
+ function statistics_add(title){
|
|
66
|
+ location.href="/admin/statistics/totalcreate";
|
|
67
|
+ }
|
|
68
|
+ /*广告-编辑*/
|
|
69
|
+ function statistics_edit(title,id){
|
|
70
|
+ location.href="/admin/statistics/totaledit/"+id;
|
|
71
|
+ }
|
|
72
|
+ /*广告-设为首页显示*/
|
|
73
|
+ function up(obj,id){
|
|
74
|
+ layer.confirm('确认要设为首页显示吗?',function(index){
|
|
75
|
+ location.href='/admin/statistics/up/'+id;
|
|
76
|
+ });
|
|
77
|
+ }
|
|
78
|
+ /*广告-移除*/
|
|
79
|
+ function statistics_del(obj,id){
|
|
80
|
+ layer.confirm('确认要删除吗?',function(index){
|
|
81
|
+ location.href='/admin/statistics/totaldelete/'+id;
|
|
82
|
+ });
|
|
83
|
+ }
|
|
84
|
+ /*广告-设为首页隐藏*/
|
|
85
|
+ function down(obj,id){
|
|
86
|
+ layer.confirm('确认要设为首页隐藏吗?',function(index){
|
|
87
|
+ location.href='/admin/statistics/down/'+id;
|
|
88
|
+ });
|
|
89
|
+ }
|
|
90
|
+ function user_search(){
|
|
91
|
+ var stime = $('#stime').val();
|
|
92
|
+ var etime = $('#etime').val();
|
|
93
|
+ var city = $('#city').val();
|
|
94
|
+ //var page = {{$page}};
|
|
95
|
+ location.href = 'districtRoi?stime='+stime+'&etime='+etime+'&city='+city;
|
|
96
|
+ }
|
|
97
|
+ //导出
|
|
98
|
+ function statistics_export(){
|
|
99
|
+ var stime = $('#stime').val();
|
|
100
|
+ var etime = $('#etime').val();
|
|
101
|
+ var city = $('#city').val();
|
|
102
|
+ location.href = '/admin/statistics/districtRoi_export?stime='+stime+'&etime='+etime+'&city='+city;
|
|
103
|
+ }
|
|
104
|
+
|
|
105
|
+ /*分页*/
|
|
106
|
+
|
|
107
|
+ $("#page").paging({
|
|
108
|
+ pageNo:{{$page}},
|
|
109
|
+ totalPage: {{$pages}},
|
|
110
|
+ totalSize: {{$count}},
|
|
111
|
+ callback: function(num) {
|
|
112
|
+ var stime = $('#stime').val();
|
|
113
|
+ var etime = $('#etime').val();
|
|
114
|
+ var city = $('#city').val();
|
|
115
|
+ location.href='districtRoi?page='+num+'&stime='+stime+'&etime='+etime+'&city='+city;
|
|
116
|
+ }
|
|
117
|
+ })
|
|
118
|
+
|
|
119
|
+ </script>
|
|
120
|
+
|
|
121
|
+ </body>
|
|
122
|
+
|
|
123
|
+@endsection
|