diff --git a/src/views/aboutus.vue b/src/views/aboutus.vue index 0c7f36f..41ce668 100644 --- a/src/views/aboutus.vue +++ b/src/views/aboutus.vue @@ -166,6 +166,9 @@ +
+
该年份暂无内容展示
+
diff --git a/src/views/news.vue b/src/views/news.vue index ffc6eac..2ced0d7 100644 --- a/src/views/news.vue +++ b/src/views/news.vue @@ -38,7 +38,7 @@
-
+
- {{item.source}} + height: 79px; + -webkit-box-orient:vertical; + margin-top: 10px;" v-html="item.content"> +
@@ -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 }) diff --git a/src/views/project.vue b/src/views/project.vue index 35aa83d..644f967 100644 --- a/src/views/project.vue +++ b/src/views/project.vue @@ -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;