From 66e3e77580f3bf51830e39c9322a69002bf18671 Mon Sep 17 00:00:00 2001
From: longz <longzhaoz@qq.com>
Date: 星期四, 25 六月 2026 23:09:00 +0800
Subject: [PATCH] 优化fix

---
 yuyueMiniProgram/src/pages/index/index.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/yuyueMiniProgram/src/pages/index/index.vue b/yuyueMiniProgram/src/pages/index/index.vue
index caa2272..0af4325 100644
--- a/yuyueMiniProgram/src/pages/index/index.vue
+++ b/yuyueMiniProgram/src/pages/index/index.vue
@@ -465,9 +465,14 @@
 
 onShareAppMessage((res) => {
   const ticketUuid = res?.target?.dataset?.ticketUuid as string | undefined
-  const visitedUserDisplay = res?.target?.dataset?.visitedUserDisplay as string | undefined
+  if (!ticketUuid) {
+    return {
+      title: '红宇精工访客预约',
+      path: '/pages/index/index',
+    }
+  }
   return {
-    title: visitedUserDisplay ? `${visitedUserDisplay}的访客码` : '访客码分享',
+    title: '访客码的分享',
     path: buildVisitorCodeSharePath(ticketUuid),
   }
 })
@@ -501,7 +506,7 @@
     <view class="relative z-4" :style="{ paddingTop: `${safeAreaInsets?.top || 44}px` }">
       <view class="mb-[64rpx] h-[88rpx] flex items-center px-[32rpx]">
         <text class="text-[36rpx] text-white font-medium">
-          预约小程序
+          红宇精工访客预约
         </text>
       </view>
 

--
Gitblit v1.7.1