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
033b8daa
Commit
033b8daa
authored
Oct 14, 2022
by
肖健
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v1.0.0' into v1.0.0_jd
parents
ac9d55e5
ce3b6016
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
home-new.vue
pages/home-new.vue
+16
-2
shop.vue
pages/shop.vue
+8
-1
No files found.
pages/home-new.vue
View file @
033b8daa
...
@@ -99,6 +99,13 @@
...
@@ -99,6 +99,13 @@
},
},
methods
:
{
methods
:
{
goShopH5
(
index
){
goShopH5
(
index
){
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
let
url
;
let
url
;
if
(
index
==
1
){
if
(
index
==
1
){
url
=
'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
url
=
'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
...
@@ -107,7 +114,7 @@
...
@@ -107,7 +114,7 @@
}
}
// uni.setStorageSync('h5url',url)
// uni.setStorageSync('h5url',url)
util
.
redirect
ToH5
({
page
:
url
})
util
.
navigate
ToH5
({
page
:
url
})
},
},
// 跳转 其他小程序页面
// 跳转 其他小程序页面
goJdShop
(
index
){
goJdShop
(
index
){
...
@@ -295,7 +302,14 @@
...
@@ -295,7 +302,14 @@
// uni.navigateTo({
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// url: '/pages/webview/webview?url=' + link
// })
// })
util
.
redirectToH5
({
page
:
link
})
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
util
.
navigateToH5
({
page
:
link
})
return
return
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
pages/shop.vue
View file @
033b8daa
...
@@ -280,7 +280,14 @@ export default {
...
@@ -280,7 +280,14 @@ export default {
// uni.navigateTo({
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// url: '/pages/webview/webview?url=' + link
// })
// })
util
.
redirectToH5
({
page
:
link
})
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
util
.
navigateToH5
({
page
:
link
})
return
return
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
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