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
cedbe749
Commit
cedbe749
authored
Oct 14, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转修改
parent
39f9ec23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
main.vue
pages/main.vue
+17
-14
No files found.
pages/main.vue
View file @
cedbe749
...
...
@@ -23,6 +23,7 @@
import
moveCar
from
'./moveCar'
import
shop
from
'./shop'
import
personal
from
'./personal'
import
util
from
'@/pages/login/util.js'
let
plugin
=
requirePlugin
(
'loginPlugin'
);
export
default
{
...
...
@@ -372,23 +373,25 @@
url
:
routerLogin
})
}
}
// 判断是否有京东跳转
let
jdNavto
=
uni
.
setStorageSync
(
'jdNavto'
,
index
)
if
(
jdNavto
){
let
url
;
if
(
jdNavto
==
1
){
url
=
'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
}
else
{
url
=
'https://jarvis.m.jd.com/start?source=2'
}
// 判断是否有京东跳转
let
jdNavto
=
uni
.
getStorageSync
(
'jdNavto'
)
// uni.setStorageSync('h5url',url)
util
.
navigateToH5
({
page
:
url
})
uni
.
removeStorageSync
(
'jdNavto'
)
if
(
jdNavto
){
let
url
;
if
(
jdNavto
==
1
){
url
=
'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
}
else
{
url
=
'https://jarvis.m.jd.com/start?source=2'
}
// uni.setStorageSync('h5url',url)
util
.
navigateToH5
({
page
:
url
})
uni
.
removeStorageSync
(
'jdNavto'
)
}
}
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
...
...
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