From 246d776ad32c94280a3557c73cdbdbcc473fc4ad Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 23 Dec 2025 16:47:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/feature/v9.0/9.0.3' into feature/v9.0/9.0.3

---
 src/pages/work/index.vue |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 942ecdd..a8e4a93 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -2,7 +2,7 @@
  * @Author       : yuan
  * @Date         : 2025-12-18 10:06:30
  * @LastEditors  : yuan
- * @LastEditTime : 2025-12-20 11:37:09
+ * @LastEditTime : 2025-12-20 14:18:42
  * @FilePath     : \src\pages\work\index.vue
  * @Description  : 
  * Copyright 2025 OBKoro1, All Rights Reserved. 
@@ -28,12 +28,28 @@
 // const viewUrl = getWebViewUrl('/work', {})
 const updateKey = ref(0);
 const viewUrl = computed(() => {
+  // #ifdef MP-WEIXIN
   return getWebViewUrl("/work", {
     updateKey: updateKey.value,
+    showAddBtn: 1,
   });
+  // #endif
+
+  // #ifndef MP-WEIXIN
+  return getWebViewUrl("/work", {
+    updateKey: updateKey.value,
+    showAddBtn: 0,
+  });
+  // #endif
 });
 
 function onPostMessage(data) {
+  // #ifdef MP-WEIXIN
+  if (data.type === "addWork") {
+  }
+  // #endif
+
+  // #ifndef MP-WEIXIN
   if (data.type === "jumpMapNav") {
     uni.navigateTo({
       url: `/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`,
@@ -47,6 +63,7 @@
       url: `/subPackages/workDetail/photoMagnify/index?eventNum=${data.eventNum}`,
     });
   }
+  // #endif
 }
 const isApp = ref(false);
 onShow(() => {

--
Gitblit v1.9.3