feat: 优化个人中心邀请卡片

This commit is contained in:
richarjiang
2026-09-09 10:10:52 +08:00
parent 99c5c211ad
commit f4cee127ce
4 changed files with 49 additions and 13 deletions

View File

@@ -9,6 +9,11 @@ import { getSystemLayout } from '../../utils/system'
const invite = useInviteStore()
const user = useUserStore()
const navBarHeight = `${getSystemLayout().navBarHeight}px`
onShow(() => { if (user.loggedIn) invite.refresh().catch(() => {}) })
onShow(() => {
if (user.loggedIn) {
invite.refresh().catch(() => {})
invite.refreshActivity().catch(() => {})
}
})
onShareAppMessage(() => ({ title: '送你 95 折购卡礼,一起练普拉提', path: invite.code ? `/pages/card/detail?showAll=1&inviteCode=${invite.code}` : '/pages/home/index' }))
</script>