chenyao
2025-10-17 4de4baa6eea8f80160f6cdc8a4ebd17c0c48f0ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- 地图展示 -->
<template>
  <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('')
 
    onLoad( (options) => {
        
        const currentItem = options.currentItem
    viewUrl.value = getWebViewUrl('/mapWork', {currentItem:currentItem})    
        
    });
</script>
 
<style lang="scss" scoped></style>