Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6ee04525
authored
Aug 25, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix(login): 优化手机号绑定提示逻辑
- 修改登录时未绑定手机号的提示信息,增加绑定手机号窗口的说明 - 添加手机号已绑定的成功提示,提升用户体验
parent
5f1a4d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
src/views/User/login.vue
src/views/User/login.vue
View file @
6ee04525
...
...
@@ -402,26 +402,16 @@
Util
.
setCookie
(
"token"
,
res
.
data
.
api_token
,
1
);
//登录时,识别到账号未绑定手机号,则显示绑定手机号
//登录时,识别到账号未绑定手机号,则显示绑定手机号
窗口
if
(
!
res
.
data
.
is_bind_mobile
)
{
this
.
loginType
=
'bind'
;
this
.
clearAllErrors
();
return
;
}
//强制要求微信绑定
if
(
!
res
.
data
.
is_bind_wechat
)
{
this
.
$http
(
'get'
,
"/api/login/getwxqrcode"
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
window
.
location
.
href
=
res
.
data
.
wx_login_url
;
}
else
{
this
.
$message
({
message
:
res
.
msg
,
type
:
'warning'
});
}
})
}
else
{
this
.
$message
({
message
:
'手机号已绑定账号'
,
type
:
'success'
});
window
.
location
.
href
=
'/'
;
}
}
else
if
(
res
.
code
===
102
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment