31ad8541 by 任超

style:新闻动态列表的页面的修改

1 parent 22304f3e
......@@ -312,3 +312,7 @@ div.subject {
.newsCon {
overflow: hidden;
}
.tj {
margin: 10px 0;
cursor: pointer;
}
\ No newline at end of file
......
......@@ -49,11 +49,13 @@ function HotArticle() {
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
li = '<li class="tj">';
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 += '<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);
}
}
......