From c7006707bafc2c3185f4fe1b9fea85597df0b084 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 20 Dec 2025 11:40:40 +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