Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scmMiniprogram
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
aeaead04
authored
Sep 30, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
a81c6c73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
pages/mine/auth.vue
pages/mine/login.vue
pages/mine/auth.vue
View file @
aeaead04
...
...
@@ -51,8 +51,10 @@ export default {
if
(
data
.
err_code
===
0
)
{
uni
.
setStorageSync
(
'openid'
,
data
.
data
.
openid
);
uni
.
setStorageSync
(
'session_key'
,
data
.
data
.
session_key
);
uni
.
setStorageSync
(
'unionid'
,
data
.
data
.
unionid
);
uni
.
navigateTo
({
url
:
'/pages/mine/login'
url
:
'/pages/mine/login'
});
}
else
{
uni
.
showToast
({
...
...
pages/mine/login.vue
View file @
aeaead04
...
...
@@ -55,6 +55,7 @@ export default {
let
openid
=
uni
.
getStorageSync
(
'openid'
);
let
session_key
=
uni
.
getStorageSync
(
'session_key'
);
let
unionid
=
uni
.
getStorageSync
(
'unionid'
);
this
.
request
(
API
.
Login
,
'POST'
,
...
...
@@ -62,7 +63,8 @@ export default {
account
:
this
.
account
,
pwd
:
this
.
pwd
,
openid
:
openid
,
session_key
:
session_key
session_key
:
session_key
,
unionid
:
unionid
},
true
).
then
(
res
=>
{
...
...
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