From ccc05b7b0d7fba2b2bdabb257e5e8888a5d67122 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 20 Jun 2023 18:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=87=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/util.js | 2 +- src/pages/article/activity.vue | 17 - src/pages/article/index.vue | 16 +- src/pages/iasf/index.vue | 791 +++++++++++++++++++++++++++++++ src/pages/industrial/index.vue | 1 - src/pages/researchTeam/index.vue | 18 +- src/pages/team/index.vue | 24 +- src/router/modules/iasf.js | 14 + 8 files changed, 839 insertions(+), 44 deletions(-) create mode 100644 src/pages/iasf/index.vue create mode 100644 src/router/modules/iasf.js diff --git a/src/libs/util.js b/src/libs/util.js index 2228782..b55a3e6 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -10,7 +10,7 @@ const exts = { doc: 'doc,docx,txt,xls,xlsx,csv,xml,ppt,pptx' } // 各个站点首页的路径 -const indexPath = ['/home', '/sfel', '/estate/index'] +const indexPath = ['/home', '/sfel', '/estate/index', '/iasf'] const util = { local: _local, //返回格式化时间,传参例如:"yyyy-MM-dd hh:mm:ss" diff --git a/src/pages/article/activity.vue b/src/pages/article/activity.vue index 8979602..1007953 100644 --- a/src/pages/article/activity.vue +++ b/src/pages/article/activity.vue @@ -62,8 +62,6 @@ export default { value: 'id', label: 'columnName' }, - news: [], - hots: [] } }, components: { @@ -78,7 +76,6 @@ export default { }, mounted () { this.getColumn() - this.getArticle() }, methods: { // 获取文章详情 @@ -131,20 +128,6 @@ export default { this.columns = data this.getInfo() }).catch(err => { }) - - this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => { - this.hots = Util.removeTag(data) - }).catch(err => { }) - }, - // 最新资讯 - getArticle () { - this.$post(this.api.newlyPublishedArticles, { - pageNum: 1, - pageSize: 5, - siteId: this.site - }).then(({ data }) => { - this.news = Util.removeTag(data.records) - }).catch(res => { }) }, // 下载附件 download (e) { diff --git a/src/pages/article/index.vue b/src/pages/article/index.vue index 4e5378f..4082bb1 100644 --- a/src/pages/article/index.vue +++ b/src/pages/article/index.vue @@ -11,10 +11,12 @@ :data.sync="routes" />
-

{{ form.title }}

-
{{ form.source && form.source + ' | ' }} {{ form.author && form.author + ' | ' }} {{ form.totalBrowsing }} {{$t('column.views')}} | {{ form.releaseTime }}
-
{{ form.edit && $t('column.edit') + ':' + form.edit }} {{ form.audit && ' | ' + $t('column.auditor') + ':' + form.audit }} {{ form.label && ' | ' + $t('column.label') + ':' + form.label }}
-

{{ form.summary }}

+
+
+
+ +
+
{{ modules[0].form.title }}
+

{{ modules[0].form.des }}

+
+
+ +
+
+
    +
  • + +
    +
    {{ modules[1].form.title }}
    +

    {{ modules[1].form.des }}

    + +
    +
  • +
  • + +
    +
    {{ modules[2].form.title }}
    +

    {{ modules[2].form.des }}

    + +
    +
  • +
+
+
+ +
+
+

{{ modules[3].form.title }}

+ + +
+
+ +
+
+

{{ modules[8].form.title }}

+

{{ modules[8 ].form.des }}

+
    +
  • + +
    +
    {{ item.title }}
    +

    岗位:{{ item.post }}

    +

    爱好:{{ item.post }}

    +
    +
    +
  • +
+ +
+
+ +
+
+

{{ modules[10].form.title }}

+

{{ modules[10].form.des }}

+
+
+
{{ modules[11].form.title }}
+
+ 这里跳转 > +
+ +
+
+
+ +
+
+
+
{{ modules[12].form.title }}
+
+ +
+ +
+
+ +
+
+
    +
  • + +

    {{ modules[13].form.title }}

    +
  • +
  • + +

    {{ modules[14].form.title }}

    +
  • +
  • + +

    {{ modules[15].form.title }}

    +
  • +
  • + +

    {{ modules[16].form.title }}

    +
  • +
  • + +

    {{ modules[17].form.title }}

    +
  • +
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/pages/industrial/index.vue b/src/pages/industrial/index.vue index cbb2ade..8a6e02c 100644 --- a/src/pages/industrial/index.vue +++ b/src/pages/industrial/index.vue @@ -167,7 +167,6 @@ export default { this.modules = json; console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json); - // 获取文章列表 const { column, articleNum } = json[9].form if (column.length) { diff --git a/src/pages/researchTeam/index.vue b/src/pages/researchTeam/index.vue index 35ad25f..9188af6 100644 --- a/src/pages/researchTeam/index.vue +++ b/src/pages/researchTeam/index.vue @@ -26,14 +26,15 @@