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
58c5a92a
Commit
58c5a92a
authored
May 08, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航栏扫一扫需要登录
parent
0cfced19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
main.vue
pages/main.vue
+33
-33
No files found.
pages/main.vue
View file @
58c5a92a
...
...
@@ -56,11 +56,12 @@ export default {
this
.
tab
=
'moveCar'
break
;
case
2
:
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
token
)
{
uni
.
scanCode
({
success
:
function
(
res
)
{
let
path
=
res
.
path
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
token
){
let
opts
=
{
url
:
'/app/user/info'
,
method
:
'get'
}
that
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
...
...
@@ -99,14 +100,13 @@ export default {
}
}
})
}
});
}
else
{
uni
.
showToast
({
title
:
'扫码失败'
,
icon
:
'none'
,
uni
.
navigateTo
({
url
:
'/pages/binding/index'
})
}
}
});
break
;
case
3
:
this
.
tab
=
'shop'
...
...
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