| | |
| | | <!-- |
| | | * @Author : yuan |
| | | * @Date : 2025-09-29 13:56:16 |
| | | * @LastEditors : yuan |
| | | * @LastEditTime : 2025-09-29 13:56:25 |
| | | * @FilePath : \src\subPackages\workDetail\photoMagnify\index.vue |
| | | * @Description : |
| | | * Copyright 2025 OBKoro1, All Rights Reserved. |
| | | * 2025-09-29 13:56:16 |
| | | --> |
| | | |
| | | <!-- 照片放大 --> |
| | | <template> |
| | | <view> 基础 </view> |
| | | <view> |
| | | <WebViewPlus v-if="isApp" ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/></view> |
| | | </template> |
| | | |
| | | <script setup></script> |
| | | <script setup> |
| | | import {getWebViewUrl} from "@/utils/index.js"; |
| | | import { onLoad } from '@dcloudio/uni-app'; |
| | | const viewUrl = ref('') |
| | | onLoad( (options) => { |
| | | const eventNum= options.eventNum; |
| | | viewUrl.value = getWebViewUrl('/photoMagnify', {eventNum:eventNum}) |
| | | }); |
| | | const isApp = ref(false) |
| | | onShow(() => { |
| | | isApp.value = true |
| | | }); |
| | | |
| | | onHide(() => { |
| | | isApp.value = false |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |