From 648904d076ae6e17892b40675598b1c8dc474277 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 24 Apr 2026 16:21:12 +0800
Subject: [PATCH] Merge branch 'feature/v9.0/9.0.3' into feature/v9.0/9.0.4

---
 src/subPackages/workDetail/mapWork/index.vue |   58 ++++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 46 insertions(+), 12 deletions(-)

diff --git a/src/subPackages/workDetail/mapWork/index.vue b/src/subPackages/workDetail/mapWork/index.vue
index c39e52c..f00d642 100644
--- a/src/subPackages/workDetail/mapWork/index.vue
+++ b/src/subPackages/workDetail/mapWork/index.vue
@@ -1,21 +1,55 @@
+<!--
+ * @Author       : yuan
+ * @Date         : 2025-10-22 14:59:10
+ * @LastEditors  : yuan
+ * @LastEditTime : 2025-12-19 14:52:54
+ * @FilePath     : \src\subPackages\workDetail\mapWork\index.vue
+ * @Description  : 
+ * Copyright 2025 OBKoro1, All Rights Reserved. 
+ * 2025-10-22 14:59:10
+-->
 <!-- 地图展示 -->
 <template>
-  <WebViewPlus ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
+  <WebViewPlus
+    ref="sWebViewRef"
+    :src="`${viewUrl}`"
+    @webMessage="onPostMessage"
+  />
 </template>
 
 <script setup>
-	import {getWebViewUrl} from "@/utils/index.js";
-	import { onLoad } from '@dcloudio/uni-app';
-	
-	const sWebViewRef = ref(null);
-	const viewUrl = ref('')
+import { getWebViewUrl } from "@/utils/index.js";
+import { onLoad } from "@dcloudio/uni-app";
 
-	onLoad( (options) => {
-		
-		const currentItem = options.currentItem
-	viewUrl.value = getWebViewUrl('/mapWork', {currentItem:currentItem})	
-		
-	});
+const sWebViewRef = ref(null);
+const viewUrl = ref("");
+
+onLoad((options) => {
+  const currentItem = options.currentItem;
+  viewUrl.value = getWebViewUrl("/mapWork", { currentItem: currentItem });
+});
+function onPostMessage(data) {
+  // #ifdef MP-WEIXIN
+  // #endif
+
+  // #ifndef MP-WEIXIN
+  if (data.type === "workDetailback") {
+    // uni.navigateTo({
+    //   url: '/subPackages/workDetail/index'
+    // });
+    uni.navigateBack({
+      delta: 1,
+    });
+  }
+
+  if (data.type === "browser") {
+    uni.navigateTo({
+      url:
+        "/subPackages/browser/index?url=" + encodeURIComponent(data.data.url),
+    });
+  }
+  // #endif
+}
 </script>
 
 <style lang="scss" scoped></style>

--
Gitblit v1.9.3