diff --git a/src/layouts/footer/index.vue b/src/layouts/footer/index.vue index 7c57e7d..c0ac814 100644 --- a/src/layouts/footer/index.vue +++ b/src/layouts/footer/index.vue @@ -34,15 +34,15 @@
[^>]+<\/p>)|(<[^>]+>)|(( )+)/g , '') + // 有摘要取摘要,没有摘要就去掉正文里的标签空格(也可以通过正则去除html标签,不过富文本里会有插入IE注释的情况下,直接创建一个元素取text比较简单) + const text = e.summary || e[prop].replace(/(
[^>]+<\/p>)|(( )+)/g , '') + const el = document.createElement('div') + el.innerHTML = text + // e.mainBody = e.summary || e[prop].replace(/(
[^>]+<\/p>)|(<\!--[^-->]+-->)|(<[^>]+>)|(( )+)/g , '') + e.mainBody = el.innerText e.releaseTime = e.releaseTime.split(' ')[0] }) return list diff --git a/src/pages/article/activity.vue b/src/pages/article/activity.vue index b3661dc..1c858cb 100644 --- a/src/pages/article/activity.vue +++ b/src/pages/article/activity.vue @@ -142,8 +142,8 @@ export default { // 最新资讯 getArticle() { this.$post(this.api.newlyPublishedArticles, { - role: 1, - isadmin: false, + + pageNum: 1, pageSize: 5, siteId: this.$route.query.siteId || this.$store.state.content.site diff --git a/src/pages/article/index.vue b/src/pages/article/index.vue index 0774f62..a5cec49 100644 --- a/src/pages/article/index.vue +++ b/src/pages/article/index.vue @@ -157,8 +157,8 @@ export default { // 最新资讯 getArticle() { this.$post(this.api.newlyPublishedArticles, { - role: 1, - isadmin: false, + + pageNum: 1, pageSize: 5, siteId: this.$route.query.siteId || this.$store.state.content.site diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index d73d080..e1b6608 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -321,8 +321,8 @@ export default { // 最新资讯 getNews() { this.$post(this.api.newlyPublishedArticles, { - role: 1, - isadmin: false, + + pageNum: 1, pageSize: 5, siteId: this.$route.query.siteId || this.$store.state.content.site @@ -393,8 +393,8 @@ export default { if (this.lableId.includes(e.id)) labelName.push(e.labelName) }) this.$post(this.api.newlyPublishedArticles, { - role: 1, - isadmin: false, + + siteId: this.$route.query.siteId || this.site, columnIds, pageNum: this.page, diff --git a/src/pages/column/result.vue b/src/pages/column/result.vue index b4cf507..5a42f0e 100644 --- a/src/pages/column/result.vue +++ b/src/pages/column/result.vue @@ -61,8 +61,8 @@ export default { getArticle() { this.setKeyword('') this.$post(this.api.newlyPublishedArticles, { - role: 1, - isadmin: false, + + siteId: this.$route.query.siteId || this.site, pageNum: 1, pageSize: 1000, diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index 5b1c0b0..ab73e43 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -230,18 +230,19 @@ export default { } } img { - width: 237px; - height: 167px; + width: 200px; + height: 125px; } .texts { - margin-left: 34px; + width: calc(100% - 220px); + margin-left: 20px; } h6 { font-size: 18px; color: #0648A8; + @include ellipsis; } .des { - width: 360px; margin: 14px 0; font-size: 16px; color: #333; diff --git a/src/pages/overviewDevHistory/index.vue b/src/pages/overviewDevHistory/index.vue index d2131bd..51f86b1 100644 --- a/src/pages/overviewDevHistory/index.vue +++ b/src/pages/overviewDevHistory/index.vue @@ -13,18 +13,44 @@ -
根据《深圳综合粒子设施理事会章程》有关规定,研究院实行理事会领导下的院长负责制,理事长由市长担任,副理事长由分管发改、科创副市长,以及中山大学、南方科技大学校长担任,理事成员包括市政府秘书长、相关副秘书长及政府部门、高等院校、科研机构、龙头企业相关负责同志。
+DEVELOPMENT HISTORY
+ +10月11日
+深圳综合粒子设施研究院加入国际超导加速器联盟
+10月11日
+深圳综合粒子设施研究院加入国际超导加速器联盟
+10月11日
+深圳综合粒子设施研究院加入国际超导加速器联盟
+根据《深圳综合粒子设施理事会章程》有关规定,研究院实行理事会领导下的院长负责制,理事长由市长担任,副理事长由分管发改、科创副市长,以及中山大学、南方科技大学校长担任,理事成员包括市政府秘书长、相关副秘书长及政府部门、高等院校、科研机构、龙头企业相关负责同志。
+{{ modules[1].form.des }}