From a2f103ab7336aae63a7bd8eaacf9d92809e37daf Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 23 Dec 2025 16:47:28 +0800
Subject: [PATCH] feat:按钮样式调整
---
src/pages/map/index.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index 8771ccd..a24c644 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -74,13 +74,17 @@
};
onShow(() => {
- uni.setStorageSync("lastTab", "map");
+ // #ifndef MP-WEIXIN
uni.setTabBarItem({
- index: 2,
- text: "",
- iconPath: "static/images/tabbar/drone.png",
- selectedIconPath: "static/images/tabbar/drone.png",
+ index: 2, // Tab 的索引(从0开始)
+ visible: false,
+ pagePath: "subPackages/taskDetail/addTask/index",
});
+ uni.setTabBarItem({
+ index: 3, // Tab
+ visible: true,
+ });
+ // #endif
});
onHide(() => {
--
Gitblit v1.9.3