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