From 32febb140d320b35d580c8d4e78a80ef846e75fc Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 19 Dec 2025 15:59:34 +0800
Subject: [PATCH] feat:webview通信处理
---
src/subPackages/workDetail/mapWork/index.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/subPackages/workDetail/mapWork/index.vue b/src/subPackages/workDetail/mapWork/index.vue
index c1ac111..f00d642 100644
--- a/src/subPackages/workDetail/mapWork/index.vue
+++ b/src/subPackages/workDetail/mapWork/index.vue
@@ -2,7 +2,7 @@
* @Author : yuan
* @Date : 2025-10-22 14:59:10
* @LastEditors : yuan
- * @LastEditTime : 2025-10-22 19:41:27
+ * @LastEditTime : 2025-12-19 14:52:54
* @FilePath : \src\subPackages\workDetail\mapWork\index.vue
* @Description :
* Copyright 2025 OBKoro1, All Rights Reserved.
@@ -29,6 +29,10 @@
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'
@@ -44,6 +48,7 @@
"/subPackages/browser/index?url=" + encodeURIComponent(data.data.url),
});
}
+ // #endif
}
</script>
--
Gitblit v1.9.3