diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index f86f712..a2bb48c 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -293,6 +293,7 @@ declare global { const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus'] const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll'] const useWindowSize: typeof import('@vueuse/core')['useWindowSize'] + const utils: typeof import('./utils/index.js')['default'] const watch: typeof import('vue')['watch'] const watchArray: typeof import('@vueuse/core')['watchArray'] const watchAtMost: typeof import('@vueuse/core')['watchAtMost'] @@ -608,6 +609,7 @@ declare module 'vue' { readonly useWindowFocus: UnwrapRef readonly useWindowScroll: UnwrapRef readonly useWindowSize: UnwrapRef + readonly utils: UnwrapRef readonly watch: UnwrapRef readonly watchArray: UnwrapRef readonly watchAtMost: UnwrapRef diff --git a/src/components.d.ts b/src/components.d.ts index 5a95cbb..29173ac 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -8,5 +8,6 @@ export {} declare module 'vue' { export interface GlobalComponents { TabBar: typeof import('./components/TabBar.vue')['default'] + TitleBar: typeof import('./components/TitleBar.vue')['default'] } } diff --git a/src/components/TitleBar.vue b/src/components/TitleBar.vue new file mode 100644 index 0000000..00c180e --- /dev/null +++ b/src/components/TitleBar.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/pages/feed-plan/index.vue b/src/pages/feed-plan/index.vue index df3fdfc..37979ab 100644 --- a/src/pages/feed-plan/index.vue +++ b/src/pages/feed-plan/index.vue @@ -1,10 +1,189 @@ diff --git a/src/static/image/feed-plan/bg.png b/src/static/image/feed-plan/bg.png new file mode 100644 index 0000000..da5b8f7 Binary files /dev/null and b/src/static/image/feed-plan/bg.png differ diff --git a/src/static/image/feed-plan/circle.png b/src/static/image/feed-plan/circle.png new file mode 100644 index 0000000..01f045b Binary files /dev/null and b/src/static/image/feed-plan/circle.png differ diff --git a/src/static/image/feed-plan/message.png b/src/static/image/feed-plan/message.png new file mode 100644 index 0000000..77fd0b6 Binary files /dev/null and b/src/static/image/feed-plan/message.png differ diff --git a/src/static/image/nav-bar/chevron-left.png b/src/static/image/nav-bar/chevron-left.png new file mode 100644 index 0000000..3baed42 Binary files /dev/null and b/src/static/image/nav-bar/chevron-left.png differ diff --git a/src/utils/index.js b/src/utils/index.js new file mode 100644 index 0000000..a76042b --- /dev/null +++ b/src/utils/index.js @@ -0,0 +1,10 @@ +class ToolFun { + static getSafeHeight() { + const systemInfo = uni.getSystemInfoSync() + const safeAreaInsetBottom = systemInfo.safeAreaInsets.bottom + systemInfo.safeAreaInsets.top + const menuButtonInfoHeight = uni.getMenuButtonBoundingClientRect().height + 60 + return safeAreaInsetBottom + menuButtonInfoHeight + } +} + +export default ToolFun