style:新闻动态
Showing
2 changed files
with
17 additions
and
3 deletions
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | margin-top: 5px; | 77 | margin-top: 5px; |
78 | } | 78 | } |
79 | .policy_list { | 79 | .policy_list { |
80 | padding-bottom: 30px; | 80 | padding-bottom: 20px; |
81 | border-bottom: 1px solid #DEDEDE; | 81 | border-bottom: 1px solid #DEDEDE; |
82 | } | 82 | } |
83 | .news_list { | 83 | .news_list { |
... | @@ -88,3 +88,15 @@ | ... | @@ -88,3 +88,15 @@ |
88 | height: 124px; | 88 | height: 124px; |
89 | margin-bottom: 10px; | 89 | margin-bottom: 10px; |
90 | } | 90 | } |
91 | .tj-date { | ||
92 | display: block; | ||
93 | color: #9B9B9B; | ||
94 | font-size: 12px; | ||
95 | margin-top: 5px; | ||
96 | } | ||
97 | .tj { | ||
98 | margin-top: 10px; | ||
99 | } | ||
100 | .policy_list_con li { | ||
101 | margin-bottom: 10px; | ||
102 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -70,11 +70,13 @@ function HotArticle() { | ... | @@ -70,11 +70,13 @@ 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 | li = '<li class="tj">'; | 73 | li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; |
74 | if ( result.data[i].cover ) { | ||
74 | li += '<img src="' + result.data[i].cover + '">'; | 75 | li += '<img src="' + result.data[i].cover + '">'; |
76 | } | ||
75 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; | 77 | li += '<span class="tj-title">' + result.data[i].headline + '</span>'; |
76 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; | 78 | li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; |
77 | li += '</li>'; | 79 | li += '</a></li>'; |
78 | recommend.append(li); | 80 | recommend.append(li); |
79 | } | 81 | } |
80 | } | 82 | } | ... | ... |
-
Please register or sign in to post a comment