From d802074e9160a1412ebea7b5b1572f5375a47af5 Mon Sep 17 00:00:00 2001 From: wanganmao <525987762@qq.com> Date: Tue, 8 Nov 2022 15:36:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E4=BD=9C=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 3 +- src/router/route.creative.js | 27 +++++ src/views/Creative/Material.vue | 16 +++ src/views/Creative/MyCreation.vue | 66 +++++++++++ src/views/Creative/index.vue | 166 +++++++++++++++++++++++++++ src/views/Home/components/Avatar.vue | 8 +- 6 files changed, 283 insertions(+), 3 deletions(-) create mode 100644 src/router/route.creative.js create mode 100644 src/views/Creative/Material.vue create mode 100644 src/views/Creative/MyCreation.vue create mode 100644 src/views/Creative/index.vue diff --git a/src/router/index.js b/src/router/index.js index 57efc263..8159620b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,7 @@ import TemplateMarket from "./route.templateMarket" import Contact from "./route.contact"; import DocumentLibrary from "./route.documentLibrary"; import DataStatistics from "./route.datastatistics"; +import Creative from "./route.creative"; // 创作中心路由 @@ -39,7 +40,7 @@ const constantRoutes = [ name: "home", redirect: "/home/project", component: () => import(/* webpackChunkName: 'home' */ "@views/Home/Index.vue"), - children: [...ProjectManage, ...TemplateMarket, ...Contact, ...DocumentLibrary,...DataStatistics] + children: [...ProjectManage, ...TemplateMarket, ...Contact, ...DocumentLibrary,...DataStatistics, ...Creative] }, { path: "/luck", diff --git a/src/router/route.creative.js b/src/router/route.creative.js new file mode 100644 index 00000000..ffbd16ee --- /dev/null +++ b/src/router/route.creative.js @@ -0,0 +1,27 @@ +const Creative = () => import(/* webpackChunkName: 'home' */ '@views/Creative/index.vue'); +const MyCreation = () => import(/* webpackChunkName: 'home' */ '@views/Creative/MyCreation.vue'); +const Material = () => import(/* webpackChunkName: 'home' */ '@views/Creative/Material.vue'); + +const router = [ + { + path: 'creative', + name: 'creative', + component: Creative, + redirect: '/home/creative/my-creation', + children: [ + { + path: "my-creation", + name: 'myCreation', + meta: { title: '我的作品' }, + component: MyCreation, + }, + { + path: "material", + name: 'material', + meta: { title: '素材库' }, + component: Material, + }, + ] + }, +]; +export default router; diff --git a/src/views/Creative/Material.vue b/src/views/Creative/Material.vue new file mode 100644 index 00000000..32eb9411 --- /dev/null +++ b/src/views/Creative/Material.vue @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/views/Creative/MyCreation.vue b/src/views/Creative/MyCreation.vue new file mode 100644 index 00000000..e7dd5004 --- /dev/null +++ b/src/views/Creative/MyCreation.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/src/views/Creative/index.vue b/src/views/Creative/index.vue new file mode 100644 index 00000000..66953bb2 --- /dev/null +++ b/src/views/Creative/index.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/Home/components/Avatar.vue b/src/views/Home/components/Avatar.vue index 77b2cebf..b0b45ea2 100644 --- a/src/views/Home/components/Avatar.vue +++ b/src/views/Home/components/Avatar.vue @@ -8,7 +8,7 @@ @@ -84,7 +84,11 @@ export default defineComponent({ { name: "问卷模版", link: "/home/market", - }, + }, + { + name: "创作中心", + link: "/home/creative", + }, // { // name: "数据统计", // link: "/home/datastatistics",