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
de05ba3e
Commit
de05ba3e
authored
Jun 15, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改
parent
025b7eb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
42 deletions
+64
-42
home-new.vue
pages/home-new.vue
+64
-42
ban-btn.png
static/index/ban-btn.png
+0
-0
banner.png
static/index/banner.png
+0
-0
No files found.
pages/home-new.vue
View file @
de05ba3e
<
template
>
<view
class=
"appCotent"
v-if=
"show"
>
<view
class=
"index-content"
>
<view
class=
"swiper"
>
<u-swiper
radius=
"20rpx"
:height=
"130"
:list=
"list5"
circular
@
change=
"e => current = e.current"
:autoplay=
"true"
keyName=
"imageUrl"
@
click=
"goOtherLink"
>
<view
slot=
"indicator"
class=
"indicator"
>
<view
class=
"indicator__dot"
v-for=
"(item, index) in list5"
:key=
"index"
:class=
"[index === current && 'indicator__dot--active']"
>
</view>
<view
class=
"head"
>
<image
src=
"http://jdnc-oss.uzosp.com/2022/06/15/99131cbc49c2444ea09083abdd2f2750.png"
></image>
<view
class=
"swiper"
>
<image
src=
"../static/index/banner.png"
></image>
<view>
<u-swiper
radius=
"16rpx"
:height=
"130"
:list=
"list5"
circular
@
change=
"e => current = e.current"
:autoplay=
"true"
keyName=
"imageUrl"
@
click=
"goOtherLink"
>
<view
slot=
"indicator"
class=
"indicator"
>
<view
class=
"indicator__dot"
v-for=
"(item, index) in list5"
:key=
"index"
:class=
"[index === current && 'indicator__dot--active']"
>
</view>
</view>
</u-swiper>
</view>
</u-swiper>
</view>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
<view
class=
"banner"
>
<view
class=
"banner-img"
>
<image
src=
"http://jdnc-oss.uzosp.com/2022/06/13/f70fc82ad7ef4c1bb653c77abe396e6d.png"
></image>
<view
class=
"left"
@
click=
"goJdShop(1)"
>
<view
class=
"banner-btn"
>
<image
src=
"../static/index/ban-btn.png"
></image>
<text>
立即购买
</text>
</view>
<view
class=
"banner"
>
<view
class=
"banner-img"
>
<image
src=
"http://jdnc-oss.uzosp.com/2022/06/15/e7dec07c0dbe4e2faa42530e3a0b2218.png"
></image>
<view
class=
"left"
@
click=
"goJdShop(1)"
>
<view
class=
"banner-btn"
>
<image
src=
"../static/index/ban-btn.png"
></image>
<text>
立即购买
</text>
</view>
</view>
</view
>
<view
class=
"right"
@
click=
"goJdShop(2)
"
>
<view
class=
"banner-btn"
>
<image
src=
"../static/index/ban-btn.png"
></image
>
<
text>
立即购买
</text
>
<view
class=
"right"
@
click=
"goJdShop(2)"
>
<view
class=
"banner-btn
"
>
<image
src=
"../static/index/ban-btn.png"
></image
>
<text>
立即购买
</text
>
<
/view
>
</view>
</view>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
</view>
<u-gap
bgColor=
"transparent"
height=
"20"
></u-gap>
<!--
<view
class=
"banner-btn"
>
<image
src=
"../static/index/ban-btn.png"
></image>
<text>
限时领取
</text>
</view>
-->
</view>
<u-gap
bgColor=
"transparent"
height=
"15"
></u-gap>
<view
class=
"bg-img"
>
<image
src=
"http://jdnc-oss.uzosp.com/2022/0
5/31/ecfc20fad7ad483994c524c77647797d
.png"
></image>
<image
src=
"http://jdnc-oss.uzosp.com/2022/0
6/15/079440f5eea541bba67ea3d5f8097162
.png"
></image>
</view>
...
...
@@ -329,8 +332,27 @@
<
style
lang=
"scss"
>
.index-content
{
.swiper
{
padding
:
30rpx
;
.head
{
width
:
100%
;
height
:
1477rpx
;
padding
:
530rpx
20rpx
;
box-sizing
:
border-box
;
position
:
relative
;
>
image
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
.swiper
{
box-sizing
:
border-box
;
padding
:
0
16rpx
;
position
:
relative
;
border-radius
:
16rpx
;
>
image
{
position
:
absolute
;
top
:
-12px
;
left
:
-17rpx
;
width
:
744rpx
;
height
:
161px
;
}
}
}
background-color
:
#f9f9f9
;
...
...
@@ -376,6 +398,7 @@
.banner
{
width
:
100%
;
margin-top
:
70rpx
;
.banner-img
,
.banner-btn
{
margin
:
0
auto
;
...
...
@@ -387,30 +410,29 @@
}
view
,
text
{
position
:
relative
;
z-index
:
100
;
}
}
.banner-img
{
width
:
690rpx
;
height
:
344
rpx
;
width
:
710rpx
;
height
:
542
rpx
;
box-sizing
:
border-box
;
padding
:
0
110rpx
;
padding
:
100rpx
80rpx
0
;
display
:flex
;
justify-content
:
space-between
;
.left
{
width
:
2
20rpx
;
height
:
22
0rpx
;
width
:
2
60rpx
;
height
:
36
0rpx
;
}
.right
{
width
:
2
20rpx
;
height
:
22
0rpx
;
width
:
2
60rpx
;
height
:
36
0rpx
;
}
>
view
{
.banner-btn
{
width
:
100%
;
height
:
62
rpx
;
width
:
200rpx
;
height
:
66
rpx
;
font-weight
:
bold
;
color
:
#
1F335A
;
top
:
2
40
rpx
;
color
:
#
674600
;
top
:
2
80rpx
;
left
:
-2
rpx
;
font-size
:
30rpx
;
text-align
:
center
;
line-height
:
6
2
rpx
;
line-height
:
6
6
rpx
;
}
}
}
...
...
@@ -420,7 +442,7 @@
.bg-img
{
width
:
100%
;
image
{
width
:
100%
;
height
:
4
296
rpx
;
width
:
100%
;
height
:
4
420
rpx
;
}
}
...
...
static/index/ban-btn.png
View replaced file @
025b7eb1
View file @
de05ba3e
3.08 KB
|
W:
|
H:
1.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/index/banner.png
0 → 100644
View file @
de05ba3e
113 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