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.
149 lines
6.5 KiB
149 lines
6.5 KiB
<?php /*a:2:{s:77:"D:\waibao\ahbcqz\server\app\admin\view\community\community_article\audit.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout2.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 style="background-color: #FFFFFF;">
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
<style>
|
|
.image {
|
|
height:60px;width: 60px;margin-right: 5px;
|
|
}
|
|
</style>
|
|
|
|
<div class="layui-card layui-form" style="padding-bottom: 10%">
|
|
<div class="layui-card-body">
|
|
|
|
<input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>">
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">图片:</label>
|
|
<div class="layui-input-block" style="width: 50%">
|
|
<?php if(is_array($detail['images']) || $detail['images'] instanceof \think\Collection || $detail['images'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['images'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
|
|
<img src="<?php echo htmlentities($vo['image']); ?>" class="image-show image">
|
|
<?php endforeach; endif; else: echo "" ;endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">文章内容:</label>
|
|
<div class="layui-card-body">
|
|
<p><?php echo htmlentities($detail['content']); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">分类:</label>
|
|
<div class="layui-card-body">
|
|
<p><?php echo htmlentities($detail['topic']['cate']['name']); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">话题:</label>
|
|
<div class="layui-card-body">
|
|
<p><?php echo htmlentities((isset($detail['topic']['name']) && ($detail['topic']['name'] !== '')?$detail['topic']['name']:"")); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if(!empty($detail['goods_data'])): ?>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">关联商品:</label>
|
|
<div class="layui-input-block" style="width: 50%">
|
|
<table class="layui-table">
|
|
<tbody>
|
|
<?php foreach($detail['goods_data'] as $k => $goods): ?>
|
|
<tr>
|
|
<td>
|
|
<div style="text-align: left">
|
|
<div class="layui-col-md3">
|
|
<img src="<?php echo htmlentities($goods['image']); ?>" class="image-show image" >
|
|
</div>
|
|
<div class="layui-col-md9">
|
|
<p style="margin-top: 10px"><?php echo htmlentities($goods['name']); ?></p>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php endif; if(!empty($detail['shop_data'])): ?>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">关联商品:</label>
|
|
<div class="layui-input-block" style="width: 50%">
|
|
<table class="layui-table">
|
|
<tbody>
|
|
<?php foreach($detail['shop_data'] as $k => $shop): ?>
|
|
<tr>
|
|
<td>
|
|
<div style="text-align: left">
|
|
<div class="layui-col-md3">
|
|
<img src="<?php echo htmlentities($shop['logo']); ?>" class="image-show image" >
|
|
</div>
|
|
<div class="layui-col-md9">
|
|
<p style="margin-top: 10px"><?php echo htmlentities($shop['name']); ?></p>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color:red;">*</span>审核状态:</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="status" value="1" title="通过" <?php if($detail['status']): ?>checked<?php endif; ?>>
|
|
<input type="radio" name="status" value="2" title="拒绝" <?php if(!$detail['status']): ?>checked<?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color:red;">*</span>审核说明:</label>
|
|
<div class="layui-input-block" style="width: 50%">
|
|
<textarea class="layui-textarea" name="audit_remark"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item layui-hide">
|
|
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
layui.config({
|
|
version: "<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/'
|
|
}).use(['form'], function () {
|
|
var form = layui.form;
|
|
|
|
//图片放大
|
|
$(document).on('click', '.image-show', function () {
|
|
var src = $(this).attr('src');
|
|
like.showImg(src,400);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|