分享
This commit is contained in:
parent
e7345b75cd
commit
526bd57d5f
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user