commentDetail.html
21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<!-- saved from url=(0054)http://shenhe.cnlive.com/comments/detail/13097?state=2 -->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:replace="../templates/common/head::head"></head>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<div th:replace="../templates/common/frame::frame"></div>
<div class="content-wrapper" style="min-height: 788px;">
<section class="content-header">
<h1>
评论详情
</h1>
<ol class="breadcrumb">
<li><a href="http://shenhe.cnlive.com/index"><i class="fa fa-dashboard"></i> 首页</a></li>
<li class="active"><a href="http://shenhe.cnlive.com/comments">评论审核</a></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box box-info">
<div class="box-body form-horizontal">
<div id="tabContents" class="tab-content">
<div id="tabHome" class="tab-pane fade in active padding-t-15 ">
<div class="col-sm-6">
<div class="form-group">
<label for="comment_title" class="control-label col-sm-2">评论标题:</label>
<div class="col-sm-10">
<h5 style="font-size:1.5em; font-weight: bold;"></h5>
</div>
</div>
<div class="form-group">
<label for="content" class="control-label col-sm-2">评论内容:</label>
<div class="col-sm-8">
<textarea class="form-control" name="content" cols="50" rows="10" id="content">哈哈哈</textarea>
</div>
</div>
<div class="form-group ">
<label for="username" class="control-label col-sm-2">状态:</label>
<div class="col-sm-10 ">
<h5 class="status">待审</h5>
</div>
</div>
<div class="form-group">
<label for="cate_tags" class="control-label col-sm-2">分类标签:</label>
<div class="col-sm-10">
<h5></h5>
</div>
</div>
<hr>
<div class="form-group">
<label class="control-label col-sm-2" for="attr_tags">常用审核意见:</label>
<div class="col-sm-8">
<select class="form-control select2 select2-hidden-accessible" multiple="" data-placeholder="选择常用审核意见,可多选" name="attr_tags[]" id="attr_tags" style="width: 100%;" tabindex="-1" aria-hidden="true">
</select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 100%;"><span class="selection"><span class="select2-selection select2-selection--multiple" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0"><ul class="select2-selection__rendered"><li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" placeholder="选择常用审核意见,可多选" style="width: 509px;"></li></ul></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div><!-- /.form-group -->
<div class="form-group">
<label for="msg" class="control-label col-sm-2">审核备注:</label>
<div class="col-sm-8">
<textarea class="form-control" name="msg" cols="50" rows="10" id="msg"></textarea>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="program_id" class="control-label col-sm-2">节目id:</label>
<div class="col-sm-10">
<h5>604</h5>
</div>
</div>
<div class="form-group">
<label for="comment_user_id" class="control-label col-sm-2">评论用户id:</label>
<div class="col-sm-10">
<h5>821403</h5>
</div>
</div>
<div class="form-group">
<label for="activity_id" class="control-label col-sm-2">评论活动id:</label>
<div class="col-sm-10">
<h5>769:video:comets:604_902dce9848ac482eb433f15c2cb0c401#3025</h5>
</div>
</div>
<div class="form-group">
<label for="comment_user_name" class="control-label col-sm-2">用户昵称:</label>
<div class="col-sm-10">
<h5>鱼</h5>
</div>
</div>
<div class="form-group">
<label for="comment_user_avatar" class="control-label col-sm-2">用户头像:</label>
<div class="col-sm-10">
<h5><img width="160px" src="./222111_files/1532077438500.jpg" alt="用户头像"></h5>
</div>
</div>
<div class="form-group">
<label for="comment_user_ip" class="control-label col-sm-2">用户来源IP地址:</label>
<div class="col-sm-10">
<h5>114.242.177.100</h5>
</div>
</div>
<div class="form-group">
<label for="app_id" class="control-label col-sm-2">appId:</label>
<div class="col-sm-10">
<h5>769_jetj7bq525</h5>
</div>
</div>
<div class="form-group">
<label for="platform" class="control-label col-sm-2">平台:</label>
<div class="col-sm-10">
<h5>苹果</h5>
</div>
</div>
<div class="form-group ">
<label for="mark" class="control-label col-sm-2">是否免审:</label>
<div class="col-sm-10 ">
<h5>否</h5>
</div>
</div>
<div class="form-group ">
<label for="mark" class="control-label col-sm-2">是否过滤:</label>
<div class="col-sm-10 ">
<h5>否</h5>
</div>
</div>
<div class="form-group ">
<label for="state" class="control-label col-sm-2">审核日志:</label>
<div class="col-sm-10 ">
<h5 id="state"></h5>
</div>
</div>
<div class="form-group">
<label for="auditor" class="control-label col-sm-2">审核员:</label>
<div class="col-sm-10">
<h5>发布
openadmin9@cnlive.com</h5>
</div>
</div>
<div class="form-group">
<label for="claimed_at" class="control-label col-sm-2">领审时间:</label>
<div class="col-sm-10">
<h5>2018-11-29 10:04:35</h5>
</div>
</div>
</div>
</div>
<hr>
</div>
<div class="form-group">
<input type="text" hidden="hidden" id="comment_id" value="13097">
</div>
<div class="box-footer">
<div class="col-sm-5">
<button type="button" class="btn btn-danger pull-right" id="reject">拒 绝</button>
</div>
<div class="col-sm-1" style="margin-right:26px;">
<button type="button" class="btn btn-primary pull-right" id="pass">通 过</button>
</div>
<div class="col-sm-1">
<button type="button" class="btn btn-info pull-right" id="back">返回列表</button>
</div>
</div>
<!-- 确认弹出框 -->
<div class="modal" id="action_note" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> ×</button>
<h4 class="modal-title">温馨提示</h4>
</div>
<div class="modal-body" id="msg2"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default " data-dismiss="modal" id="action_note_no">取消</button>
<button type="button" class="btn btn-primary" id="action_note_yes">确认</button>
<input type="hidden" name="action_note_type" id="action_note_type" value="">
<input type="hidden" name="action_note_id" id="action_note_id" value="">
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#begin_date').datetimepicker({
format: 'YYYY/MM/DD HH:mm',
locale: 'zh-cn'
});
$('#end_date').datetimepicker({
format: 'YYYY/MM/DD HH:mm',
locale: 'zh-cn'
});
});
//上传图片
var image_url = $('#image_url').val();
var images = [];
if (image_url == null || image_url.length > 0) {
images = ['<img height="240" src="' + $('#image_url').val() + '">'];
}
$('#image_file').fileinput({
language: 'zh',
uploadExtraData: {_token: 'YnS6uzLnUDRQyeB4E2tTFbRCDmYio9gvdqwsGiu8'},
allowedFileExtensions: ['jpg', 'gif', 'png'],
initialPreview: images,
maxFileSize: 10240,
resizeImage: true,
maxImageWidth: 640,
maxImageHeight: 960,
});
$('#image_file').on('fileuploaded', function (event, data) {
$('#image_url').val(data.response.data);
});
/*拒绝*/
$("#reject").click(function () {
var row_id = $("#comment_id").val();
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
if(attr_tags ==null && msg ==''){ //两个都为空 不行
alert('请输入审核备注或者常用审核意见!');
return false;
}
if (typeof(row_id) == "undefined") {
return false;
}
//拒绝弹出框
$('#msg2').html('您确认要拒绝该条评论吗?');
$('#action_note').show();
$("#action_note_type").val('reject');
$("#action_note_id").val('');
// $.ajax({
// type: 'get',
// data: {'_token': 'YnS6uzLnUDRQyeB4E2tTFbRCDmYio9gvdqwsGiu8', 'attr_tags': attr_tags, 'msg': msg},
// url: '/comments/reject/' + row_id,
// success: function (data) {
// window.location.href = '/comments';
// }
// });
});
//弹出框取消
$("#action_note_no").click(function () {
$("#action_note").hide();
});
//弹出框确认
$("#action_note_yes").click(function () {
var row_id = $("#comment_id").val();
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
if(attr_tags ==null && msg ==''){ //两个都为空 不行
alert('请输入审核备注或者常用审核意见!');
return false;
}
if (typeof(row_id) == "undefined") {
return false;
}
var state = 7
$.ajax({
type: 'get',
data: {'_token': 'YnS6uzLnUDRQyeB4E2tTFbRCDmYio9gvdqwsGiu8', 'attr_tags': attr_tags, 'msg': msg},
url: '/comments/reject/' + row_id,
success: function (data) {
window.location.href = '/comments'+ '?state=' + state;
}
});
});
/*通过*/
$("#pass").click(function () {
var row_id = $("#comment_id").val();
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
if (typeof(row_id) == "undefined") {
return false;
}
var state = 7
$.ajax({
type: 'get',
data: {'_token': 'YnS6uzLnUDRQyeB4E2tTFbRCDmYio9gvdqwsGiu8', 'attr_tags': attr_tags, 'msg': msg},
url: '/comments/pass/' + row_id,
success: function (data) {
window.location.href = '/comments'+ '?state=' + state;
}
});
});
/*返回列表*/
$("#back").click(function () {
// window.history.back(-1);
var state = 2;
window.location.href = '/comments'+'?state=' + state;
});
</script>
<!-- Select2 todo xiaohu -->
<script src="../../static/js/select2.full.min.js"></script>
<!-- Select2 todo xiaohu -->
<link rel="stylesheet" href="../../static/css/select2.min.css">
<link rel="stylesheet" href="../../static/css/AdminLTE.min.css">
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
});
</script>
</div>
</div>
</div>
</div>
</section>
</div>
<footer th:replace="../templates/common/foot::foot" ></footer>
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg" style="position: fixed; height: auto;"></div>
</div><!-- ./wrapper -->
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script type="text/javascript">
$('div.alert').not('.alert-danger').delay(3000).slideUp(300);
</script>
<!-- AdminLTE App -->
<script src="../../static/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../static/js/sidebar.js"></script>
</body></html>