shuishen
2025-12-17 fafc88da5e3d312a2d5b50abf6d28d4c5f4830d1
feat:更改跳转方式
1 files modified
20 ■■■■■ changed files
src/pages/map/index.vue 20 ●●●●● patch | view | raw | blame | history
src/pages/map/index.vue
@@ -2,8 +2,8 @@
 * @Author       : yuan
 * @Date         : 2025-12-03 14:20:57
 * @LastEditors  : yuan
 * @LastEditTime : 2025-12-03 14:20:57
 * @FilePath     : \src\pages\map\index copy 2.vue
 * @LastEditTime : 2025-12-16 17:23:02
 * @FilePath     : \src\pages\map\index.vue
 * @Description  : 
 * Copyright 2025 OBKoro1, All Rights Reserved. 
 * 2025-12-03 14:20:57
@@ -17,7 +17,7 @@
<script setup>
import { getWebViewUrl } from "@/utils/index.js";
import WebViewPlus from "@/components/WebViewPlus.vue";
import { onHide } from "@dcloudio/uni-app";
import { onHide, onShow } from "@dcloudio/uni-app";
// const viewUrl = getWebViewUrl("/defaultMap");
let envParam = "";
@@ -45,7 +45,7 @@
    //新建任务
    const encodedData = encodeURIComponent(JSON.stringify(data.rowItem));
    uni.setStorageSync("webview_params", encodedData);
    uni.switchTab({
    uni.navigateTo({
      url: `/subPackages/taskDetail/addTask/index`,
    });
  } else if (data.type === "jumpMapNav") {
@@ -62,14 +62,12 @@
};
onShow(() => {
  uni.setStorageSync("lastTab", "map");
  uni.setTabBarItem({
    index: 2, // Tab 的索引(从0开始)
    visible: false,
    pagePath: "subPackages/taskDetail/addTask/index",
  });
  uni.setTabBarItem({
    index: 3, // Tab
    visible: true,
    index: 2,
    text: "",
    iconPath: "static/images/tabbar/drone.png",
    selectedIconPath: "static/images/tabbar/drone.png",
  });
});