style:新闻图片
Showing
5 changed files
with
10 additions
and
10 deletions
... | @@ -79,8 +79,8 @@ function HotArticle() { | ... | @@ -79,8 +79,8 @@ function HotArticle() { |
79 | if (result.code == 200 && result.data != null) { | 79 | if (result.code == 200 && result.data != null) { |
80 | for (var i = 0; i < result.data.length; i++) { | 80 | for (var i = 0; i < result.data.length; i++) { |
81 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 81 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
82 | if ( result.data[i].cover ) { | 82 | if ( result.data[i].preViewUrl ) { |
83 | li += '<img src="' + result.data[i].cover + '">'; | 83 | li += '<img src="' + result.data[i].preViewUrl + '">'; |
84 | } | 84 | } |
85 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; | 85 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; |
86 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | 86 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | ... | ... |
... | @@ -71,8 +71,8 @@ function HotArticle() { | ... | @@ -71,8 +71,8 @@ function HotArticle() { |
71 | if (result.code == 200 && result.data != null) { | 71 | if (result.code == 200 && result.data != null) { |
72 | for (var i = 0; i < result.data.length; i++) { | 72 | for (var i = 0; i < result.data.length; i++) { |
73 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 73 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
74 | if ( result.data[i].cover ) { | 74 | if ( result.data[i].preViewUrl ) { |
75 | li += '<img src="' + result.data[i].cover + '">'; | 75 | li += '<img src="' + result.data[i].preViewUrl + '">'; |
76 | } | 76 | } |
77 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; | 77 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; |
78 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | 78 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | ... | ... |
... | @@ -52,8 +52,8 @@ function HotArticle() { | ... | @@ -52,8 +52,8 @@ function HotArticle() { |
52 | if (result.code == 200 && result.data != null) { | 52 | if (result.code == 200 && result.data != null) { |
53 | for (var i = 0; i < result.data.length; i++) { | 53 | for (var i = 0; i < result.data.length; i++) { |
54 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 54 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
55 | if ( result.data[i].cover ) { | 55 | if ( result.data[i].preViewUrl ) { |
56 | li += '<img src="' + result.data[i].cover + '">'; | 56 | li += '<img src="' + result.data[i].preViewUrl + '">'; |
57 | } | 57 | } |
58 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; | 58 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; |
59 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | 59 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | ... | ... |
... | @@ -81,8 +81,8 @@ function HotArticle() { | ... | @@ -81,8 +81,8 @@ function HotArticle() { |
81 | if (result.code == 200 && result.data != null) { | 81 | if (result.code == 200 && result.data != null) { |
82 | for (var i = 0; i < result.data.length; i++) { | 82 | for (var i = 0; i < result.data.length; i++) { |
83 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 83 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
84 | if(result.data[i].cover) { | 84 | if(result.data[i].preViewUrl) { |
85 | li += '<img src="' + result.data[i].cover + '">'; | 85 | li += '<img src="' + result.data[i].preViewUrl + '">'; |
86 | } | 86 | } |
87 | li += '<h3>'+result.data[i].headline+'</h3>'; | 87 | li += '<h3>'+result.data[i].headline+'</h3>'; |
88 | li += '<p class="recommend_date">'+result.data[i].deadtime+'</p>'; | 88 | li += '<p class="recommend_date">'+result.data[i].deadtime+'</p>'; | ... | ... |
... | @@ -53,8 +53,8 @@ | ... | @@ -53,8 +53,8 @@ |
53 | <a class="xw" href='./xwxq.html?id={{item.id}}' target="_blank"> | 53 | <a class="xw" href='./xwxq.html?id={{item.id}}' target="_blank"> |
54 | <div class="newsCon"> | 54 | <div class="newsCon"> |
55 | <div class="xw-left"> | 55 | <div class="xw-left"> |
56 | {{# if(item.cover != null ){ }} | 56 | {{# if(item.preViewUrl != null ){ }} |
57 | <img src="{{ item.cover }}"> | 57 | <img src="{{ item.preViewUrl }}"> |
58 | {{# } }} | 58 | {{# } }} |
59 | </div> | 59 | </div> |
60 | <div class="xw-right"> | 60 | <div class="xw-right"> | ... | ... |
-
Please register or sign in to post a comment