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
e326563d
Commit
e326563d
authored
Oct 11, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页添加图标
parent
9c9f96a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
home-new.vue
pages/home-new.vue
+38
-0
1.png
static/index/1.png
+0
-0
2.png
static/index/2.png
+0
-0
No files found.
pages/home-new.vue
View file @
e326563d
...
...
@@ -33,6 +33,14 @@
</view>
</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>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
</view>
...
...
@@ -90,6 +98,18 @@
};
},
methods
:
{
goShopH5
(
index
){
let
url
;
if
(
index
==
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
.
redirectToH5
({
page
:
url
})
},
// 跳转 其他小程序页面
goJdShop
(
index
){
let
sku
;
if
(
index
==
1
){
...
...
@@ -404,6 +424,7 @@
.banner
{
width
:
100%
;
margin-top
:
70rpx
;
position
:
relative
;
.banner-img
,
.banner-btn
{
margin
:
0
auto
;
...
...
@@ -442,6 +463,23 @@
}
}
.banner-other
{
position
:
absolute
;
right
:
-22rpx
;
top
:
-90rpx
;
>
view
{
&
:first-child
{
width
:
172rpx
;
height
:
140rpx
;
}
&
:last-child
{
margin-top
:
20rpx
;
margin-left
:
34rpx
;
width
:
120rpx
;
height
:
112rpx
;
}
image
{
width
:
100%
;
height
:
100%
;
}
}
}
}
.bg-img
{
...
...
static/index/1.png
0 → 100644
View file @
e326563d
13.2 KB
static/index/2.png
0 → 100644
View file @
e326563d
23.9 KB
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