refactor: 调整视频输出
This commit is contained in:
@@ -120,6 +120,10 @@ class Attachment extends Common
|
|||||||
'id' => $param['id']??null
|
'id' => $param['id']??null
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (!$videos->isEmpty()) {
|
||||||
|
$videos->setCollection($videos->getCollection()->chunk(2));
|
||||||
|
}
|
||||||
View::assign('videos', $videos);
|
View::assign('videos', $videos);
|
||||||
View::assign('page', $videos->render());
|
View::assign('page', $videos->render());
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<div class="hd">
|
<div class="hd">
|
||||||
<ul>
|
<ul>
|
||||||
{volist name="video_categorys" id="vca"}
|
{volist name="video_categorys" id="vca"}
|
||||||
<li class="vli {eq name='vca.id' value='Request.get.id' }von{/eq}">
|
<li class="vli {eq name='vca.id' value='$Request.get.id'}von{/eq}">
|
||||||
<a href="{:url('attachment/video', ['id' => $vca.id])}" style="display: block;">{$vca.name}</a>
|
<a href="{:url('attachment/video', ['id' => $vca.id])}" style="display: block;">{$vca.name}</a>
|
||||||
</li>
|
</li>
|
||||||
{/volist}
|
{/volist}
|
||||||
@@ -46,10 +46,11 @@
|
|||||||
{/notempty}
|
{/notempty}
|
||||||
<!-- 视频内容 -->
|
<!-- 视频内容 -->
|
||||||
<div class="bdconten">
|
<div class="bdconten">
|
||||||
<ul >
|
|
||||||
{notempty name="videos"}
|
{notempty name="videos"}
|
||||||
|
{volist name="videos" id="items"}
|
||||||
|
<ul >
|
||||||
|
{volist name="items" id="vo"}
|
||||||
<dl class="video_hotul">
|
<dl class="video_hotul">
|
||||||
{volist name="videos" id="vo"}
|
|
||||||
<dd>
|
<dd>
|
||||||
<div class="hot1">
|
<div class="hot1">
|
||||||
<video poster="{$vo.image}" preload="none" controls="controls">
|
<video poster="{$vo.image}" preload="none" controls="controls">
|
||||||
@@ -61,14 +62,15 @@
|
|||||||
<div class="htit2">{$vo.desc}</div>
|
<div class="htit2">{$vo.desc}</div>
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
{/volist}
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</dl>
|
</dl>
|
||||||
<div>{$page|raw}</div>
|
{/volist}
|
||||||
{else/}
|
|
||||||
<dl class="video-empty">查询无结果!</dl>
|
|
||||||
{/notempty}
|
|
||||||
</ul>
|
</ul>
|
||||||
|
{/volist}
|
||||||
|
<div class="page-box">{$page|raw}</div>
|
||||||
|
{else/}
|
||||||
|
<ul><dl class="video-empty">查询无结果!</dl></ul>
|
||||||
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -158,12 +158,15 @@
|
|||||||
background-color: rgba(0, 75, 250, 0.05);
|
background-color: rgba(0, 75, 250, 0.05);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.orico_Page_download .downloadMain .page-box {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
.orico_Page_download .downloadMain .contact_c .pagination {
|
.orico_Page_download .downloadMain .contact_c .pagination {
|
||||||
|
display: inline-block!important;
|
||||||
zoom: 1;
|
zoom: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #555;
|
color: #555;
|
||||||
clear: both;
|
padding-bottom: 2rem!important;
|
||||||
padding-bottom: 2rem;
|
|
||||||
}
|
}
|
||||||
.orico_Page_download .downloadMain .contact_c .pagination span {
|
.orico_Page_download .downloadMain .contact_c .pagination span {
|
||||||
padding: 0px 0px;
|
padding: 0px 0px;
|
||||||
|
|||||||
Reference in New Issue
Block a user