d8f93b5e by 任超

style:新闻动态

1 parent b873b629
......@@ -166,4 +166,5 @@ div.navigation {
}
.download-attachment a:hover {
color: #006cff;
text-decoration:underline;
}
\ No newline at end of file
......
......@@ -93,27 +93,29 @@ function PolicyHotArticle() {
}
layui.use('laypage', function () {
let laypage = layui.laypage;
laypage.render({
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
, count: data.total //数据总数,从服务端得到
, limit: 5
, prev: '<'
, next: '>'
, theme: '#0091FF'
, jump: function (obj, first) {
if (!first) {
LoadNewsData(obj.curr);
}
}
});
if(data.total ==0) {
$('#page').hide();
}else {
$('#page').show();
}
})
// layui.use('laypage', function () {
// let laypage = layui.laypage;
// laypage.render({
// elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
// , count: 100 //数据总数,从服务端得到
// , limit: 5
// , prev: '<'
// , next: '>'
// , theme: '#0091FF'
// ,first: '首页'
// ,last: '尾页'
// , jump: function (obj, first) {
// if (!first) {
// LoadNewsData(obj.curr);
// }
// }
// });
// if(data.total ==0) {
// $('#page').hide();
// }else {
// $('#page').show();
// }
// })
var data = { //数据
"list": [],
total: 0
......
......@@ -33,6 +33,7 @@
<div class="notice_content" id="newsDetail">
</div>
<div class="download-attachment">
<span>附件:</span>
<a href="" title = "中文开放目录">下载</a><a title = "中文开放目录" href="">下载</a>
</div>
</div>
......@@ -40,5 +41,4 @@
<script type="text/javascript" src="../staticJs/common.js"></script>
<script type="text/javascript" src="../staticJs/down.js"></script>
<script type="text/javascript" src="../staticJs/businessGuideDeatil.js"></script>
</html>
\ No newline at end of file
......
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
</style>
......@@ -9,6 +10,7 @@
<script type="text/javascript" src="../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../staticCss/xwdt.css">
</head>
<body>
<div class="navigation_crumbs">
<div class="contentBox">
......@@ -22,7 +24,21 @@
<div class="left">
<ul class="leftContainer" id='ulNews'>
</ul>
<div id="page"></div>
<div id="page">
<div class="layui-box layui-laypage layui-laypage-molv">
<a href="javascript:;" class="layui-laypage-prev">&lt;</a>
<a href="javascript:;" class="layui-laypage-first" title="首页">首页</a>
<a href="javascript:;">1</a>
<span class="layui-laypage-curr">
<em class="layui-laypage-em" style="background-color:#0091FF;"></em>
<em>2</em>
</span>
<a href="javascript:;" >3</a>
<a href="javascript:;" class="layui-laypage-last" title="尾页">尾页</a>
<a href="javascript:;" class="layui-laypage-next">&gt;</a>
</div>
</div>
</div>
<div class="right">
<div class="right">
......