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
9c9f96a9
Commit
9c9f96a9
authored
Aug 22, 2022
by
肖健
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v1.0.0' into v1.0.0
parents
f858ecd5
feccd1cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
567 additions
and
543 deletions
+567
-543
api.js
common/api/api.js
+1
-1
main.vue
pages/main.vue
+14
-1
moveCar.vue
pages/moveCar.vue
+2
-0
personal.vue
pages/personal.vue
+548
-541
shop.vue
pages/shop.vue
+2
-0
No files found.
common/api/api.js
View file @
9c9f96a9
...
...
@@ -64,7 +64,7 @@ const httpTokenRequest = (opts, data) => {
// console.log(33333333333,res[1])
if
(
res
[
1
].
data
.
code
==
401
){
uni
.
removeStorageSync
(
'userToken'
)
uni
.
navigate
To
({
uni
.
redirect
To
({
url
:
"/pages/login/index/index?failure=401"
})
return
;
...
...
pages/main.vue
View file @
9c9f96a9
...
...
@@ -85,6 +85,7 @@
},
methods
:
{
tabChange
(
index
)
{
uni
.
setStorageSync
(
'tabbar'
,
index
)
let
that
=
this
switch
(
index
)
{
case
0
:
...
...
@@ -333,6 +334,7 @@
duration
:
2000
});
// 判断是否扫码进入
that
.
scene
=
uni
.
getStorageSync
(
'scene'
)
// console.log(that.scene,"微信扫码进入")
...
...
@@ -358,8 +360,19 @@
icon
:
'none'
,
duration
:
2000
});
}
}
})
}
else
{
let
routerLogin
=
uni
.
getStorageSync
(
'routerLogin'
)
let
tabbar
=
uni
.
getStorageSync
(
'tabbar'
)
if
(
tabbar
){
this
.
tabChange
(
tabbar
)
}
if
(
routerLogin
){
uni
.
redirectTo
({
url
:
routerLogin
})
}
}
}
else
{
...
...
pages/moveCar.vue
View file @
9c9f96a9
...
...
@@ -56,6 +56,8 @@
methods
:
{
goUrl
(
vo
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
uni
.
removeStorageSync
(
'routerLogin'
)
uni
.
setStorageSync
(
'routerLogin'
,
vo
.
url
)
if
(
!
token
)
{
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=1'
...
...
pages/personal.vue
View file @
9c9f96a9
This diff is collapsed.
Click to expand it.
pages/shop.vue
View file @
9c9f96a9
...
...
@@ -166,6 +166,8 @@ export default {
},
goDetail
(
id
,
link
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
uni
.
removeStorageSync
(
'routerLogin'
)
uni
.
setStorageSync
(
'routerLogin'
,
false
)
if
(
!
token
){
let
returnPage
=
'/pages/main'
;
let
pageType
=
"reLaunch"
...
...
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