e62f47ee by 任超

style:法律法规

1 parent 7e16013c
......@@ -41,7 +41,7 @@
<dl class='layui-nav-child'>
<dd><a href='/staticViews/policyList/1.html'>相应政策</a></dd>
<dd><a href='/staticViews/lawList/1.html'>法律法规</a></dd>
<dd><a href='/staticViews/gsgg.html'>公示公告</a></dd>
<dd><a href='/staticViews/noticeList/1.html'>公示公告</a></dd>
</dl>
</li>
<li id='bszn' class='layui-nav-item'><a href='/staticViews/bszn.html'
......
......@@ -3,7 +3,7 @@ $(function () {
let element = layui.element;
});
addTabs('#zwgk')
getLawsArticleList()
// getLawsArticleList()
getPolicyHotArticleList()
HotArticle()
})
......@@ -104,29 +104,29 @@ function HotArticle() {
layui.use('laypage', function () {
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
, count: data.total //数据总数,从服务端得到
, limit: data.pageSize
, prev: '<'
, next: '>'
, theme: '#0091FF'
, jump: function (obj, first) {
data.currentPage = obj.curr
if (!first) {
getLawsArticleList();
}
}
});
if (data.total == 0) {
$('#page').hide();
}else {
$('#page').show();
}
});
// layui.use('laypage', function () {
// var laypage = layui.laypage;
// //执行一个laypage实例
// laypage.render({
// elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
// , count: data.total //数据总数,从服务端得到
// , limit: data.pageSize
// , prev: '<'
// , next: '>'
// , theme: '#0091FF'
// , jump: function (obj, first) {
// data.currentPage = obj.curr
// if (!first) {
// getLawsArticleList();
// }
// }
// });
// if (data.total == 0) {
// $('#page').hide();
// }else {
// $('#page').show();
// }
// });
var data = { //数据
"list": [],
total: undefined,
......
$(function () {
newsCenterData();
//
fetchNewsData();
fetchNewsData(getItem('myCookie').username);
})
function newsCenterData() {
$(document).on("mouseover", ".sysNewsList .newsDetail", function (e) {
......
......@@ -3,7 +3,7 @@ $(function () {
let element = layui.element;
});
addTabs('#zwgk');
getLawsArticleList();
// getLawsArticleList();
getPolicyHotArticleList();
HotArticle();
})
......@@ -106,29 +106,29 @@ function HotArticle() {
layui.use('laypage', function () {
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
, count: data.total //数据总数,从服务端得到
, limit: data.pageSize
, prev: '<'
, next: '>'
, theme: '#0091FF'
, jump: function (obj, first) {
data.currentPage = obj.curr
if (!first) {
getLawsArticleList();
}
}
});
if (data.total ==0 ) {
$('#page').hide();
}else {
$('#page').show();
}
});
// layui.use('laypage', function () {
// var laypage = layui.laypage;
// //执行一个laypage实例
// laypage.render({
// elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
// , count: data.total //数据总数,从服务端得到
// , limit: data.pageSize
// , prev: '<'
// , next: '>'
// , theme: '#0091FF'
// , jump: function (obj, first) {
// data.currentPage = obj.curr
// if (!first) {
// getLawsArticleList();
// }
// }
// });
// if (data.total ==0 ) {
// $('#page').hide();
// }else {
// $('#page').show();
// }
// });
var data = { //数据
"list": [],
total: 0,
......
......@@ -6,15 +6,15 @@
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>公示公告</title>
<script type="text/javascript" src="../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../staticCss/gsgg.css">
<script type="text/javascript" src="../../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../../staticCss/gsgg.css">
</head>
<body>
<div class="navigation_crumbs">
<div class="contentBox">
<span class="layui-breadcrumb">
<a href="../index.html">首页</a>
<a href="../../index.html">首页</a>
<a>政务公开</a>
<a><cite>公示公告</cite></a>
</span>
......@@ -52,31 +52,7 @@
</div>
</div>
</body>
<script type="text/javascript" src="../staticJs/common.js"></script>
<script type="text/javascript" src="../staticJs/down.js"></script>
<script type="text/javascript" src="../staticJs/gsgg.js"></script>
<script id="demo" type="text/html">
{{# layui.each(d.list, function(index, item){ }}
<li>
<a href='./notice/{{item.id}}.html' target="_blank">
<div class="gg">
{{# if(item.noticeType == 1){ }}
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icongongshi"></use>
</svg>
{{# } }}
{{# if(item.noticeType == 2){ }}
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icongonggao1"></use>
</svg>
{{# } }}
<p class="item_list">
{{item.title}}
</p>
</div>
</a>
</li>
{{# }); }}
</script>
<script type="text/javascript" src="../../staticJs/common.js"></script>
<script type="text/javascript" src="../../staticJs/down.js"></script>
<script type="text/javascript" src="../../staticJs/gsgg.js"></script>
</html>
\ No newline at end of file
......