From e875c917ba905fe3fbf0062ca7e2d108a302baa3 Mon Sep 17 00:00:00 2001 From: simple321vip Date: Fri, 3 Mar 2023 22:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20appstatus=EF=BC=8Cmessageb?= =?UTF-8?q?ox=E5=BC=8F=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/blog.ts | 8 ++++ mock/blogType.ts | 14 +++++++ src/components/layout/NavBar.vue | 66 +++++++++++++++++++++++++++++++ src/components/layout/SideBar.vue | 1 - src/view/blog/createBlog.vue | 47 ++++++++++++---------- src/view/bookmark/Typedialog.vue | 3 +- src/view/bookmark/index.vue | 1 + 7 files changed, 116 insertions(+), 24 deletions(-) diff --git a/mock/blog.ts b/mock/blog.ts index aa8a488..e648fed 100644 --- a/mock/blog.ts +++ b/mock/blog.ts @@ -83,4 +83,12 @@ export default [ } }, }, + { + url: '/wiki/api/v1/author/blogs/001', + method: 'POST', + response: () => { + return { + } + }, + }, ] as MockMethod[] diff --git a/mock/blogType.ts b/mock/blogType.ts index 31407ef..cfa03b2 100644 --- a/mock/blogType.ts +++ b/mock/blogType.ts @@ -24,6 +24,20 @@ export default [ btId: "001", order: 1, }, + { + bid: "0003", + title: "three", + content: "xxxxxxxxx", + btId: "001", + order: 2, + }, + { + bid: "0004", + title: "four", + content: "xxyyyyxxxxxxx", + btId: "001", + order: 3, + }, ], order: 0 }, diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index f67bb90..6c874e8 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -17,6 +17,40 @@
+ +
+ appStatus +
+ +
+ + + + + +
@@ -57,19 +91,46 @@ import CustomPic from "@/components/customPic/index.vue"; import { tenantStore } from '@/store/modules/tenant' import { settingsStore } from '@/store/modules/settings' +import { Message } from "@element-plus/icons-vue" +import { reactive, ref } from "vue"; // -- IMPORT -- const useTenantStore = tenantStore() const useSettingsStore = settingsStore() // -- REACTIVE OBJECT -- +const appStatus = reactive([ + { + appName: "wiki", + status: true, + }, + { + appName: "bookmark", + status: true, + }, + { + appName: "calendar", + status: false, + }, +]) // -- REF OBJECT -- +const messageCount = ref() +const drawer = ref(false) +const messageList = reactive([ + { + title: "过期通知", + type: "", + message: "尊敬的用户,你的账号余额已不足,请充值", + Unread: true, + } +]) // -- EVENT DEFINITION const toPerson = () => { } + useTenantStore.reflush() @@ -88,6 +149,11 @@ useTenantStore.reflush() } } +.item { + margin-top: 5px; + margin-right: 30px; +} + .header-avatar { display: flex; justify-content: center; diff --git a/src/components/layout/SideBar.vue b/src/components/layout/SideBar.vue index 5e6dda3..eb7ba32 100644 --- a/src/components/layout/SideBar.vue +++ b/src/components/layout/SideBar.vue @@ -2,7 +2,6 @@
-