Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
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
android
uniapp_vedio
Commits
3f5ee58b
Commit
3f5ee58b
authored
Aug 22, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0b690089
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
banner.vue
vedio/components/banner/banner.vue
+4
-4
banner.scss
vedio/scss/banner.scss
+1
-1
No files found.
vedio/components/banner/banner.vue
View file @
3f5ee58b
<
template
>
<view
class=
"banneritem"
>
<swiper
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
>
<swiper-item
@
click=
"handleBanner(item)"
v-for=
'(item, index) in bannerList'
:key=
'index'
style=
"border-radius: 20rpx;"
>
<swiper
class=
"banner"
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
:indicator-dots=
"true"
>
<swiper-item
@
click=
"handleBanner(item)"
v-for=
'(item, index) in bannerList'
:key=
'index'
>
<image
class=
"banner-img"
:src=
"item.carouselUrl"
mode=
"aspectFill"
></image>
</swiper-item>
</swiper>
...
...
@@ -55,7 +54,8 @@
// height: 310rpx;
.banner-img
{
height
:
320rpx
;
height
:
320rpx
;
border-radius
:
20rpx
;
}
}
</
style
>
\ No newline at end of file
vedio/scss/banner.scss
View file @
3f5ee58b
.banner
{
width
:
100%
;
height
:
3
4
0rpx
;
height
:
3
2
0rpx
;
vertical-align
:
bottom
;
&
-img
{
...
...
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