From add74b0ad0039e57262975009d927dffd208833d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Thu, 25 Jan 2024 20:32:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9E=84=E5=BB=BA=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{signIn/index.vue => activity/Index.vue} | 166 +++++++++--------- .../components/ActivityBody.vue} | 68 +++---- .../activity/components/ActivityNav.vue | 44 +++++ Yi.Bbs.Vue3/src/router/index.js | 16 +- Yi.Bbs.Vue3/src/views/home/Index.vue | 2 +- 5 files changed, 172 insertions(+), 124 deletions(-) rename Yi.Bbs.Vue3/src/layout/{signIn/index.vue => activity/Index.vue} (90%) rename Yi.Bbs.Vue3/src/layout/{signIn/components/signBody.vue => activity/components/ActivityBody.vue} (73%) create mode 100644 Yi.Bbs.Vue3/src/layout/activity/components/ActivityNav.vue diff --git a/Yi.Bbs.Vue3/src/layout/signIn/index.vue b/Yi.Bbs.Vue3/src/layout/activity/Index.vue similarity index 90% rename from Yi.Bbs.Vue3/src/layout/signIn/index.vue rename to Yi.Bbs.Vue3/src/layout/activity/Index.vue index 217e2782..dc9c7be7 100644 --- a/Yi.Bbs.Vue3/src/layout/signIn/index.vue +++ b/Yi.Bbs.Vue3/src/layout/activity/Index.vue @@ -1,83 +1,83 @@ - - - - + + + + diff --git a/Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue b/Yi.Bbs.Vue3/src/layout/activity/components/ActivityBody.vue similarity index 73% rename from Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue rename to Yi.Bbs.Vue3/src/layout/activity/components/ActivityBody.vue index ec2c7ce8..5859c97e 100644 --- a/Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue +++ b/Yi.Bbs.Vue3/src/layout/activity/components/ActivityBody.vue @@ -1,32 +1,36 @@ - - - - - + + + + + diff --git a/Yi.Bbs.Vue3/src/layout/activity/components/ActivityNav.vue b/Yi.Bbs.Vue3/src/layout/activity/components/ActivityNav.vue new file mode 100644 index 00000000..79be9082 --- /dev/null +++ b/Yi.Bbs.Vue3/src/layout/activity/components/ActivityNav.vue @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/router/index.js b/Yi.Bbs.Vue3/src/router/index.js index 97f63a9a..826274ca 100644 --- a/Yi.Bbs.Vue3/src/router/index.js +++ b/Yi.Bbs.Vue3/src/router/index.js @@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from "vue-router"; import Layout from "../layout/Index.vue"; import NotFound from "../views/error/404.vue"; import LoginLayout from "../layout/LoginLayout.vue"; -import SignInLayout from "../layout/signIn/index.vue"; +import ActivityLayout from "../layout/activity/Index.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), scrollBehavior(to, from, savedPosition) { @@ -100,15 +100,15 @@ const router = createRouter({ ], }, { - path: "/sign", - name: "signInLayout", - component: SignInLayout, - redirect: "/sign/everyday", + path: "/activity", + name: "activityLayout", + component: ActivityLayout, + redirect: "/activity/sign", children: [ { - name: "everyday", - path: "everyday", - component: () => import("../views/signIn/index.vue"), + name: "sign", + path: "sign", + component: () => import("../views/signIn/Index.vue"), meta: { title: "每日签到", }, diff --git a/Yi.Bbs.Vue3/src/views/home/Index.vue b/Yi.Bbs.Vue3/src/views/home/Index.vue index f6848efe..00261daa 100644 --- a/Yi.Bbs.Vue3/src/views/home/Index.vue +++ b/Yi.Bbs.Vue3/src/views/home/Index.vue @@ -296,7 +296,7 @@ const statisOptions = computed(() => { }); const handleToSign = () => { - router.push("/sign"); + router.push("/activity/sign"); }; // 推送的实时人数获取