diff --git a/src/api/index.js b/src/api/index.js index 73fddd5..cb100a0 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -33,6 +33,7 @@ export default { groupUpdate: `iasf/sys/userGroup/update`, site: `iasf/sys/site/list`, updateSite: `iasf/sys/site/update`, + delSite: `iasf/sys/site/delete`, listWithTree: `iasf/sysColumn/listWithTree`, saveColumn: `iasf/sysColumn/save`, updateColumn: `iasf/sysColumn/update`, @@ -78,4 +79,8 @@ export default { resort: `iasf/sysContent/sort`, articleTopOperation: `iasf/sysContent/articleTopOperation`, deleteUselessData: `iasf/sysColumn/deleteUselessData`, + addSeo: `iasf/seo/add`, + delSeo: `iasf/seo/delete`, + seoList: `iasf/seo/list`, + updateSeo: `iasf/seo/update`, } \ No newline at end of file diff --git a/src/assets/images/page/aboutUs.png b/src/assets/images/page/aboutUs.png new file mode 100644 index 0000000..f7517a7 Binary files /dev/null and b/src/assets/images/page/aboutUs.png differ diff --git a/src/assets/images/page/index.png b/src/assets/images/page/index.png index 259c7c9..c3ce9ab 100644 Binary files a/src/assets/images/page/index.png and b/src/assets/images/page/index.png differ diff --git a/src/assets/images/page/member.png b/src/assets/images/page/member.png index 259c7c9..c0ad74a 100644 Binary files a/src/assets/images/page/member.png and b/src/assets/images/page/member.png differ diff --git a/src/assets/images/page/supplier.png b/src/assets/images/page/supplier.png new file mode 100644 index 0000000..f2689f8 Binary files /dev/null and b/src/assets/images/page/supplier.png differ diff --git a/src/const/modules.js b/src/const/modules.js index 8c606bb..ebe1ca2 100644 --- a/src/const/modules.js +++ b/src/const/modules.js @@ -68,6 +68,104 @@ export default { } ] }, + { + type: 'introduce', + forms: [ + { + type: 'upload', + prop: 'pic', + label: '图片', + required: true, + }, + { + type: 'input', + prop: 'title', + label: '标题', + required: true + }, + { + type: 'link', + prop: 'link', + label: '链接' + }, + { + type: 'textarea', + prop: 'des', + label: '描述' + } + ], + form: { + pic: '', + title: '', + link: { + linkName: '无', + connectionType: 1, + columnId: [], + articleId: '', + linkAddress : '', + site: '', + otherColumnId: [], + otherArticleId: '', + isOpen: 1 + }, + des: '', + isEnable: 1 + }, + list: [ + { + pic: 'https://www.occupationlab.com/images/index/1.png', + title: '职站', + link: { + linkName: '无', + connectionType: 1, + columnId: [], + articleId: '', + linkAddress : '', + site: '', + otherColumnId: [], + otherArticleId: '', + isOpen: 1 + }, + des: '教、学、练、考实验教学平台', + isEnable: 1 + }, + { + pic: 'https://www.occupationlab.com/images/index/1.png', + title: 'Dataforward数据前瞻', + link: { + linkName: '无', + connectionType: 1, + columnId: [], + articleId: '', + linkAddress : '', + site: '', + otherColumnId: [], + otherArticleId: '', + isOpen: 1 + }, + des: '准确海量的数据平台', + isEnable: 1 + }, + { + pic: 'https://www.occupationlab.com/images/index/1.png', + title: '大赛平台', + link: { + linkName: '无', + connectionType: 1, + columnId: [], + articleId: '', + linkAddress : '', + site: '', + otherColumnId: [], + otherArticleId: '', + isOpen: 1 + }, + des: '技能实践的大赛平台', + isEnable: 1 + }, + ], + dialogWidth: '1200px', + }, ], member: [ { @@ -147,19 +245,19 @@ export default { list: [ { pic: 'https://www.occupationlab.com/images/member/icon1.png', - title: '一站式采购', + title: '采购降本', des: '优选高品质低价格产品', isEnable: 1 }, { pic: 'https://www.occupationlab.com/images/member/icon2.png', - title: '精准产品匹配', + title: '精准匹配', des: '体系化产品方案匹配满足不同学科需求', isEnable: 1 }, { pic: 'https://www.occupationlab.com/images/member/icon3.png', - title: '本地化售前顾问', + title: '本地服务', des: '提供项目全流程售前售后支持服务', isEnable: 1 }, @@ -177,7 +275,7 @@ export default { }, { pic: 'https://www.occupationlab.com/images/member/icon6.png', - title: '智能方案生成', + title: '智能方案', des: '内置有实验室配置方案模板只需3分钟即可生成方案', isEnable: 1 }, diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 143ff83..6d0053b 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -189,6 +189,10 @@ export default { { index: '/article', title: '文章管理' + }, + { + index: '/seo', + title: 'SEO管理' } ] } diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index ba1d672..ca4daea 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -1321,7 +1321,7 @@ export default { // 文章名称判重 nameChange () { - const { title, level, id } = this.form + const { title, id } = this.form if (title && title !== this.originalName) { this.$post(this.api.checkIfTheTitleIsRepeat, { siteId: this.site.id, diff --git a/src/pages/column/page/index.vue b/src/pages/column/page/index.vue index c788100..eefdea8 100644 --- a/src/pages/column/page/index.vue +++ b/src/pages/column/page/index.vue @@ -29,6 +29,22 @@
点击更换banner与链接
+ + @import '../../../styles/page/page.scss'; +.intro { + display: flex; + justify-content: space-between; + align-items: center; + padding: 43px 0; + background-color: #fff; + li { + display: inline-flex; + align-items: center; + cursor: pointer; + transition: 0.3s; + &.active { + h6, + .desc { + color: #006eff; + } + } + &:hover { + margin-top: -15px; + h6, + .desc { + color: #006eff; + } + } + } + img { + width: 50px; + margin-right: 15px; + } + h6 { + margin-bottom: 5px; + font-size: 16px; + color: #0b1d30; + transition: 0.5s; + } + .desc { + font-size: 13px; + color: #757f92; + transition: 0.5s; + } +} \ No newline at end of file diff --git a/src/pages/column/page/member.vue b/src/pages/column/page/member.vue index 2608240..c5d48e1 100644 --- a/src/pages/column/page/member.vue +++ b/src/pages/column/page/member.vue @@ -44,7 +44,7 @@ :key="i"> -

{{ item.name }}

+

{{ item.title }}

{{ item.des }}

diff --git a/src/pages/seo/index.vue b/src/pages/seo/index.vue new file mode 100644 index 0000000..13a3634 --- /dev/null +++ b/src/pages/seo/index.vue @@ -0,0 +1,112 @@ + + + + \ No newline at end of file diff --git a/src/pages/site/list/index.vue b/src/pages/site/list/index.vue index 6696981..a15536d 100644 --- a/src/pages/site/list/index.vue +++ b/src/pages/site/list/index.vue @@ -91,11 +91,22 @@ export default { name: '站点管理' } ]) + // this.updateSite() }, methods: { ...mapMutations('content', [ 'setSite' ]), + // 更改域名 + async updateSite () { + await this.$put(this.api.updateSite, { + id: 1, + siteName: '或然官网' + }) + await this.$del(this.api.delSite, { + id: 2, + }) + }, getData () { this.$post(this.api.site, { page: this.page, diff --git a/src/router/modules/seo.js b/src/router/modules/seo.js new file mode 100644 index 0000000..9dfc16a --- /dev/null +++ b/src/router/modules/seo.js @@ -0,0 +1,18 @@ +import BasicLayout from '@/layouts/home' + +const meta = {} + +const pre = 'article-' + +export default { + path: '/seo', + meta, + component: BasicLayout, + children: [ + { + path: `/seo`, + component: () => import('@/pages/seo'), + meta: { title: 'SEO管理' } + }, + ] +} diff --git a/src/setting.js b/src/setting.js index 6481ece..44d0db8 100644 --- a/src/setting.js +++ b/src/setting.js @@ -5,7 +5,7 @@ const url = location.host; const isDev = process.env.NODE_ENV === 'development' // 开发环境 let host = `${location.origin}/` if (isDev) { - // host = 'http://192.168.31.52:10000/' + // host = 'http://192.168.31.51:9999/' host = 'http://139.159.254.212/' }