Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f977be9
authored
Nov 09, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
如果没有手机号,跳过手机号验证
1 parent
09a02b9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/Login.vue
src/views/Login.vue
View file @
7f977be
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment