Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
5710aac2
Commit
5710aac2
authored
Sep 04, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 注释
parent
7f51e4bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
index.vue
src/pages/login/index.vue
+13
-0
No files found.
src/pages/login/index.vue
View file @
5710aac2
...
...
@@ -83,6 +83,7 @@ export default {
const
userInfo
=
user
.
userInfo
this
.
$u
.
vuex
(
'userInfo'
,
userInfo
)
this
.
uniLogin
((
code
)
=>
{
// 登录
const
data
=
{
code
:
code
,
avatar
:
userInfo
.
avatarUrl
,
...
...
@@ -107,7 +108,17 @@ export default {
uni
.
hideLoading
()
this
.
$u
.
vuex
(
'vuex_token'
,
res
.
token
)
this
.
$u
.
vuex
(
'openId'
,
res
.
openId
)
// 如果已经绑定了手机号
if
(
res
.
phoneNumber
)
{
// 更新手机号码
// this.$u.api
// .updateUserInfo({
// phoneNumber: res.phoneNumber,
// })
// .then((ret) => {})
// 跳转到特定页面
if
(
this
.
returnUrl
)
{
if
(
this
.
returnUrl
===
'pages/learn/selectCategory'
)
{
this
.
queryMyQuestionWarehouseDetail
()
...
...
@@ -124,6 +135,7 @@ export default {
})
}
}
else
{
// 还没有绑定郭手机号
this
.
$refs
.
uToast
.
show
({
title
:
'授权成功'
,
type
:
'success'
,
...
...
@@ -145,6 +157,7 @@ export default {
})
}
else
if
(
e
.
detail
.
encryptedData
&&
e
.
detail
.
iv
)
{
this
.
uniLogin
((
code
)
=>
{
// 登录
const
data
=
{
code
:
code
,
avatar
:
this
.
userInfo
.
avatarUrl
,
...
...
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