| | |
| | | <!-- 地图展示 --> |
| | | <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}) |
| | | |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |