mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-13 19:44:03 +08:00
轮播图增加视频支持
轮播图增加视频支持
This commit is contained in:
@@ -2429,7 +2429,7 @@ swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active {
|
|||||||
min-height: 375rpx;
|
min-height: 375rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-swiper image {
|
.screen-swiper image,.screen-swiper video{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -15,8 +15,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<swiper class="screen-swiper {{DotStyle?'square-dot':'round-dot'}}" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
|
<swiper class="screen-swiper {{DotStyle?'square-dot':'round-dot'}}" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
|
||||||
<swiper-item wx:for="{{4}}" wx:key>
|
<swiper-item wx:for="{{4}}" wx:key>
|
||||||
<image src="https://image.weilanwl.com/img/4x3-{{index+1}}.jpg" mode='aspectFill'></image>
|
<image src="https://image.weilanwl.com/img/4x3-{{index+1}}.jpg" mode='aspectFill' wx:if="{{index!=1}}"></image>
|
||||||
|
<video src='https://www.weilanwl.com/theme/wl/assets/images/slider1.mp4' autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:else></video>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
|
|
||||||
</swiper>
|
</swiper>
|
||||||
<view class="cu-bar bg-white margin-top">
|
<view class="cu-bar bg-white margin-top">
|
||||||
<view class='action'>
|
<view class='action'>
|
||||||
|
|||||||
Reference in New Issue
Block a user