From e43f55f7b264e5ecdf8e2c63c5b3a443ea9958dd Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 20 Oct 2025 09:41:23 +0800
Subject: [PATCH] feat:添加图片

---
 src/subPackages/workDetail/photoMagnify/index.vue |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/subPackages/workDetail/photoMagnify/index.vue b/src/subPackages/workDetail/photoMagnify/index.vue
index 14fc665..fa220aa 100644
--- a/src/subPackages/workDetail/photoMagnify/index.vue
+++ b/src/subPackages/workDetail/photoMagnify/index.vue
@@ -1,18 +1,26 @@
-<!--
- * @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>

--
Gitblit v1.9.3