d4ed1189 by 任超

style:新闻图片

1 parent 4d3e205b
......@@ -79,8 +79,8 @@ function HotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
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 + '">';
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>';
......
......@@ -71,8 +71,8 @@ function HotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
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 + '">';
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>';
......
......@@ -52,8 +52,8 @@ function HotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
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 + '">';
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>';
......
......@@ -81,8 +81,8 @@ function HotArticle() {
if (result.code == 200 && result.data != null) {
for (var i = 0; i < result.data.length; i++) {
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 + '">';
if(result.data[i].preViewUrl) {
li += '<img src="' + result.data[i].preViewUrl + '">';
}
li += '<h3>'+result.data[i].headline+'</h3>';
li += '<p class="recommend_date">'+result.data[i].deadtime+'</p>';
......
......@@ -53,8 +53,8 @@
<a class="xw" href='./xwxq.html?id={{item.id}}' target="_blank">
<div class="newsCon">
<div class="xw-left">
{{# if(item.cover != null ){ }}
<img src="{{ item.cover }}">
{{# if(item.preViewUrl != null ){ }}
<img src="{{ item.preViewUrl }}">
{{# } }}
</div>
<div class="xw-right">
......