style:新闻推荐
Showing
5 changed files
with
5 additions
and
0 deletions
... | @@ -78,6 +78,7 @@ function HotArticle() { | ... | @@ -78,6 +78,7 @@ function HotArticle() { |
78 | success: function (result) {//返回数据根据结果进行相应的处理 | 78 | success: function (result) {//返回数据根据结果进行相应的处理 |
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 | if (i == 3) return; | ||
81 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 82 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
82 | if ( result.data[i].preViewUrl ) { | 83 | if ( result.data[i].preViewUrl ) { |
83 | li += '<img src="' + result.data[i].preViewUrl + '">'; | 84 | li += '<img src="' + result.data[i].preViewUrl + '">'; | ... | ... |
... | @@ -70,6 +70,7 @@ function HotArticle() { | ... | @@ -70,6 +70,7 @@ function HotArticle() { |
70 | success: function (result) {//返回数据根据结果进行相应的处理 | 70 | success: function (result) {//返回数据根据结果进行相应的处理 |
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 | if (i == 3) return; | ||
73 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 74 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
74 | if ( result.data[i].preViewUrl ) { | 75 | if ( result.data[i].preViewUrl ) { |
75 | li += '<img src="' + result.data[i].preViewUrl + '">'; | 76 | li += '<img src="' + result.data[i].preViewUrl + '">'; | ... | ... |
... | @@ -51,6 +51,7 @@ function HotArticle() { | ... | @@ -51,6 +51,7 @@ function HotArticle() { |
51 | success: function (result) {//返回数据根据结果进行相应的处理 | 51 | success: function (result) {//返回数据根据结果进行相应的处理 |
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 | if (i == 3) return; | ||
54 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 55 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
55 | if ( result.data[i].preViewUrl ) { | 56 | if ( result.data[i].preViewUrl ) { |
56 | li += '<img src="' + result.data[i].preViewUrl + '">'; | 57 | li += '<img src="' + result.data[i].preViewUrl + '">'; | ... | ... |
... | @@ -43,6 +43,7 @@ function HotArticle() { | ... | @@ -43,6 +43,7 @@ function HotArticle() { |
43 | success: function (result) {//返回数据根据结果进行相应的处理 | 43 | success: function (result) {//返回数据根据结果进行相应的处理 |
44 | if (result.code == 200 && result.data != null) { | 44 | if (result.code == 200 && result.data != null) { |
45 | for (var i = 0; i < result.data.length; i++) { | 45 | for (var i = 0; i < result.data.length; i++) { |
46 | if (i == 3) return; | ||
46 | li = '<li class="tj">'; | 47 | li = '<li class="tj">'; |
47 | if (result.data[i].preViewUrl) { | 48 | if (result.data[i].preViewUrl) { |
48 | li += '<img src="' + result.data[i].preViewUrl + '">'; | 49 | li += '<img src="' + result.data[i].preViewUrl + '">'; | ... | ... |
... | @@ -80,6 +80,7 @@ function HotArticle() { | ... | @@ -80,6 +80,7 @@ function HotArticle() { |
80 | success: function (result) {//返回数据根据结果进行相应的处理 | 80 | success: function (result) {//返回数据根据结果进行相应的处理 |
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 | if (i == 3) return; | ||
83 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; | 84 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
84 | if(result.data[i].preViewUrl) { | 85 | if(result.data[i].preViewUrl) { |
85 | li += '<img src="' + result.data[i].preViewUrl + '">'; | 86 | li += '<img src="' + result.data[i].preViewUrl + '">'; | ... | ... |
-
Please register or sign in to post a comment