671438d8 by 任超

style:新闻动态

1 parent c1245dec
...@@ -139,7 +139,7 @@ div.subject { ...@@ -139,7 +139,7 @@ div.subject {
139 .leftContainer{ 139 .leftContainer{
140 border-right: 1px solid #DEDEDE; 140 border-right: 1px solid #DEDEDE;
141 margin-top: 41px; 141 margin-top: 41px;
142 padding-bottom: 20px; 142 padding-bottom: 60px;
143 } 143 }
144 .leftContainer li { 144 .leftContainer li {
145 border-bottom: 1px solid #EAEAEA; 145 border-bottom: 1px solid #EAEAEA;
...@@ -150,11 +150,10 @@ div.subject { ...@@ -150,11 +150,10 @@ div.subject {
150 } 150 }
151 .left-top { 151 .left-top {
152 width: 408px; 152 width: 408px;
153 height: 18px;
154 font-size: 18px; 153 font-size: 18px;
155 font-weight: bold; 154 font-weight: bold;
156 color: #686666; 155 color: #686666;
157 line-height: 18px; 156 line-height: 21px;
158 cursor: pointer; 157 cursor: pointer;
159 } 158 }
160 .left-top:hover { 159 .left-top:hover {
...@@ -201,15 +200,15 @@ div.subject { ...@@ -201,15 +200,15 @@ div.subject {
201 } 200 }
202 201
203 #page { 202 #page {
204 margin-top: 20px; 203 margin-top: -35px;
205 text-align: center; 204 text-align: center;
206 margin-bottom: 50px; 205 margin-bottom: 60px;
207 } 206 }
208 207
209 .right { 208 .right {
210 width: 200px; 209 width: 200px;
211 margin-top: 36px; 210 margin-top: 20px;
212 margin-left: 15px; 211 margin-left: 10px;
213 } 212 }
214 213
215 .right-top { 214 .right-top {
......
...@@ -37,7 +37,7 @@ $(function () { ...@@ -37,7 +37,7 @@ $(function () {
37 function LoadNewsData() { 37 function LoadNewsData() {
38 $.ajax({ 38 $.ajax({
39 type: "get", //提交方式 39 type: "get", //提交方式
40 url: portal.api_url + "/hlwj/Mh/getNewsArticleList",//路径 40 url: portal.api_url + "/hlwj/MhNews/getNewsArticleList",//路径
41 data:{ 41 data:{
42 "currentPage":1, 42 "currentPage":1,
43 "pageSize":10 43 "pageSize":10
......
...@@ -23,14 +23,10 @@ ...@@ -23,14 +23,10 @@
23 <div class="leftandright"> 23 <div class="leftandright">
24 <div class="left"> 24 <div class="left">
25 <ul class="leftContainer" id='ulNews'> 25 <ul class="leftContainer" id='ulNews'>
26
27 </ul> 26 </ul>
28 <div id="page"></div> 27 <div id="page"></div>
29 </div> 28 </div>
30 <div class="right"> 29 <div class="right">
31 <div class="right-top">
32 <h2>新闻推荐</h2>
33 </div>
34 <div class="right"> 30 <div class="right">
35 <div class="right-top"> 31 <div class="right-top">
36 <h2>新闻推荐</h2> 32 <h2>新闻推荐</h2>
...@@ -93,42 +89,46 @@ ...@@ -93,42 +89,46 @@
93 <script type="text/javascript" src="../staticJs/xwdt.js"></script> 89 <script type="text/javascript" src="../staticJs/xwdt.js"></script>
94 <script id="demo" type="text/html"> 90 <script id="demo" type="text/html">
95 {{# layui.each(d.list, function(index, item){ }} 91 {{# layui.each(d.list, function(index, item){ }}
96 <li> 92 <li>
97 <a class="left-top" title=" {{ item.headline }}" href="./xwxq.html" target="_blank"> 93 <a class="left-top" title=" {{ item.headline }}" href="./xwxq.html" target="_blank">
98 {{ item.headline }} 94 {{ item.headline }}
99 </a> 95 </a>
100 <a class="xw" href="./news/xwxq.html" target="_blank"> 96 <a class="xw" href="./news/xwxq.html" target="_blank">
101 <div class="xw-left"> 97 <div class="xw-left">
102 <img 98 {{# if(item.cover != null){ }}
103 src="{{ item.cover }}"> 99 <img src="{{ item.cover }}">
104 </div> 100 {{# } }}
105 <div class="xw-right"> 101 {{# if(item.cover == null){ }}
106 <div class="left-body"> 102 <img src="../staticImages/news_demo.jpg">
107 {{# if(item.summary !== null){ }} 103 {{# } }}
108 {{ item.summary }} 104 </div>
109 {{# } }} 105 <div class="xw-right">
110 </div> 106 <div class="left-body">
111 <div class="left-buttom"> 107 {{# if(item.summary !== null){ }}
112 <div> 108 {{ item.summary }}
113 <svg class="icon svg-icon" aria-hidden="true"> 109 {{# } }}
114 <use xlink:href="#iconchakan"></use> 110 </div>
115 </svg> 111 <div class="left-buttom">
116 <span> {{ item.pageviews }}</span> 112 <div>
117 </div> 113 <svg class="icon svg-icon" aria-hidden="true">
118 <div> 114 <use xlink:href="#iconchakan"></use>
119 <svg class="icon svg-icon" aria-hidden="true"> 115 </svg>
120 <use xlink:href="#iconpinglun"></use> 116 <span> {{ item.pageviews }}</span>
121 </svg> 117 </div>
122 <span>{{ item.commentnum }}</span> 118 <div>
123 </div> 119 <svg class="icon svg-icon" aria-hidden="true">
124 <div class="left-buttom-date"> 120 <use xlink:href="#iconpinglun"></use>
125 {{ CutDate(item.publishTime) }} 121 </svg>
126 </div> 122 <span>{{ item.commentnum }}</span>
127 </div> 123 </div>
128 </div> 124 <div class="left-buttom-date">
129 </a> 125 {{ CutDate(item.publishTime) }}
130 </li> 126 </div>
131 {{# }); }} 127 </div>
128 </div>
129 </a>
130 </li>
131 {{# }); }}
132 </script> 132 </script>
133 133
134 </html> 134 </html>
...\ No newline at end of file ...\ No newline at end of file
......