完善小程序登录排班与个人资料流程
This commit is contained in:
@@ -165,7 +165,7 @@ Page({
|
||||
},
|
||||
|
||||
async handleResult(result) {
|
||||
if (result.status === 'SUCCESS' && result.accessToken) return this.finishLogin(result)
|
||||
if (result.status === 'SUCCESS' && result.accessToken) return this.finishLogin(result, result.autoLogin !== true)
|
||||
if (result.status === 'REJECTED' && this._resumeRegistrationAfterRejected && result.registrationTicket) {
|
||||
this._resumeRegistrationAfterRejected = false
|
||||
this.navigateToRegistration(result)
|
||||
@@ -230,7 +230,7 @@ Page({
|
||||
...this.agreementPayload()
|
||||
})
|
||||
if (result.status !== 'SUCCESS' || !result.accessToken) throw new Error(result.message || '进入门店失败')
|
||||
this.finishLogin(result)
|
||||
await this.finishLogin(result, true)
|
||||
} catch (error) {
|
||||
wx.showToast({ title: error.message || '进入门店失败', icon: 'none' })
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user