ae46a10e by 任超

style:相应政策

1 parent 3508b875
.laws_regulations {
width: 1200px;
margin: 0 auto;
padding-top: 30px;
overflow: hidden;
}
.item_list {
float: left;
width: 82%;
padding-bottom: 30px;
}
.item_list ul {
border-right: 1px solid #DEDEDE;
min-height: 630px;
}
.item_list li{
line-height: 50px;
border-bottom: 1px solid #DEDEDE;
box-sizing: border-box;
padding-right: 20px;
}
.item_list li p{
display: inline-block;
font-size: 20px;
color: #4a4a4a;
width: 82%;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.item_list li span {
color: #9B9B9B;
float: right;
}
.item_list li {
cursor: pointer;
}
.item_list li:hover p{
color: #0091FF;
}
.item_list li:hover span{
color: #0091FF;
}
.recommend_list {
float: right;
width: 200px;
margin-left: 10px;
margin-bottom: 10px;
min-height: 500px;
}
#page {
text-align: center;
margin-top: -35px;
}
.recommend_list h2 {
font-size: 18px;
margin-bottom: 15px;
color: #4A4A4A;
font-weight: 600;
}
.recommend_list h3 {
font-size: 14px;
color: #4A4A4A;
font-weight: 600;
margin-bottom: 5px;
}
.recommend_list .recommend_con {
color: #6D7278;
line-height: 21px;
font-size: 14px;
}
.recommend_list .recommend_date {
color: #9B9B9B;
font-size: 12px;
margin-top: 5px;
}
.policy_list {
padding-bottom: 30px;
border-bottom: 1px solid #DEDEDE;
}
.news_list {
padding-top: 30px;
}
.news_list img {
width: 100%;
height: 124px;
margin-bottom: 10px;
}
\ No newline at end of file
.main {
overflow: hidden;
}
div.subject h2 a:hover {
color: #0091FF;
}
div.subject {
margin: 0 auto;
float: none;
clear: both;
position: relative;
min-width: 1200px;
}
.contentBox {
width: 1200px;
margin: 0 auto;
overflow: hidden;
padding-bottom: 0!important;
}
.one_content {
border: 1px solid #DEDEDE;;
margin-top: 30px;
}
.one_content .layui-tab {
margin: 0;
}
.one_content .layui-tab-title li {
width: 100px;
font-weight: 600;
color: #6D7278;
}
.one_content .layui-tab-title .layui-this {
color: #4A4A4A;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after, .layui-tab-brief > .layui-tab-title .layui-this:after {
border-color: #006CFF;
}
.layui-tab .layui-tab-brief .layui-this {
color: #006CFF;
}
.layui-tab .layui-tab-brief li {
width: 90px;
}
.online_business {
margin-top: 20px;
}
.online_business h2 {
width: 100%;
height: 43px;
line-height: 43px;
background: #FAFAFA;
border-radius: 4px;
border: 1px solid #DEDEDE;
padding-left: 15px;
box-sizing: border-box;
}
.online_list {
padding-bottom: 20px;
overflow: hidden;
}
.online_list li {
width: 45% !important;
float: left;
height: 60px;
line-height: 60px;
border-bottom: 1px dotted #DEDEDE;
}
.online_list li:nth-child(even) {
margin-left: 10%;
}
.online_list li a {
display: block;
width: 100%;
}
.online_list li a:hover span {
color: #0091FF;
}
.online_list li a button {
float: right;
margin-top: 15px;
}
/* ---------------------------------------------------- */
.content_zc {
min-height:calc(100vh - 190px);
}
.leftandright {
width: 1200px;
margin: 0 auto;
overflow: hidden;
}
.leftandright .left {
width: 80%;
}
.right {
width: 400px;
}
.left {
width: 82%;
}
.left, .right {
float: left;
}
.xw {
display: block;
padding-top: 10px;
height: 112px;
cursor: pointer;
}
.xw-left {
margin-right: 20px;
}
.xw-left img {
width: 200px;
height: 125px;
background: #D8D8D8;
}
.xw-left, .xw-right {
float: left;
}
.xw-right {
padding-right: 10px;
}
.leftContainer{
border-right: 1px solid #DEDEDE;
margin-top: 28px;
padding-bottom: 20px;
}
.leftContainer li{
border-bottom: 1px solid #EAEAEA;
margin-bottom: 25px;
}
.leftContainer li:last-child{
border-bottom: 1px solid #DEDEDE;
}
.left-top {
width: 408px;
height: 18px;
font-size: 18px;
font-weight: bold;
color: #686666;
line-height: 18px;
cursor: pointer;
}
.left-top:hover {
color: #686666;
}
.left-body {
font-size: 14px;
font-weight: 400;
color: #6D7278;
line-height: 25px;
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.left-buttom {
overflow: hidden;
color: #9B9B9B;
}
.left-buttom .icon{
width: 36px;
height: 24px;
position: relative;
top: 6px;
}
.left-buttom div:nth-child(2) {
margin-left: 60px;
}
.left-buttom div {
float: left;
line-height: 57px
}
.left-buttom-date {
line-height: 57px;
float: right !important;
margin-right: 20px;
}
#page {
margin-top: 20px;
text-align: center;
margin-bottom: 50px;
}
.right {
width: 200px;
margin-top: 36px;
margin-left: 15px;
}
.right-top {
height: 18px;
font-size: 18px;
font-weight: 500;
color: #686666;
line-height: 0;
}
.right-top h2 {
font-weight: 600;
cursor: pointer;
}
.right-body {
display: inline-block;
margin-bottom: 20px;
}
.tj img {
width: 200px;
height: 125px;
margin-top: 20px;
}
.tj img, .tj span {
float: left;
}
.tj-title {
width: 203px;
font-size: 14px;
font-weight: bold;
color: #4A4A4A;
line-height: 21px;
}
.tj-date {
width: 90px;
height: 12px;
font-size: 12px;
font-weight: 400;
color: #9B9B9B;
line-height: 12px;
}
.right-bottom {
border-top: 1px solid #DEDEDE;
}
.right-bottom-top {
width: 108px;
height: 18px;
font-size: 18px;
margin-top: 20px;
font-weight: bold;
color: #4A4A4A;
line-height: 18px;
}
.zcfg {
margin-top: 20px;
display: inline-block;
}
.zcfg div {
float: left;
}
.zcfg-top {
width: 200px;
height: 14px;
font-size: 14px;
font-weight: bold;
color: #686666;
line-height: 14px;
margin-bottom: 5px;
}
.zcfg-body {
width: 200px;
font-size: 14px;
display: inline-block;
font-weight: 400;
color: #6D7278;
line-height: 21px;
}
.zcfg-bottom {
width: 90px;
height: 12px;
font-size: 12px;
font-weight: 400;
color: #9B9B9B;
line-height: 12px;
}
$(function () {
layui.use('element', function () {
let element = layui.element;
});
addTabs('#zwgk')
getLawsArticleList()
getPolicyHotArticleList()
HotArticle()
})
// 获取法律法规列表数据
function getLawsArticleList() {
var flfgList = $("#flfgList");
flfgList.empty();
var li = '';
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/hlwj/MhLaws/getLawsArticleList",//路径
dataType: "json",
async: false,
data: {
"currentPage": data.currentPage,
"pageSize": data.pageSize
},
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
data.total = result.data.total
for (var i = 0; i < result.data.records.length; i++) {
li = '<li>';
li += '<a href="./flfgxq.html?id='+result.data.records[i].id+'" title="' + result.data.records[i].headline + '" target="_blank">'
li += '<p>' + result.data.records[i].headline + '</p>';
li += '<span>' + result.data.records[i].deadtime + '</span>';
li += '</a>';
li += '</li>';
flfgList.append(li);
}
}
}
})
}
// 相应政策推荐
function getPolicyHotArticleList() {
var policy_list_con = $(".policy_list_con");
policy_list_con.empty();
var li = '';
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/hlwj/MhPolicy/getPolicyHotArticleList",//路径
dataType: "json",
async: false,
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li>'
li += '<h3>'+result.data[i].headline+'</h3>'
li += '<p class="recommend_con">'+result.data[i].summary+'</p>'
li += '<p class="recommend_date">'+result.data[i].deadtime+'</p>'
li += '</li>'
policy_list_con.append(li);
}
}
}
})
}
// 获取新闻动态的推荐数据
function HotArticle() {
var news_list_con = $(".news_list_con");
news_list_con.empty();
var li = '';
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/hlwj/MhNews/getNewsHotArticleList",//路径
dataType: "json",
async: false,
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li>';
li += '<img src="' + result.data[i].cover + '">';
li += '<h3>'+result.data[i].headline+'</h3>';
li += '<p class="recommend_date">'+result.data[i].deadtime+'</p>';
li += '</li>';
news_list_con.append(li);
}
}
}
})
}
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
getLawsArticleList();
}
});
});
var data = { //数据
"list": [],
total: undefined,
currentPage: 1,
pageSize: 5
};
\ No newline at end of file
$(function () {
layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
//监听导航点击
element.on('nav(demo)', function (elem) {
//console.log(elem)
layer.msg(elem.text());
});
});
layui.use('laypage', function () {
let laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
, count: 50 //数据总数,从服务端得到
, prev: '<'
, next: '>'
, theme: '#0091FF'
});
})
addTabs('#zwgk')
})
// 初始化数据
function initData() {
var recommend = $("#news_recommendation");
recommend.empty();
var li = '';
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/hlwj/MhNews/getNewsHotArticleList",//路径
dataType: "json",
async: false,
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
console.log(result.data)
for (var i = 0; i < result.data.length; i++) {
li = '<li class="tj">';
li += '<img src="' + result.data[i].cover + '">';
li += '<span class="tj-title">'+result.data[i].headline+'</span>';
li += '<span class="tj-date">'+result.data[i].deadtime+'</span>';
li += '</li>';
recommend.append(li);
}
}
}
})
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
<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/zcfg.css">
<link rel="stylesheet" type="text/css" href="../staticCss/xyzc.css">
</head>
<body>
......@@ -16,81 +16,30 @@
<div class="contentBox">
<span class="layui-breadcrumb">
<a href="../index.html">首页</a>
<a><cite>政策法规</cite></a>
<a><cite>相应政策</cite></a>
</span>
</div>
</div>
<div class="content_zc">
<div class="leftandright">
<div class="left">
<ul class="leftContainer">
<li>
<a class="left-top" title="前三季度主要指标由负转正 中国经济持续稳定恢复" target="_blank">
前三季度主要指标由负转正 中国经济持续稳定恢复
</a>
<a class="xw" href="./../xwxq/index.html" target="_blank">
<div class="xw-right">
<div class="left-body">
10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形式,农业农村部总经济师,发展
划司司长魏白刚介绍,今年农业收来之不易,农业农村经济保持了持续向好、稳中有进的态势,粮食丰收已成定局,预计产量达到历史最高水平
</div>
<div class="left-buttom">
<div>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconchakan"></use>
</svg>
<span>123</span>
</div>
<div>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconpinglun"></use>
</svg>
<span>456</span>
</div>
<div class="left-buttom-date">
2020-12-27
</div>
</div>
</div>
</a>
</li>
<div class="laws_regulations">
<div class="item_list">
<ul id="flfgList">
</ul>
<div id="page"></div>
</div>
<div class="right">
<div class="right-top">
<h2>政策法规推荐</h2>
</div>
<ul class="right-bottom">
<li class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
</div>
</li>
<li class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
</div>
</li>
<div class="recommend_list">
<ul class="policy_list">
<h2>相应政策</h2>
<div class="policy_list_con"></div>
</ul>
<ul class="news_list">
<h2>新闻推荐</h2>
<div class="news_list_con"></div>
</ul>
</div>
</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/zcfg.js"></script>
<script type="text/javascript" src="../staticJs/xyzc.js"></script>
</html>
\ No newline at end of file
......