From f2251d2f5c47fbe00a819f02f8d8c7ed70e60aaf Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 20 Oct 2025 22:08:33 +0800
Subject: [PATCH] feat: 调整路径
---
src/subPackages/workDetail/mapWork/index.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/subPackages/workDetail/mapWork/index.vue b/src/subPackages/workDetail/mapWork/index.vue
index e82a780..39dcc52 100644
--- a/src/subPackages/workDetail/mapWork/index.vue
+++ b/src/subPackages/workDetail/mapWork/index.vue
@@ -1,8 +1,29 @@
<!-- 地图展示 -->
<template>
- <view> 基础 </view>
+ <WebViewPlus ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
</template>
-<script setup></script>
+<script setup>
+ import {getWebViewUrl} from "@/utils/index.js";
+ import { onLoad } from '@dcloudio/uni-app';
+
+ const sWebViewRef = ref(null);
+ const viewUrl = ref('')
+
+ onLoad( (options) => {
+
+ const currentItem = options.currentItem
+ viewUrl.value = getWebViewUrl('/mapWork', {currentItem:currentItem})
+
+ });
+ function onPostMessage(data) {
+ if (data.type === 'workDetailback'){
+
+ uni.navigateTo({
+ url: '/subPackages/workDetail/index'
+ });
+ }
+ }
+</script>
<style lang="scss" scoped></style>
--
Gitblit v1.9.3