From 3f5818ed8678a6526a9aeba4cd41ae53aabc8914 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Wed, 3 Jan 2024 21:21:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(tabbar):=20=E5=A4=84=E7=90=86tabbar?= =?UTF-8?q?=E5=92=8C=E9=80=9A=E5=B1=8F=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 9 +- src/pages.json | 28 +++++- src/pages/index/index.vue | 4 +- src/pages/my/index.vue | 130 +-------------------------- src/pages/throughout/index.vue | 131 ++++++++++++++++++++++++++++ src/static/tab-icons/extui.png | Bin 0 -> 5094 bytes src/static/tab-icons/extuiHL.png | Bin 0 -> 5089 bytes src/static/tab-icons/template.png | Bin 0 -> 461 bytes src/static/tab-icons/templateHL.png | Bin 0 -> 459 bytes 9 files changed, 166 insertions(+), 136 deletions(-) create mode 100644 src/pages/throughout/index.vue create mode 100644 src/static/tab-icons/extui.png create mode 100644 src/static/tab-icons/extuiHL.png create mode 100644 src/static/tab-icons/template.png create mode 100644 src/static/tab-icons/templateHL.png diff --git a/.vscode/settings.json b/.vscode/settings.json index d44c4b7..b9f7917 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,5 +29,12 @@ "pages.json": "jsonc", // pages.json 可以写注释 "manifest.json": "jsonc" // manifest.json 可以写注释 }, - "cSpell.words": ["Tabbar"] + "cSpell.words": [ + "commitlint", + "dcloudio", + "refresherrefresh", + "scrolltolower", + "tabbar", + "WechatMiniprogram" + ] } diff --git a/src/pages.json b/src/pages.json index b0f0bfa..fb319ad 100644 --- a/src/pages.json +++ b/src/pages.json @@ -7,13 +7,19 @@ } }, { - "path": "pages/my/index", + "path": "pages/throughout/index", "style": { - "navigationBarTitleText": "我的", + "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏", "enablePullDownRefresh": true, "backgroundColor": "#23c09c", // 这个背景色要与页面的.top-section的背景图差不多,这样下拉刷新看起来才比较协调 "navigationStyle": "custom" } + }, + { + "path": "pages/my/index", + "style": { + "navigationBarTitleText": "我的" + } } ], "globalStyle": { @@ -29,12 +35,26 @@ } }, "tabBar": { + "color": "#7A7E83", + "selectedColor": "#3cc51f", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "height": "50px", + "fontSize": "10px", + "iconWidth": "24px", + "spacing": "3px", "list": [ { - "pagePath": "pages/index/index" + "pagePath": "pages/index/index", + "iconPath": "static/tab-icons/extui.png", + "selectedIconPath": "static/tab-icons/extuiHL.png", + "text": "首页" }, { - "pagePath": "pages/my/index" + "pagePath": "pages/throughout/index", + "iconPath": "static/tab-icons/template.png", + "selectedIconPath": "static/tab-icons/templateHL.png", + "text": "通屏" } ] }, diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index e506977..b9c4255 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -17,8 +17,8 @@