fix: 分享页面调整

This commit is contained in:
huxuejian 2026-09-18 10:52:58 +08:00
parent 23d8fbd88a
commit dc89880bfd
2 changed files with 26 additions and 0 deletions

View File

@ -329,6 +329,7 @@ onShareAppMessage(() => {
return {
title: `【${team.value.name}】这个团队不错,推荐给你!`,
type: shareAppVersion || 0, // 0 正式版本 | 1 开发版本 | 2 体验版本
imageUrl: 'https://ykt.youcan365.com/uploads/1789640487854-team.jpg',
path: `/pages/login/redirect-page?teamId=${team.value.teamId}&corpId=${team.value.corpId}&type=archive&referenceCustomerId=${referenceCustomerId}`
}
}
@ -342,6 +343,18 @@ watch(account, async (n, o) => {
}
})
watch(team, n => {
if (n && n.supportPatientForward === 'YES') {
uni.showShareMenu({
menus: ['shareAppMessage']
})
} else {
wx.hideShareMenu({
menus: ['shareAppMessage'] // 隐藏"转发"按钮
})
}
})
</script>
<style scoped>

View File

@ -142,6 +142,7 @@ onShareAppMessage((res) => {
return {
title: `【${team.value.name}】这个团队不错,推荐给你!`,
type: shareAppVersion || 0, // 0 正式版本 | 1 开发版本 | 2 体验版本
imageUrl: 'https://ykt.youcan365.com/uploads/1789640487854-team.jpg',
path: `/pages/login/redirect-page?teamId=${team.value.teamId}&corpId=${team.value.corpId}&type=archive&referenceCustomerId=${referenceCustomerId}`
}
}
@ -151,6 +152,18 @@ watch(memberList, n => {
list.value = n
}, { immediate: true })
watch(team, n => {
if (n && n.supportPatientForward === 'YES') {
uni.showShareMenu({
menus: ['shareAppMessage']
})
} else {
wx.hideShareMenu({
menus: ['shareAppMessage'] // 隐藏"转发"按钮
})
}
})
</script>
<style>
page {