From 6f9c52a2c67dfedede91a71fe9ef4271dbf01f45 Mon Sep 17 00:00:00 2001 From: yangyao <14143343+yang-yao-1@user.noreply.gitee.com> Date: Sun, 4 Jan 2026 18:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89tab=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CustomTabBar.vue | 108 +++++++++++++++++++++++++++++++++ pages.json | 20 +------ pages/index/index.vue | 8 ++- pages/mine/index.vue | 116 +++++++++++++++++++++++++++++++++--- pages/order/index.vue | 8 ++- pages/product/index.vue | 25 ++------ 6 files changed, 236 insertions(+), 49 deletions(-) create mode 100644 components/CustomTabBar.vue diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue new file mode 100644 index 0000000..ffd9dab --- /dev/null +++ b/components/CustomTabBar.vue @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index df26795..c8f02a9 100644 --- a/pages.json +++ b/pages.json @@ -59,23 +59,9 @@ "borderStyle": "black", "backgroundColor": "#ffffff", "list": [ - { - "pagePath": "pages/index/index", - "iconPath": "/static/tabbar/home.png", - "selectedIconPath": "/static/tabbar/active-home.png" - }, - - - { - "pagePath": "pages/order/index", - "iconPath": "/static/tabbar/order.png", - "selectedIconPath": "/static/tabbar/active-order.png" - }, - { - "pagePath": "pages/mine/index", - "iconPath": "/static/tabbar/mine.png", - "selectedIconPath": "/static/tabbar/active-mine.png" - } + {"pagePath": "pages/index/index"}, + {"pagePath": "pages/order/index"}, + {"pagePath": "pages/mine/index"} ] } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 1b1c424..ec9a77d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@ diff --git a/pages/order/index.vue b/pages/order/index.vue index 1b1c424..ec9a77d 100644 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -1,7 +1,7 @@