From f70a8ce90071b20ee77ae244e6ffc200d616d2c4 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 25 Mar 2025 11:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +-- src/pages.json | 94 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 69 insertions(+), 29 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6353446..c422304 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,14 +51,14 @@ export default { methods: { _initTabbar() { tabbar.forEach(({ pagePath, text, iconPath, selectedIconPath }, index) => { - if (index === 2) { + if (index === 2 || index === 3) { uni.setTabBarItem({ index: index, pagePath, text, iconPath, selectedIconPath, - visible: true, + visible: false, }) } else { uni.setTabBarItem({ diff --git a/src/pages.json b/src/pages.json index dca0775..6c5ab70 100644 --- a/src/pages.json +++ b/src/pages.json @@ -295,40 +295,80 @@ "list": [ { "pagePath": "pages/tabbar/home", - "text": "首页", - "iconPath": "static/tabbar/home.png", - "selectedIconPath": "static/tabbar/home-select.png" + "text": "", + "iconPath": "", + "selectedIconPath": "" }, // { // "pagePath": "pages/tabbar/shop", + // "text": "", + // "iconPath": "", + // "selectedIconPath": "" + // }, + { + "pagePath": "pages/tabbar/order", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, + { + "pagePath": "pages/tabbar/flowStatistics", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, + { + "pagePath": "pages/tabbar/individualOrder", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, + { + "pagePath": "pages/tabbar/my", + "text": "", + "iconPath": "", + "selectedIconPath": "" + } + + // { + // "pagePath": "pages/tabbar/home", + // "text": "首页", + // "iconPath": "static/tabbar/home.png", + // "selectedIconPath": "static/tabbar/home-select.png" + // }, + // { + // "pagePath": "pages/tabbar/shop", // "text": "超市", // "iconPath": "static/tabbar/shop.png", // "selectedIconPath": "static/tabbar/shop-select.png" // }, - { - "pagePath": "pages/tabbar/order", - "text": "订单", - "iconPath": "static/tabbar/order.png", - "selectedIconPath": "static/tabbar/order-select.png" - }, - { - "pagePath": "pages/tabbar/flowStatistics", - "text": "流水统计", - "iconPath": "static/tabbar/order.png", - "selectedIconPath": "static/tabbar/order-select.png" - }, - { - "pagePath": "pages/tabbar/individualOrder", - "text": "订单", - "iconPath": "static/tabbar/order.png", - "selectedIconPath": "static/tabbar/order-select.png" - }, - { - "pagePath": "pages/tabbar/my", - "text": "我的", - "iconPath": "static/tabbar/my.png", - "selectedIconPath": "static/tabbar/my-select.png" - } + // { + // "pagePath": "pages/tabbar/order", + // "text": "订单", + // "iconPath": "static/tabbar/order.png", + // "selectedIconPath": "static/tabbar/order-select.png" + // }, + + // { + // "pagePath": "pages/tabbar/flowStatistics", + // "text": "流水统计", + // "iconPath": "static/tabbar/order.png", + // "selectedIconPath": "static/tabbar/order-select.png" + // }, + + // { + // "pagePath": "pages/tabbar/individualOrder", + // "text": "订单", + // "iconPath": "static/tabbar/order.png", + // "selectedIconPath": "static/tabbar/order-select.png" + // }, + + // { + // "pagePath": "pages/tabbar/my", + // "text": "我的", + // "iconPath": "static/tabbar/my.png", + // "selectedIconPath": "static/tabbar/my-select.png" + // }, ] } }