diff --git a/src/api/index.js b/src/api/index.js index eb41f22..94051a0 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -4,4 +4,5 @@ export default { findArticle: `iasf/sysContent/findById`, findPage: `iasf/sysColumnLongPage/getLongPageInformation`, queryArticle: `iasf/sysContent/pagingQuery`, + getRedisCache: `iasf/sysColumnLongPage/getRedisCache`, } \ No newline at end of file diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js new file mode 100644 index 0000000..0410a9f --- /dev/null +++ b/src/mixins/page/index.js @@ -0,0 +1,30 @@ +import Setting from '@/setting' +import Util from '@/libs/util' +export default { + data() { + return { + id: this.$route.query.id, + preview: this.$route.query.preview, + modules: [], + articles: [] + } + }, + mounted() { + this.getInfo() + }, + methods: { + // banner打开链接 + openLink(item) { + const { link } = item + let href = link.linkAddress + if (link.connectionType !== 2) { + + } + if (link.isOpen) { + window.open(href) + } else { + location.href = href + } + } + } +}; \ No newline at end of file diff --git a/src/pages/about/index.vue b/src/pages/about/index.vue index 4a0ffdf..3821847 100644 --- a/src/pages/about/index.vue +++ b/src/pages/about/index.vue @@ -1,113 +1,111 @@ diff --git a/src/styles/page/page.scss b/src/styles/page/page.scss index d79fc41..ae2cd23 100644 --- a/src/styles/page/page.scss +++ b/src/styles/page/page.scss @@ -33,6 +33,26 @@ width: 1505px; } } +.banner-item { + position: relative; + width: 100%; + height: 100%; + img { + width: 100%; + height: 100%; + } + .banner-name { + position: absolute; + bottom: 87px; + left: 213px; + font-size: 48px; + color: #fff; + cursor: pointer; + } +} .gray { background-color: #F2F6F8; +} +.arrow { + cursor: pointer; } \ No newline at end of file