fix: share content

This commit is contained in:
zzc
2026-02-05 14:12:52 +08:00
parent 239db8e609
commit cc8fcf802f
2 changed files with 4 additions and 8 deletions

View File

@@ -357,15 +357,9 @@ onPullDownRefresh(async () => {
onShareAppMessage(() => { onShareAppMessage(() => {
return { return {
title: "新春祝福", title: "新春祝福",
path: "/pages/detail/index", path: "/pages/index/index",
imageUrl: imageUrl:
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png", "https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
success: function (res) {
uni.showToast({ title: "分享成功", icon: "success" });
},
fail: function (res) {
uni.showToast({ title: "分享失败", icon: "none" });
},
}; };
}); });
</script> </script>

View File

@@ -41,7 +41,7 @@
</view> </view>
<!-- VIP Banner --> <!-- VIP Banner -->
<view class="vip-banner" @tap="navTo('vip')"> <view v-if="!isIos" class="vip-banner" @tap="navTo('vip')">
<view class="vip-left"> <view class="vip-left">
<view class="vip-icon-box"> <view class="vip-icon-box">
<uni-icons type="vip-filled" size="32" color="#5d4037" /> <uni-icons type="vip-filled" size="32" color="#5d4037" />
@@ -158,6 +158,8 @@ const userInfo = computed(() => ({
const isLoggedIn = computed(() => !!userStore.userInfo.nickName); const isLoggedIn = computed(() => !!userStore.userInfo.nickName);
const isIos = computed(() => uni.getSystemInfoSync().osName === "ios");
onMounted(() => { onMounted(() => {
const sysInfo = uni.getSystemInfoSync(); const sysInfo = uni.getSystemInfoSync();
navBarTop.value = sysInfo.statusBarHeight; navBarTop.value = sysInfo.statusBarHeight;