You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
177 lines
7.7 KiB
177 lines
7.7 KiB
<?php /*a:2:{s:67:"E:\waibao\ahbcqz\server\app\admin\view\complain\complain\lists.html";i:1690004170;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<!-- 操作提示 -->
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title">操作提示</h2>
|
|
<div class="layui-colla-content layui-show">
|
|
<p>*用户投诉的结果处理后可在前台查看。</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 搜索区域 -->
|
|
<div class="layui-card-body layui-form">
|
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
|
<label for="cid" class="layui-form-label">投诉分类:</label>
|
|
<div class="layui-input-inline">
|
|
<select name="cid" id="cid">
|
|
<option value="">全部</option>
|
|
<?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
|
|
<option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['name']); ?></option>
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<label for="is_notice" class="layui-form-label">是否处理:</label>
|
|
<div class="layui-input-inline">
|
|
<select name="is_complate" id="is_notice">
|
|
<option value="">全部</option>
|
|
<option value="1">是</option>
|
|
<option value="0">否</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<a class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="search">搜索</a>
|
|
<a class="layui-btn layui-btn-sm layui-btn-primary" lay-submit lay-filter="clear-search">重置</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主体区域 -->
|
|
<div class="layui-card-body">
|
|
|
|
<table id="like-table-lists" lay-filter="like-table-lists"></table>
|
|
<script type="text/html" id="table-image">
|
|
{{# if(d.image){ }}
|
|
<img src="{{d.image}}" alt="图" style="width:28px;height:28px;">
|
|
{{# } }}
|
|
</script>
|
|
<script type="text/html" id="table-category">
|
|
{{# if(d.category){ }}
|
|
{{d.category.name}}
|
|
{{# } }}
|
|
</script>
|
|
<script type="text/html" id="table-avatar">
|
|
{{# if(d.avatar){ }}
|
|
<img src="{{d.avatar}}" alt="图" style="width:28px;height:28px;">
|
|
{{# } }}
|
|
</script>
|
|
<script type="text/html" id="table-operation">
|
|
<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="complate">处理</a>
|
|
</script>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
layui.use(["table", "form"], function(){
|
|
var table = layui.table;
|
|
var form = layui.form;
|
|
|
|
|
|
like.tableLists("#like-table-lists", "<?php echo url(); ?>", [
|
|
{field:"id", width:60, title:"ID"}
|
|
,{field:"username", width:200, align:"center", title:"用户名称"}
|
|
,{field:"avatar", width:100, align:"center", title:"用户头像", templet:"#table-avatar"}
|
|
,{field:"category", width:150, align:"center", title:"投诉分类",templet:"#table-category"}
|
|
,{field:"is_complate", width:100, align:"center", title:"处理状态"}
|
|
,{field:"image", width:100, align:"center", title:"截图", templet:"#table-image"}
|
|
,{field:"content", align:"center", title:"投诉内容"}
|
|
,{field:"remark", align:"center", title:"处理内容"}
|
|
,{field:"create_time", width:180, align:"center", title:"创建时间"}
|
|
,{title:"操作", width:200, align:"center", fixed:"right", toolbar:"#table-operation"}
|
|
]);
|
|
|
|
|
|
var active = {
|
|
|
|
complate: function(obj) {
|
|
layer.open({
|
|
type: 2
|
|
,title: "处理投诉"
|
|
,content: "<?php echo url('complain.Complain/complate'); ?>?id=" + obj.data.id
|
|
,area: ["90%", "90%"]
|
|
,btn: ["确定", "取消"]
|
|
,yes: function(index, layero){
|
|
var iframeWindow = window["layui-layer-iframe" + index];
|
|
var submit = layero.find("iframe").contents().find("#addSubmit");
|
|
iframeWindow.layui.form.on("submit(addSubmit)", function(data){
|
|
data.field['id'] = obj.data.id;
|
|
like.ajax({
|
|
url: "<?php echo url('complain.Complain/complate'); ?>",
|
|
data: data.field,
|
|
type: "POST",
|
|
success:function(res) {
|
|
if(res.code === 1) {
|
|
layui.layer.msg(res.msg);
|
|
layer.close(index);
|
|
table.reload("like-table-lists", {
|
|
where: {},
|
|
page: { cur: 1 }
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
submit.trigger("click");
|
|
}
|
|
});
|
|
},
|
|
};
|
|
like.eventClick(active);
|
|
|
|
form.on("submit(search)", function(data){
|
|
table.reload("like-table-lists", {
|
|
where: data.field,
|
|
page: {
|
|
curr: 1
|
|
}
|
|
});
|
|
});
|
|
|
|
form.on("submit(clear-search)", function(){
|
|
$("#title").val("");
|
|
form.render("select");
|
|
table.reload("like-table-lists", {
|
|
where: {},
|
|
page: {
|
|
curr: 1
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|