From 839acd1fe3dec49c00f89522aceda084987b2dfd Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 23 Oct 2025 08:44:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/pages/map/index.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index e15117d..49f7e88 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -25,12 +25,14 @@
uni.navigateTo({
url: "/subPackages/qrCode/index",
});
- }else if(data.type === "jumpAddWork"){//新建工单
+ } else if(data.type === "jumpAddWork"){//新建任务
+ console.log(data.rowItem, '9999')
+ const encodedData = encodeURIComponent(JSON.stringify(data.rowItem))
+ uni.setStorageSync('webview_params', encodedData)
uni.switchTab({
- url: "/subPackages/taskDetail/addTask/index",
+ url: `/subPackages/taskDetail/addTask/index`,
});
- }
- else if(data.type === 'jumpMapNav'){ //事件导航
+ } else if(data.type === 'jumpMapNav'){ //事件导航
uni.navigateTo({
url:`/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`
});
@@ -46,6 +48,10 @@
index: 2, // Tab 的索引(从0开始)
visible: false,
})
+ uni.setTabBarItem({
+ index: 3, // Tab
+ visible: true,
+ });
})
</script>
--
Gitblit v1.9.3