'init'
This commit is contained in:
parent
55559a557d
commit
76e8ba8c5d
@ -166,6 +166,9 @@
|
||||
|
||||
|
||||
</div>
|
||||
<div v-if="!honorList.length" style="height: 400px;display: flex;justify-content: center;align-items: center;">
|
||||
<div style="color: #999;">该年份暂无内容展示</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="activeName == 'fourth'" style="margin-bottom: -50px;">
|
||||
<div style="height: 50px;"></div>
|
||||
|
@ -38,7 +38,7 @@
|
||||
<div style="width: 80%;margin: auto;">
|
||||
<div v-for="item in rest" class="newsitem" style="overflow: hidden; padding: 30px 0 24px;position: relative;cursor: pointer;display: flex;" @click="changeto(item.id)">
|
||||
<div class="date1" style=""><img :src="item.pic" style="width: 236px;height: 157px;"></img></div>
|
||||
<div class="" style=" width: 65%;margin-left: 35px;">
|
||||
<div class="" style=" width: 65%;margin-left: 35px;overflow: hidden;">
|
||||
<div style=" font-size: 18px;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
@ -53,8 +53,10 @@
|
||||
|
||||
<div style="font-size: 14px;
|
||||
color: #666666;
|
||||
margin-top: 10px;">
|
||||
{{item.source}}
|
||||
height: 79px;
|
||||
-webkit-box-orient:vertical;
|
||||
margin-top: 10px;" v-html="item.content">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -82,15 +84,17 @@ export default{
|
||||
},
|
||||
mounted(){
|
||||
getnews({'page':0}).then((res)=>{
|
||||
|
||||
// 遍历数组,对每个对象的richText属性进行处理
|
||||
res.data.content.forEach(item => {
|
||||
// 去除所有标签和空格
|
||||
item.content = item.content.replace(/<[^>]+>/g, '').trim();
|
||||
});
|
||||
this.newslist=res.data.content
|
||||
|
||||
let arr=this.newslist.slice(0,3)
|
||||
|
||||
// 遍历数组,对每个对象的richText属性进行处理
|
||||
arr.forEach(item => {
|
||||
// 去除所有标签和空格
|
||||
item.content = item.content.replace(/<[^>]+>/g, '').trim();
|
||||
});
|
||||
|
||||
this.newshow=arr
|
||||
|
||||
})
|
||||
|
@ -52,7 +52,7 @@ export default{
|
||||
return{
|
||||
activeName:'first',
|
||||
radio3:'1',
|
||||
PrijectList:[],
|
||||
PrijectList:[{},{},{},{},{},{}],
|
||||
total:40,
|
||||
params: {
|
||||
type: '房屋建筑',
|
||||
@ -268,6 +268,10 @@ li {
|
||||
|
||||
.l {
|
||||
float: left;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 90%;
|
||||
}
|
||||
b, strong {
|
||||
font-weight: 700;
|
||||
|
Loading…
Reference in New Issue
Block a user