Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
f5ae55cd
Commit
f5ae55cd
authored
Sep 30, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b470fda6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
index.vue
components/auth/index.vue
+17
-5
No files found.
components/auth/index.vue
View file @
f5ae55cd
...
...
@@ -336,11 +336,22 @@ export default {
my
.
getAuthCode
({
scopes
:
"auth_user"
,
// 主动授权(弹框):auth_user,静默授权(不弹框):auth_base
success
:
(
res
)
=>
{
console
.
log
(
327
,
res
);
if
(
res
.
authCode
)
{
let
obj
=
{
// Source: 1,
// OpenId: "",
// Name: info.userInfo.nickName,
// Photo: info.userInfo.avatarUrl,
// Gender: info.userInfo.gender,
// Moblie: "",
// SuperiorId: 0,
code
:
res
.
authCode
,
};
// console.log(app.serverUrl + '/login/' + res.authCode);
// 调用自己的服务端接口,让服务端进行后端的授权认证
that
.
getBaseInfoAli
();
// that.getBaseInfoAli();
console
.
log
(
327
,
res
);
that
.
getCodeAli
(
obj
);
}
},
fail
:
()
=>
{
...
...
@@ -369,15 +380,16 @@ export default {
var
OpenId
=
""
;
that
.
request2
(
{
url
:
"/api/mall/Get
WeChatOpenId
"
,
url
:
"/api/mall/Get
AliCode
"
,
data
:
{
Code
:
obj
.
code
,
},
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
obj
.
OpenId
=
res
.
data
;
that
.
getLogin
(
obj
);
console
.
log
(
"390"
,
res
);
// obj.OpenId = res.data;
// that.getLogin(obj);
}
}
);
...
...
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