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 @@