From 2edf4cf9f0f8f9706fcb389df813d567ea3da237 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 19 Jun 2023 10:46:58 +0800 Subject: [PATCH] fix --- src/assets/images/mall1.png | Bin 0 -> 572 bytes src/components/rightColumns/index.vue | 4 +- src/pages/article/index.vue | 16 +- src/pages/column/index.vue | 10 +- src/pages/contactUs/index.vue | 40 +- src/pages/devHistory/index.vue | 77 ++-- src/pages/governance/index.vue | 311 ++++++++-------- src/pages/lightSources/index.vue | 99 ++++- src/pages/mission/index.vue | 32 +- src/pages/org/index.vue | 285 ++++----------- src/pages/publish/show.vue | 202 ++++++----- src/pages/scientific/index.vue | 501 +++++++++++++------------- src/pages/talentCentre/index.vue | 2 + src/styles/page/page.scss | 20 +- 14 files changed, 798 insertions(+), 801 deletions(-) create mode 100644 src/assets/images/mall1.png diff --git a/src/assets/images/mall1.png b/src/assets/images/mall1.png new file mode 100644 index 0000000000000000000000000000000000000000..1f08f078943add167fa6fb528c081c6f1e248df9 GIT binary patch literal 572 zcmV-C0>k}@P)Px$_DMuRR5(wq)XhtjQ547V@0n*L6^G{;troq|qQ4+;5rQ`M2I7oC1VKTI*1{~K zMFm0Hrk71`&-Eq<0FV!AFR;LU) zK24JKH -
+
- + @@ -47,11 +48,12 @@ export default { data () { return { id: this.$route.query.articleId, + columnId: +this.$route.query.id, loaded: false, routes: [], - columnId: '', form: {}, columnBanner: '', + isParty: 0 } }, components: { @@ -65,7 +67,7 @@ export default { } }, mounted () { - + this.getColumnInfo() }, methods: { // 获取文章详情 @@ -110,6 +112,14 @@ export default { // 浏览量+1 this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(({ data }) => { }).catch(err => { }) }, + // 列表详情 + getColumnInfo () { + this.columnId && this.$post(`${this.api.findColumn}?id=${this.columnId}`) + .then(({ data }) => { + if (data.detailStyleId == 69) this.isParty = 1 + }) + .catch((res) => { }); + }, // 获取banner 规则:当前文章有上传的,用上传的,没有上传的话,如果栏目有图片,读取栏目的(上级没有读上上级,以此类推)都没有的读取默认的 getBanner (data) { for (const e of data) { diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index cbd01a6..0aacfdc 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -1,7 +1,6 @@