1 Star 0 Fork 0

四海先生/events66

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
commen_tlist.html 4.55 KB
Copy Edit Raw Blame History
chenguanmou authored 2021-07-13 17:38 . 评论管理的完成
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>评论列表</title>
<link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/iconfont.css">
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./libs/layui/css/modules/layer/default/layer.css">
<link rel="stylesheet" href="./libs/layui/css/layui.css">
</head>
<body>
<div class="container-fluid">
<div class="common_title">
评论列表
</div>
<div class="container-fluid common_con">
<table class="table table-striped table-bordered table-hover mp20 category_table" >
<thead>
<tr>
<th style="width:7%">作者</th>
<th style="width:25%">评论</th>
<th style="width:25%">评论在</th>
<th style="width:15%">提交于</th>
<th style="width:6%">状态</th>
<th class="text-center" style="width:12%">操作</th>
</tr>
</thead>
<tbody>
<script id="art_comment" type="text/html">
{{each data}}
{{if $value.state ==='已拒绝'}}
<tr class="danger">
{{else}}
<tr data-id="{{$value.id}}">
{{/if}}
<td>{{$value.author}}</td>
<td>{{$value.content}}</td>
<td>{{$value.title}}</td>
<td>{{$value.date}}</td>
<td>{{$value.state}}</td>
<td class="text-center">
{{if $value.state === '待审核'}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-success btn-xs btnAccept">批准</a>
<a href="javascript:void(0);"data-id="{{$value.id}}" class="btn btn-warning btn-xs btnReject">拒绝</a>
{{else if $value.state === '已通过'}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-warning btn-xs btnReject">拒绝</a>
{{else $value.state === '已拒绝'}}
<a href="javascript:void(0);"data-id="{{$value.id}}" class="btn btn-success btn-xs btnAccept">批准</a>
{{/if}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-danger btn-xs btnDelete">删除</a>
</td>
</tr>
{{/each}}
</script>
<!-- 模版 -->
<!-- <script type="text/html" id="art_comment">
{{each data}}
<tr class="danger" data-id="{{$value.id}}">
<td>{{$value.title}}</td>
<td>{{$value.author}}</td>
<td>{{$value.content}}</td>
<td class="text-center">{{$value.date}} </td>
<td class="text-center">{{$value.state}}</td>
<td class="text-center">
{{if $value.state === '待审核'}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-success btn-xs btnAccept">批准</a>
<a href="javascript:void(0);"data-id="{{$value.id}}" class="btn btn-warning btn-xs btnReject">拒绝</a>
{{else if $value.state === '已通过'}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-warning btn-xs btnReject">拒绝</a>
{{else $value.state === '已拒绝'}}
<a href="javascript:void(0);"data-id="{{$value.id}}" class="btn btn-success btn-xs btnAccept">批准</a>
{{/if}}
<a href="javascript:void(0);" data-id="{{$value.id}}" class="btn btn-danger btn-xs btnDelete">删除</a>
</td>
</td>
</tr>
{{/each}}
</script> -->
</tbody>
</table>
<div id="pager" class="row text-center"></div>
</div>
</div>
<script src="./libs/jquery/jquery.min.js"></script>
<!-- 导入bootstrap的js文件 -->
<script src="./libs/bootstrap/js/bootstrap.min.js"></script>
<!-- 引入 layui -->
<script src="./libs/layui/layui.js"></script>
<!-- 引入 模版引擎 -->
<script src="./libs/art-template/template-web.js"></script>
<!-- <script src="./libs/layui/lay/modules/layer.js"></script> -->
<!-- 引入富文本编辑器 -->
<script src="./tinymce_5.5.1/tinymce_5.5.1/tinymce.min.js"></script>
<!-- 公共js文件 -->
<script src="./js/common.js"></script>
<!-- 自己js文件 首页正常的业务 -->
<script src="./js/commen_tlist.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ATOMYAE86/events66.git
git@gitee.com:ATOMYAE86/events66.git
ATOMYAE86
events66
events66
dev

Search