diff --git a/Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue b/Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue new file mode 100644 index 00000000..ec2c7ce8 --- /dev/null +++ b/Yi.Bbs.Vue3/src/layout/signIn/components/signBody.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/Yi.Bbs.Vue3/src/layout/signIn/index.vue b/Yi.Bbs.Vue3/src/layout/signIn/index.vue new file mode 100644 index 00000000..217e2782 --- /dev/null +++ b/Yi.Bbs.Vue3/src/layout/signIn/index.vue @@ -0,0 +1,83 @@ + + + + diff --git a/Yi.Bbs.Vue3/src/router/index.js b/Yi.Bbs.Vue3/src/router/index.js index 5c53afb4..43fdf032 100644 --- a/Yi.Bbs.Vue3/src/router/index.js +++ b/Yi.Bbs.Vue3/src/router/index.js @@ -2,6 +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"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), scrollBehavior(to, from, savedPosition) { @@ -98,6 +99,22 @@ const router = createRouter({ }, ], }, + { + path: "/sign", + name: "signInLayout", + component: SignInLayout, + redirect: "/sign/everyday", + children: [ + { + name: "everyday", + path: "everyday", + component: () => import("../views/signIn/index.vue"), + meta: { + title: "每日签到", + }, + }, + ], + }, { path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound }, ], }); diff --git a/Yi.Bbs.Vue3/src/views/home/Index.vue b/Yi.Bbs.Vue3/src/views/home/Index.vue index 3bea4a12..2c1c611f 100644 --- a/Yi.Bbs.Vue3/src/views/home/Index.vue +++ b/Yi.Bbs.Vue3/src/views/home/Index.vue @@ -85,6 +85,19 @@ + + + + + + @@ -176,6 +189,7 @@ + +