From cc8fcf802ff9c824c9f7c42ec0a8328d3f03b096 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Thu, 5 Feb 2026 14:12:52 +0800 Subject: [PATCH] fix: share content --- pages/index/index.vue | 8 +------- pages/mine/mine.vue | 4 +++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 2b4f23b..0c5fa6c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -357,15 +357,9 @@ onPullDownRefresh(async () => { onShareAppMessage(() => { return { title: "新春祝福", - path: "/pages/detail/index", + path: "/pages/index/index", imageUrl: "https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png", - success: function (res) { - uni.showToast({ title: "分享成功", icon: "success" }); - }, - fail: function (res) { - uni.showToast({ title: "分享失败", icon: "none" }); - }, }; }); diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index 9590e49..665e9dc 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -41,7 +41,7 @@ - + @@ -158,6 +158,8 @@ const userInfo = computed(() => ({ const isLoggedIn = computed(() => !!userStore.userInfo.nickName); +const isIos = computed(() => uni.getSystemInfoSync().osName === "ios"); + onMounted(() => { const sysInfo = uni.getSystemInfoSync(); navBarTop.value = sysInfo.statusBarHeight;