This commit is contained in:
18631081161 2026-03-27 21:27:43 +08:00
parent e7345b75cd
commit 526bd57d5f
2 changed files with 29 additions and 2 deletions

View File

@ -1047,6 +1047,24 @@
//
configStore.checkSubscribeReminder(userStore.isMember)
},
//
onShareAppMessage() {
return {
title: '相宜相亲 - 找到合适的另一半',
path: '/pages/index/index',
imageUrl: '/static/logo.png'
}
},
//
onShareTimeline() {
return {
title: '相宜相亲 - 找到合适的另一半',
path: '/pages/index/index',
imageUrl: '/static/logo.png'
}
}
}
</script>

View File

@ -289,7 +289,7 @@
<script setup>
import { ref, computed, onMounted } from 'vue'
import { onShareAppMessage } from '@dcloudio/uni-app'
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
import { useUserStore } from '@/store/user.js'
import { useConfigStore } from '@/store/config.js'
import { getUserDetail } from '@/api/user.js'
@ -767,7 +767,7 @@ onMounted(() => {
}
})
//
//
onShareAppMessage(() => {
return {
title: userDetail.value?.nickname ? `${userDetail.value.nickname}的相亲资料` : '相宜相亲',
@ -775,6 +775,15 @@ onShareAppMessage(() => {
imageUrl: '/static/logo.png'
}
})
//
onShareTimeline(() => {
return {
title: userDetail.value?.nickname ? `${userDetail.value.nickname}的相亲资料` : '相宜相亲',
path: `/pages/profile/detail?userId=${userId.value}`,
imageUrl: '/static/logo.png'
}
})
</script>
<style lang="scss" scoped>