提交 80a920ec 编写于 作者: ModStart's avatar ModStart

develop

上级 a23940d6
......@@ -41,7 +41,7 @@ if(empty($bannerRatio)){
@if($banner['link']) href="{{$banner['link']}}" target="_blank" @else href="javascript:;" @endif>
<video class="video-player"
src="{{\ModStart\Core\Assets\AssetsUtil::fix($banner['video'])}}"
autoplay="autoplay" loop="loop" muted="muted"></video>
autoplay="autoplay" loop="loop" muted="muted" controls="false"></video>
</a>
@endif
@endforeach
......@@ -53,10 +53,27 @@ if(empty($bannerRatio)){
<div class="swiper-button-prev swiper-button-white"></div>
@endif
</div>
<style type="text/css">
/*video::-webkit-media-controls {*/
/* display: none;*/
/*}*/
/*video::-webkit-media-controls-play-button {}*/
/*video::-webkit-media-controls-volume-slider {}*/
/*video::-webkit-media-controls-mute-button {}*/
/*video::-webkit-media-controls-timeline {}*/
/*video::-webkit-media-controls-current-time-display {}*/
</style>
</div>
@if(count($banners)>1)
<script>
$(function () {
$.each('#{{$bannerId}} video', function(){
this.controls = false;
});
var swiper = new Swiper('#{{$bannerId}} .swiper-container', {
pagination: {
el: '.swiper-pagination',
......
......@@ -68,7 +68,7 @@
<div class="row">
@foreach(Cms::paginateCatByUrl('news',1,4,['where'=>['isRecommend'=>true]]) as $record)
<div class="col-md-6">
<div class="item-k tw-bg-white">
<div class="item-k tw-bg-white margin-bottom">
<a class="image" href="{{$record['_url']}}">
<div class="cover ub-cover-4-3"
style="background-image:url({{\ModStart\Core\Assets\AssetsUtil::fix($record['cover'])}})"></div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册