fix: 分享页面调整
This commit is contained in:
parent
23d8fbd88a
commit
dc89880bfd
@ -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>
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user