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" + // }, ] } }