Update teams-popup.vue
This commit is contained in:
parent
e2bdfe6d64
commit
c54d44b57e
@ -52,18 +52,23 @@ function close() {
|
||||
}
|
||||
|
||||
async function enterTeam(team) {
|
||||
const res = await api('bindWxappWithTeam', { appid, corpId: team.corpId, teamId: team.teamId, openid: account.value.openid });
|
||||
if (!res || !res.success) {
|
||||
return toast("关联团队失败");
|
||||
if (account.value && account.value.mobile) {
|
||||
const res = await api('bindWxappWithTeam', { appid, corpId: team.corpId, teamId: team.teamId, openid: account.value.openid });
|
||||
if (!res || !res.success) {
|
||||
return toast("关联团队失败");
|
||||
}
|
||||
set('home-invite-team-info', {
|
||||
teamId: team.teamId,
|
||||
corpId: team.corpId,
|
||||
});
|
||||
uni.switchTab({
|
||||
url: "/pages/home/home",
|
||||
});
|
||||
}else {
|
||||
uni.redirectTo({
|
||||
url: `/pages/login/redirect-page?corpId=${team.corpId}&teamId=${team.teamId}`,
|
||||
})
|
||||
}
|
||||
set('home-invite-team-info', {
|
||||
teamId: team.teamId,
|
||||
corpId: team.corpId,
|
||||
});
|
||||
uni.switchTab({
|
||||
url: "/pages/home/home",
|
||||
});
|
||||
// uni.navigateTo({ url: `/pages/team/team-detail?corpId=${team.corpId}&teamId=${team.teamId}` })
|
||||
// close()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user