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.
91 lines
3.2 KiB
91 lines
3.2 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<!-- 通用 -->
|
|
{include file="common/head" /}
|
|
<!-- 当前 -->
|
|
<link rel="stylesheet" href="__TMPL__/static/css/mixin.css" />
|
|
<link rel="stylesheet" href="__TMPL__/static/css/notice.css">
|
|
</head>
|
|
|
|
<body>
|
|
{include file="common/header" /}
|
|
<div class="bannerList">
|
|
<div class="img">
|
|
<img src="__TMPL__/static/images/yanjiuyuan/banner2.jpg" alt="" />
|
|
</div>
|
|
<div class="w1280">
|
|
<div class="bannerTitle">公告</div>
|
|
</div>
|
|
</div>
|
|
<div class="tabs-head">
|
|
<div class="w1280">
|
|
<ul>
|
|
{hcTaglib:subcategory pid="11" item="vo" field="id,title" sort="sort asc"}
|
|
<li class="{$current_cate['id']==$vo.id?'active':''}"><a href="{:hcUrl('list/index',['id'=>$vo.id])}" >{$vo.title}</a></li>
|
|
{/hcTaglib:subcategory}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="w1280">
|
|
<ul class="notice-list">
|
|
{hcTaglib:contentPage moduleId="1" name="articleList" mainField="id,title,description,publish_time"}
|
|
<li class="notice-item">
|
|
<div class="date">
|
|
<h2>{$vo.publish_time|date='d'}</h2>
|
|
<span>{$vo.publish_time|date='Y-m'}</span>
|
|
</div>
|
|
<div class="title-desc">
|
|
<h6><a href="{:hcUrl('detail/index',['id'=>$vo['id'],'cid'=>$vo['category_id']])}">{$vo.title}</a></h6>
|
|
<p>{$vo.description}</p>
|
|
</div>
|
|
</li>
|
|
{/hcTaglib:contentPage}
|
|
</ul>
|
|
{$articleList|raw}
|
|
</div>
|
|
|
|
<!-- footer start-->
|
|
{include file="common/footer" /}
|
|
<!-- footer end -->
|
|
{include file="common/foot" /}
|
|
<!-- 当前 -->
|
|
<script src="__TMPL__/static/js/layui.js"></script>
|
|
|
|
<script>
|
|
layui.use(['laypage', 'layer'], function () {
|
|
var laypage = layui.laypage
|
|
, layer = layui.layer;
|
|
//分页器
|
|
laypage.render({
|
|
prev: '<em class="layui-icon layui-icon-left"></em>'
|
|
, next: '<em class="layui-icon layui-icon-right"></em>'
|
|
, elem: 'pager' //注意,这里的 test1 是 ID,不用加 # 号
|
|
, count: 30 //数据总数,从服务端得到
|
|
, groups: 3
|
|
, jump: function (obj, first) {
|
|
//obj包含了当前分页的所有参数,比如:
|
|
console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
|
|
console.log(obj.limit); //得到每页显示的条数
|
|
//首次不执行
|
|
if (!first) {
|
|
//do something
|
|
}
|
|
}
|
|
|
|
});
|
|
// tabs-head切换
|
|
$(".tabs-head ul li").click(function () {
|
|
$(this).siblings().removeClass("active");
|
|
$(this).addClass("active");
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|