优化:首页装修页面视频播放器优化 - 显示相关控件

This commit is contained in:
wuhui_zzw 2023-08-18 17:57:03 +08:00
parent 7f31190de9
commit 3a7aacb474
1 changed files with 2 additions and 2 deletions

View File

@ -13,9 +13,9 @@
<div class="swiper-slide">
<a href="{{ $image['link']['link'] ?: 'javascript:void(0)' }}" class="d-flex justify-content-center">
@if(in_array(pathinfo($image['image'])['extension'],['mp4']))
<video src="{{ $image['image'] }}" class="img-fluid" muted autoplay loop>
<video src="{{ $image['image'] }}" class="img-fluid" controls autoplay loop muted>
@else
<img src="{{ $image['image'] }}" class="img-fluid">
<img src="{{ $image['image'] }}" class="img-fluid">
@endif
</a>
</div>