6b8ca01d by 任超

style:新闻详情

1 parent 7b5f456d
......@@ -17,17 +17,17 @@ document.writeln(" <div class=\'footer\'> ");
document.writeln(" <div class=\'system_service\'>");
document.writeln(" <ul class=\'\'>");
document.writeln(" <li>");
document.writeln(" <a href=\'\' title=\'公示公告\'>");
document.writeln(" <a href=\'"+localhostPaht+"/staticViews/gsgg.html\' title=\'公示公告\'>");
document.writeln(" <span>公示公告</span>");
document.writeln(" </a>");
document.writeln(" </li>");
document.writeln(" <li>");
document.writeln(" <a href=\'\' title=\'法律法规\'>");
document.writeln(" <a href=\'"+localhostPaht+"/staticViews/flfg.html\' title=\'法律法规\'>");
document.writeln(" <span>法律法规</span>");
document.writeln(" </a>");
document.writeln(" </li>");
document.writeln(" <li>");
document.writeln(" <a href=\'\' title=\'相应政策\'>");
document.writeln(" <a href=\'"+localhostPaht+"/staticViews/xyzc.html\' title=\'相应政策\'>");
document.writeln(" <span>相应政策</span>");
document.writeln(" </a>");
document.writeln(" </li>");
......
......@@ -78,11 +78,13 @@ function HotArticle() {
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li>';
li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">';
if ( result.data[i].cover ) {
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>';
}
li += '<span class="tj-title">' + result.data[i].headline + '</span>';
li += '<span class="tj-date">' + result.data[i].deadtime + '</span>';
li += '</a></li>';
news_list_con.append(li);
}
}
......
......@@ -2,10 +2,10 @@ $(function () {
layui.use('element', function () {
let element = layui.element;
});
addTabs('#zwgk')
getLawsArticleList()
getPolicyHotArticleList()
HotArticle()
addTabs('#zwgk');
getLawsArticleList();
getPolicyHotArticleList();
HotArticle();
})
// 获取相应政策表数据
......@@ -78,11 +78,13 @@ function HotArticle() {
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li>';
li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">';
if(result.data[i].cover) {
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>';
li += '</a></li>';
news_list_con.append(li);
}
}
......