罗广辉
2026-06-18 44dd9c4eb8a2489c63a5eb53fd4254bbb3510e95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
<!-- 照片放大 -->
<template>
  <view>
     <WebViewPlus v-if="isApp" ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/></view>
</template>
 
<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>