fix: 问题修复
This commit is contained in:
parent
2bd1cd2349
commit
b27bb9b33b
@ -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;
|
||||
}
|
||||
|
||||
@ -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", {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user