fix: 问题修复

This commit is contained in:
huxuejian 2026-05-16 11:20:21 +08:00
parent 2bd1cd2349
commit b27bb9b33b
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
</view>
<!-- 登录按钮 -->
<view class="login-btn-wrap">
<button v-if="checked && account" class="login-btn" type="primary" @click="getPhoneNumber">
<button v-if="checked && account && account.mobile" class="login-btn" type="primary" @click="getPhoneNumber">
手机号快捷登录
</button>
<button v-else-if="checked" class="login-btn" type="primary" open-type="getPhoneNumber"
@ -121,7 +121,7 @@ async function bindTeam() {
async function getPhoneNumber(e) {
const phoneCode = e && e.detail && e.detail.code;
if (!account.value) {
if (!account.value || !account.value.mobile) {
const res = await login(phoneCode);
if (!res) return;
}

View File

@ -41,7 +41,7 @@ async function changeTeam({ teamId, corpId, corpUserId, qrid, referenceCustomerI
corpUserId: corpUserId || ''
});
await login()
if (account.value) {
if (account.value && account.value.mobile) {
bindTeam(corpUserId)
} else {
set("invite-team-info", {