523d2989 by 任超

style:新闻动态

1 parent 217122ff
......@@ -44,20 +44,20 @@ function HotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
if (i == 3) return;
li = '<li class="tj">';
li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">';
if (result.data[i].preViewUrl) {
li += '<img src="' + result.data[i].preViewUrl + '">';
}
li += '<span class="tj-title">'+result.data[i].headline+'</span>';
li += '<span class="tj-date">'+result.data[i].deadtime+'</span>';
li += '</li>';
li += '</a></li>';
recommend.append(li);
}
}
}
})
}
// 政策法规推荐
// 相应法规推荐
function PolicyHotArticle() {
var regulation = $("#regulation");
regulation.empty();
......@@ -72,9 +72,11 @@ function PolicyHotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li class="zcfg">'
li += '<a href="./xyzcxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'
li += '<div class="zcfg-top">'+result.data[i].headline+'</div>'
li += '<p class="zcfg-body">'+result.data[i].summary+'</p>'
li += '<div class="zcfg-bottom">'+result.data[i].deadtime+'</div>'
li += '</a>'
li += '</li>'
regulation.append(li);
}
......
......@@ -208,54 +208,12 @@
<h2 class="xwtjtitle">新闻推荐</h2>
</div>
<div class="right-body" id="news_recommendation">
<!-- <div class="tj">
<img
src="https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1938529415,777611275&fm=26&gp=0.jpg">
<span class="tj-title">
爬山虎国土空间信息化解决方案
</span>
<span class="tj-date">
2020-12-12
</span>
</div>
<div class="tj">
<img
src="https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1938529415,777611275&fm=26&gp=0.jpg">
<span class="tj-title">
爬山虎国土空间信息化解决方案终极方案
</span>
<span class="tj-date">
2020-12-12
</span>
</div> -->
</div>
<div class="right-bottom">
<div class="right-bottom-top">
<span>政策法规推荐</span>
<span>相应政策推荐</span>
</div>
<div id="regulation"></div>
<!-- <div 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>
</div>
<div 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>
</div> -->
</div>
</div>
</div>
......