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
dcb9cce8
Commit
dcb9cce8
authored
Jan 13, 2023
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复跳转问题
parent
c4a153b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
utils.js
common/utils.js
+4
-3
No files found.
common/utils.js
View file @
dcb9cce8
...
@@ -11,15 +11,16 @@ export function goToLocation(item) {
...
@@ -11,15 +11,16 @@ export function goToLocation(item) {
let
token
=
uni
.
getStorageSync
(
'userToken'
)
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
!
token
)
{
if
(
!
token
)
{
uni
.
setStorageSync
(
'jdNavToObj'
,
item
)
uni
.
setStorageSync
(
'jdNavToObj'
,
item
)
let
returnPage
=
'/pages/main'
;
let
pageType
=
"reLaunch"
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
url
:
"/pages/login/index/index?returnPage="
+
returnPage
+
'&pageType='
+
pageType
})
})
return
return
}
}
let
url
//H5链接,判断链接是否设置
//H5链接,判断链接是否设置
if
(
item
.
busType
==
1
&&
item
.
link
){
if
(
item
.
busType
==
1
&&
item
.
link
){
util
.
navigateToH5
({
page
:
url
})
util
.
navigateToH5
({
page
:
item
.
link
})
}
}
//小程序链接,需要判断链接和appId是否都设置
//小程序链接,需要判断链接和appId是否都设置
if
(
item
.
busType
==
2
&&
item
.
appId
!=
null
&&
item
.
link
){
if
(
item
.
busType
==
2
&&
item
.
appId
!=
null
&&
item
.
link
){
...
...
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