Commit 7f977be9 by liimin

如果没有手机号,跳过手机号验证

1 parent 09a02b9e
......@@ -248,14 +248,14 @@ export default {
const { merchantId, userType } = merchant
const { code, message, data: mobile } = await api.app.verifyPhone({ loginAccount, merchantId, userType })
if (code == response.code_success_value) {
this.chooseMerchant = Object.freeze(merchant)
if (mobile) {
//如果返回手机号,则弹出验证窗口
this.chooseMerchant = Object.freeze(merchant)
this.smsCodeDialogVisible = true
Object.assign(this.smsCheckProps, { mobile })
} else {
//如果没有手机号,直接获取菜单信息
this._permission(merchant)
//如果没有手机号,跳过手机号验证
this.afterVerifyPhone()
}
} else {
this.error(message)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!