| | |
| | | * @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 |
| | |
| | | <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 = ""; |
| | |
| | | //新建任务 |
| | | 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") { |
| | |
| | | }; |
| | | |
| | | 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", |
| | | }); |
| | | }); |
| | | |