|
@@ -0,0 +1,185 @@
|
|
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
|
+ <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:''}}">
|
|
9
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
|
|
10
|
+ <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:''}}">
|
|
11
|
+
|
|
12
|
+ <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
|
|
13
|
+ <a class="btn btn-primary radius" onclick="importExcel('数据导入')" href="javascript:;"> 导入订单</a>
|
|
14
|
+
|
|
15
|
+ </div>
|
|
16
|
+ </div>
|
|
17
|
+
|
|
18
|
+ <div class="mt-20">
|
|
19
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
20
|
+ <thead>
|
|
21
|
+ <tr class="text-c">
|
|
22
|
+ <th width="8%">日期</th>
|
|
23
|
+ <th width="8%">微信Appid</th>
|
|
24
|
+ <th width="8%">城市</th>
|
|
25
|
+ <th width="8%">花费(元)</th>
|
|
26
|
+ <th width="8%">曝光次数</th>
|
|
27
|
+ <th width="8%">点击次数</th>
|
|
28
|
+ <th width="8%">点击率</th>
|
|
29
|
+ <th width="8%">转化目标量</th>
|
|
30
|
+ <th width="8%">转化目标成本</th>
|
|
31
|
+ <th width="8%">创建时间</th>
|
|
32
|
+ <!--th width="6%">操作</th-->
|
|
33
|
+ </tr>
|
|
34
|
+ </thead>
|
|
35
|
+ <tbody>
|
|
36
|
+ @if($result)
|
|
37
|
+ @foreach($result as $a)
|
|
38
|
+ <tr class="text-c" style=" text-align:center;">
|
|
39
|
+ <td>{{$a['ad_time']}}</td>
|
|
40
|
+ <td>{{$a['wexin_appid']}}</td>
|
|
41
|
+ <td>{{$a['city']}}</td>
|
|
42
|
+ <td>{{$a['cost']}}</td>
|
|
43
|
+ <td>{{$a['exposure_times']}}</td>
|
|
44
|
+ <td>{{$a['click_times']}}</td>
|
|
45
|
+ <td>{{$a['click_rate']}}</td>
|
|
46
|
+ <td>{{$a['conversion_times']}}</td>
|
|
47
|
+ <td>{{$a['conversion_cost']}}</td>
|
|
48
|
+ <td>{{$a['add_time']}}</td>
|
|
49
|
+ <!--td>
|
|
50
|
+ <a style="text-decoration:none" onClick='custreport_edit("编辑","{{$a['id']}}")' href="javascript:;" title="编辑"><span class="btn btn-primary radius">编辑</span></a>
|
|
51
|
+ <a style="text-decoration:none" onClick='custreport_del("删除","{{$a['id']}}")' href="javascript:;" title="删除"><span class="btn btn-primary radius">删除</span></a>
|
|
52
|
+ </td-->
|
|
53
|
+ </tr>
|
|
54
|
+ @endforeach
|
|
55
|
+ @endif
|
|
56
|
+ </tbody>
|
|
57
|
+ </table>
|
|
58
|
+ </div>
|
|
59
|
+ <!--弹出层 推入分组-->
|
|
60
|
+ <div id="modal-demo1" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
61
|
+ <div class="modal-dialog">
|
|
62
|
+ <div class="modal-content radius">
|
|
63
|
+ <div class="modal-body" style="height:280px">
|
|
64
|
+ <div class="cl pd-5 bg-1 bk-gray mt-20">
|
|
65
|
+
|
|
66
|
+ <form class="form form-horizontal" method="POST" action="/admin/custreport/importDisCost" enctype="multipart/form-data">
|
|
67
|
+ <input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
68
|
+
|
|
69
|
+ <div class="row cl">
|
|
70
|
+ <label class="form-label col-xs-4 col-sm-2">
|
|
71
|
+ 微信appid:</label>
|
|
72
|
+ <div class="formControls col-xs-6 col-sm-6">
|
|
73
|
+ <input type="text" class="input-text" value="" placeholder="" name="wexin_appid">
|
|
74
|
+ </div>
|
|
75
|
+ </div>
|
|
76
|
+
|
|
77
|
+ <div class="row cl">
|
|
78
|
+ <label class="form-label col-xs-4 col-sm-2">
|
|
79
|
+ 日期:</label>
|
|
80
|
+ <div class="formControls col-xs-6 col-sm-6">
|
|
81
|
+ <input id="ad_time" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" style="width:50%;text-align:center;" name="ad_time" value="{{$today?$today:''}}">
|
|
82
|
+ </div>
|
|
83
|
+ </div>
|
|
84
|
+
|
|
85
|
+ <div class="row cl">
|
|
86
|
+ <label class="form-label col-xs-4 col-sm-2">
|
|
87
|
+ 文件:</label>
|
|
88
|
+ <div class="formControls col-xs-6 col-sm-6">
|
|
89
|
+ <input id="file" type="file" class="form-control" name="dataFile" required>
|
|
90
|
+ </div>
|
|
91
|
+ </div>
|
|
92
|
+
|
|
93
|
+ <div class="row cl">
|
|
94
|
+ <div class="col-9 col-offset-2">
|
|
95
|
+ <button type="submit" class="btn btn-primary radius">确定</button>
|
|
96
|
+ <button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
|
|
97
|
+ </div>
|
|
98
|
+ </div>
|
|
99
|
+ </form>
|
|
100
|
+ </div>
|
|
101
|
+ <br>
|
|
102
|
+ {{--<div style="float:right">--}}
|
|
103
|
+ {{--<button class="btn btn-primary radius" onclick='submits(this,"{{$page}}")' value=" 确定 "> 确定 </button> --}}
|
|
104
|
+ {{--<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>--}}
|
|
105
|
+ {{--</div>--}}
|
|
106
|
+ </div>
|
|
107
|
+ </div>
|
|
108
|
+ </div>
|
|
109
|
+ </div>
|
|
110
|
+ <div id="page" class="page_div"></div>
|
|
111
|
+ </div>
|
|
112
|
+
|
|
113
|
+ <!--_footer 作为公共模版分离出去-->
|
|
114
|
+ <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
|
|
115
|
+ <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
|
|
116
|
+ <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
|
|
117
|
+ <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
|
|
118
|
+ <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
|
|
119
|
+ <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
120
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
121
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
122
|
+ <script type="text/javascript">
|
|
123
|
+ /*广告-添加*/
|
|
124
|
+ function custreport_add(title){
|
|
125
|
+ location.href="/admin/custreport/totalcreate";
|
|
126
|
+ }
|
|
127
|
+ /*广告-编辑*/
|
|
128
|
+ function custreport_edit(title,id){
|
|
129
|
+ location.href="/admin/custreport/totaledit/"+id;
|
|
130
|
+ }
|
|
131
|
+ /*广告-设为首页显示*/
|
|
132
|
+ function up(obj,id){
|
|
133
|
+ layer.confirm('确认要设为首页显示吗?',function(index){
|
|
134
|
+ location.href='/admin/custreport/up/'+id;
|
|
135
|
+ });
|
|
136
|
+ }
|
|
137
|
+ /*广告-移除*/
|
|
138
|
+ function custreport_del(obj,id){
|
|
139
|
+ layer.confirm('确认要删除吗?',function(index){
|
|
140
|
+ location.href='/admin/custreport/totaldelete/'+id;
|
|
141
|
+ });
|
|
142
|
+ }
|
|
143
|
+ /*广告-设为首页隐藏*/
|
|
144
|
+ function down(obj,id){
|
|
145
|
+ layer.confirm('确认要设为首页隐藏吗?',function(index){
|
|
146
|
+ location.href='/admin/custreport/down/'+id;
|
|
147
|
+ });
|
|
148
|
+ }
|
|
149
|
+ function user_search(){
|
|
150
|
+ var stime = $('#stime').val();
|
|
151
|
+ var etime = $('#etime').val();
|
|
152
|
+
|
|
153
|
+ location.href = 'disCostList?stime='+stime+'&etime='+etime;
|
|
154
|
+ }
|
|
155
|
+ //导出
|
|
156
|
+ function custreport_export(){
|
|
157
|
+ var stime = $('#stime').val();
|
|
158
|
+ var etime = $('#etime').val();
|
|
159
|
+ var team_id = $('#team_id').val();
|
|
160
|
+ location.href = '/admin/custreport/total_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
|
|
161
|
+ }
|
|
162
|
+
|
|
163
|
+ //批量导入
|
|
164
|
+ function importExcel(){
|
|
165
|
+ $("#modal-demo1").modal("show");
|
|
166
|
+ }
|
|
167
|
+
|
|
168
|
+ /*分页*/
|
|
169
|
+
|
|
170
|
+ $("#page").paging({
|
|
171
|
+ pageNo:{{$page}},
|
|
172
|
+ totalPage: {{$pages}},
|
|
173
|
+ totalSize: {{$count}},
|
|
174
|
+ callback: function(num) {
|
|
175
|
+ var stime = $('#stime').val();
|
|
176
|
+ var etime = $('#etime').val();
|
|
177
|
+ location.href='disCostList?page='+num+'&stime='+stime+'&etime='+etime;
|
|
178
|
+ }
|
|
179
|
+ })
|
|
180
|
+
|
|
181
|
+ </script>
|
|
182
|
+
|
|
183
|
+ </body>
|
|
184
|
+
|
|
185
|
+@endsection
|