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
21f57116
Commit
21f57116
authored
Oct 14, 2022
by
肖健
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v1.0.0' into v1.0.0_jd
parents
033b8daa
39f9ec23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
9 deletions
+28
-9
home-new.vue
pages/home-new.vue
+12
-8
main.vue
pages/main.vue
+15
-1
shop.vue
pages/shop.vue
+1
-0
No files found.
pages/home-new.vue
View file @
21f57116
...
...
@@ -34,12 +34,12 @@
</view>
</view>
<view
class=
"banner-other"
>
<view
@
click=
"goShopH5(1)"
>
<image
src=
"../static/index/2.png"
></image>
</view>
<view
@
click=
"goShopH5(2)"
>
<image
src=
"../static/index/1.png"
></image>
</view>
<view
@
click=
"goShopH5(1)"
>
<image
src=
"../static/index/2.png"
></image>
</view>
</view>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
</view>
...
...
@@ -101,6 +101,7 @@
goShopH5
(
index
){
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
setStorageSync
(
'jdNavto'
,
index
)
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
...
...
@@ -302,8 +303,10 @@
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// })
let
url
;
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
setStorageSync
(
'jdNavto'
,
1
)
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
...
...
@@ -478,16 +481,17 @@
.banner-other
{
position
:
absolute
;
right
:
-22rpx
;
top
:
-90rpx
;
right
:
-22rpx
;
top
:
-80rpx
;
z-index
:
100
;
>
view
{
&
:first-child
{
width
:
172rpx
;
height
:
140rpx
;
}
&
:last-child
{
margin-top
:
80rpx
;
margin-left
:
34rpx
;
width
:
120rpx
;
height
:
112rpx
;
}
&
:last-child
{
margin-top
:
70rpx
;
width
:
172rpx
;
height
:
140rpx
;
}
image
{
width
:
100%
;
height
:
100%
;
}
...
...
pages/main.vue
View file @
21f57116
...
...
@@ -334,7 +334,6 @@
duration
:
2000
});
// 判断是否扫码进入
that
.
scene
=
uni
.
getStorageSync
(
'scene'
)
// console.log(that.scene,"微信扫码进入")
...
...
@@ -375,6 +374,21 @@
}
}
// 判断是否有京东跳转
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'
}
// uni.setStorageSync('h5url',url)
util
.
navigateToH5
({
page
:
url
})
uni
.
removeStorageSync
(
'jdNavto'
)
}
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
...
...
pages/shop.vue
View file @
21f57116
...
...
@@ -282,6 +282,7 @@ export default {
// })
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
setStorageSync
(
'jdNavto'
,
1
)
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
...
...
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