Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
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
吴迪
gs1
Commits
dca77e17
Commit
dca77e17
authored
Nov 20, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页最下面广告滚动样式
parent
97b9669e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
22 deletions
+124
-22
nextArrow-default.png
src/assets/image/home/nextArrow-default.png
+0
-0
nextArrow-hover.png
src/assets/image/home/nextArrow-hover.png
+0
-0
prevArrow-default.png
src/assets/image/home/prevArrow-default.png
+0
-0
prevArrow-hover.png
src/assets/image/home/prevArrow-hover.png
+0
-0
index.vue
src/views/Home/index.vue
+124
-22
No files found.
src/assets/image/home/nextArrow-default.png
0 → 100644
View file @
dca77e17
1.7 KB
src/assets/image/home/nextArrow.png
→
src/assets/image/home/nextArrow
-hover
.png
View file @
dca77e17
File moved
src/assets/image/home/prevArrow.png
→
src/assets/image/home/prevArrow
-default
.png
View file @
dca77e17
File moved
src/assets/image/home/prevArrow-hover.png
0 → 100644
View file @
dca77e17
1.64 KB
src/views/Home/index.vue
View file @
dca77e17
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
v-for=
"el in newsBanner"
v-for=
"el in newsBanner"
:key=
"el.id"
:key=
"el.id"
>
>
<img
:src=
"el.picFile"
alt=
"..."
class=
"newsBanner-tp"
/>
<img
:src=
"el.picFile"
alt=
"..."
class=
"newsBanner-tp"
/>
</div>
</div>
</VueSlickCarousel>
</VueSlickCarousel>
<VueSlickCarousel
<VueSlickCarousel
...
@@ -76,6 +76,12 @@
...
@@ -76,6 +76,12 @@
{{ el.title }}
{{ el.title }}
</div>
</div>
</div>
</div>
<
template
#
prevArrow
>
<div
class=
"custom-arrow"
></div>
</
template
>
<
template
#
nextArrow
>
<div
class=
"custom-arrow"
></div>
</
template
>
</VueSlickCarousel>
</VueSlickCarousel>
</div>
</div>
</div>
</div>
...
@@ -427,12 +433,41 @@
...
@@ -427,12 +433,41 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"advert"
>
<div
class=
"smallImages"
>
<VueSlickCarousel
v-bind=
"smallImagesSettings"
v-if=
"smallImages.length > 0"
ref=
"smallImages"
>
<div
class=
"smallImages-item"
v-for=
"(tmpA, i) in smallImages"
:key=
"i"
>
<div
class=
"row"
>
<div
class=
"col-lg-4"
v-for=
"(tmpB, ii) in tmpA"
:key=
"ii"
@
click=
"handelSmallImagesClick(tmpB)"
>
<img
:src=
"tmpB.picIndexPath"
/>
</div>
</div>
</div>
<
template
#
prevArrow
>
<div
class=
"custom-arrow"
></div>
</
template
>
<
template
#
nextArrow
>
<div
class=
"custom-arrow"
></div>
</
template
>
</VueSlickCarousel>
<div
<div
id=
"advert"
id=
"advert"
class=
"carousel slide"
class=
"carousel slide"
data-bs-ride=
"carousel"
data-bs-ride=
"carousel"
data-bs-interval=
"false"
data-bs-interval=
"false"
v-if=
"false"
>
>
<div
class=
"carousel-inner"
>
<div
class=
"carousel-inner"
>
<div
<div
...
@@ -894,6 +929,13 @@ export default {
...
@@ -894,6 +929,13 @@ export default {
],
],
},
},
smallImages
:
[],
smallImages
:
[],
smallImagesSettings
:
{
arrows
:
true
,
autoplay
:
false
,
dots
:
false
,
slidesToShow
:
1
,
slidesToScroll
:
1
,
},
};
};
},
},
created
()
{
created
()
{
...
@@ -1113,6 +1155,7 @@ export default {
...
@@ -1113,6 +1155,7 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
.slick-slide
{
.slick-slide
{
height
:
100%
;
>
div
{
>
div
{
height
:
100%
;
height
:
100%
;
>
div
{
>
div
{
...
@@ -1120,6 +1163,48 @@ export default {
...
@@ -1120,6 +1163,48 @@ export default {
}
}
}
}
}
}
.slick-arrow
{
z-index
:
9
;
display
:
flex
;
align-items
:
center
;
&.slick-prev
{
left
:
0
;
&::before
{
background
:
url("../../assets/image/home/prevArrow-default.png")
no-repeat
;
background-size
:
100%
100%
;
content
:
""
;
}
&
:hover
{
&::before
{
background
:
url("../../assets/image/home/prevArrow-hover.png")
no-repeat
;
background-size
:
100%
100%
;
}
}
}
&
.slick-next
{
right
:
0
;
display
:
flex
;
justify-content
:
flex-end
;
&::before
{
background
:
url("../../assets/image/home/nextArrow-default.png")
no-repeat
;
background-size
:
100%
100%
;
content
:
""
;
}
&
:hover
{
&::before
{
background
:
url("../../assets/image/home/nextArrow-hover.png")
no-repeat
;
background-size
:
100%
100%
;
}
}
}
img
{
vertical-align
:
middle
;
}
}
.banner
{
.banner
{
.slick-dots
{
.slick-dots
{
bottom
:
25px
!important
;
bottom
:
25px
!important
;
...
@@ -1146,28 +1231,48 @@ export default {
...
@@ -1146,28 +1231,48 @@ export default {
}
}
.newsBanner
{
.newsBanner
{
.slick-arrow
{
.slick-arrow
{
z-index
:
9
;
width
:
40px
;
width
:
40px
;
height
:
40px
;
height
:
50px
;
margin
:
0
10px
;
&.slick-prev
{
&.slick-prev
{
left
:
0
;
position
:
relative
;
position
:
relative
;
&::before
{
&::before
{
font-size
:
40px
;
width
:
9px
;
height
:
14px
;
}
}
}
}
&
.slick-next
{
&
.slick-next
{
right
:
0
;
position
:
relative
;
position
:
relative
;
&::before
{
&::before
{
font-size
:
40px
;
width
:
9px
;
height
:
14px
;
}
}
}
img
{
vertical-align
:
middle
;
}
}
}
}
.newsBannerB
{
.newsBannerB
{
background
:
linear-gradient
(
180deg
,
rgba
(
0
,
0
,
0
,
0.01
)
0%
,
#000000
100%
);
background
:
linear-gradient
(
180deg
,
rgba
(
0
,
0
,
0
,
0.01
)
0%
,
#000000
100%
);
}
}
}
}
.smallImages
{
.slick-arrow
{
margin
:
0
10px
;
&.slick-prev
{
&::before
{
width
:
10px
;
height
:
18px
;
}
}
&
.slick-next
{
&::before
{
width
:
10px
;
height
:
18px
;
}
}
}
}
}
}
@media
screen
and
(
min-width
:
992px
)
{
@media
screen
and
(
min-width
:
992px
)
{
.dzfwDialog-width
{
.dzfwDialog-width
{
...
@@ -1285,7 +1390,7 @@ export default {
...
@@ -1285,7 +1390,7 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
}
}
.newsBannerB
{
.newsBannerB
{
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
width
:
100%
;
left
:
0
;
left
:
0
;
...
@@ -1305,6 +1410,7 @@ export default {
...
@@ -1305,6 +1410,7 @@ export default {
}
}
}
}
}
}
.tabs1
{
.tabs1
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -1632,28 +1738,24 @@ export default {
...
@@ -1632,28 +1738,24 @@ export default {
width
:
100%
;
width
:
100%
;
}
}
}
}
.
advert
{
.
smallImages
{
margin
:
40px
0
;
margin
:
40px
0
;
.
carousel
-item
{
.
smallImages
-item
{
img
{
img
{
width
:
100%
;
width
:
100%
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
.carousel-control-prev
,
}
.carousel-control-next
{
.advert
{
opacity
:
1
;
margin
:
40px
0
;
width
:
24px
;
.carousel-item
{
height
:
50px
;
position
:
absolute
;
top
:
50%
;
transform
:
translateY
(
-50%
);
margin
:
0
;
img
{
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
cursor
:
pointer
;
}
}
}
}
}
}
}
}
...
...
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