Commit 7f977be9 by liimin

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

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