|
|
@@ -52,7 +52,7 @@ |
|
|
|
<img class="logo" :src="item.mainPicRealPath" alt />
|
|
|
|
<div class="journalismText">
|
|
|
|
<h3>{{item.title}}</h3>
|
|
|
|
<span v-html="item.content"></span>
|
|
|
|
<span class="journalismText-content" v-html="item.content"></span>
|
|
|
|
<div class="time">{{item.publishDate}} <span class="el-icon-view"> {{item.view}}</span></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@@ -115,6 +115,7 @@ export default { |
|
|
|
homeService.getNewsList(data).then(res => {
|
|
|
|
res.list.forEach(ele => {
|
|
|
|
ele.publishDate = moment(ele.publishDate).format("YYYY-MM-DD")
|
|
|
|
ele.content = ele.content.replace(/<img\b[^>]*>/, "");
|
|
|
|
});
|
|
|
|
this.newsList = res.list
|
|
|
|
})
|
|
|
@@ -329,8 +330,8 @@ export default { |
|
|
|
margin: 5px 0;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
height: 60px;
|
|
|
|
span.journalismText-content {
|
|
|
|
min-height: 60px;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: 19px;
|
|
|
|
color: #999;
|
|
|
|