Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
c08bc570
Commit
c08bc570
authored
Apr 28, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
f8901bb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
index.vue
pages/binding/index.vue
+6
-2
personal.vue
pages/personal.vue
+1
-0
No files found.
pages/binding/index.vue
View file @
c08bc570
...
...
@@ -107,10 +107,10 @@ export default {
code
:
code
,
}
let
opts
=
{
url
:
'/xcx/code/session'
,
method
:
'post'
}
await
that
.
http
.
httpRequest
(
opts
,
param
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
that
.
openid
=
res
.
data
.
data
.
openid
uni
.
setStorageSync
(
'openid'
,
that
.
openid
);
}
})
},
...
...
@@ -200,7 +200,11 @@ export default {
},
},
onLoad
(
e
)
{
//默认加载
this
.
wechatLogin
()
let
openid
=
uni
.
getStorageSync
(
'openid'
);
if
(
!
openid
)
{
this
.
wechatLogin
()
}
// #ifdef MP-WEIXIN
if
(
e
.
scene
)
{
...
...
pages/personal.vue
View file @
c08bc570
...
...
@@ -126,6 +126,7 @@ export default {
if
(
res
.
data
.
code
==
200
)
{
uni
.
removeStorageSync
(
'userToken'
)
uni
.
removeStorageSync
(
'xcxIndexPath'
)
uni
.
removeStorageSync
(
'openid'
)
uni
.
navigateTo
({
url
:
'/pages/binding/index'
...
...
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