feat: mobile视频页
This commit is contained in:
@@ -36,12 +36,18 @@ return [
|
||||
'信息提交失败!' => 'Add Fail!',
|
||||
|
||||
// 附件下载
|
||||
'软件下载' => 'Software download',
|
||||
'支持型号' => 'Supported Models',
|
||||
'支持系统' => 'Supported Systems',
|
||||
'全站搜索' => 'Search',
|
||||
'搜索' => 'Search',
|
||||
'请搜索' => 'Please search...',
|
||||
'attachment/index' => [
|
||||
'软件下载' => 'Software download',
|
||||
'支持型号' => 'Supported Models',
|
||||
'支持系统' => 'Supported Systems',
|
||||
'全站搜索' => 'Search',
|
||||
'搜索' => 'Search',
|
||||
'请搜索' => 'Please search...',
|
||||
],
|
||||
'attachment/video' => [
|
||||
'软件和驱动程序' => 'Software and Drivers',
|
||||
'您的浏览器不支持 video 标签。' => 'Your browser does not support HTML5 video.',
|
||||
],
|
||||
|
||||
// 成为分销商页面
|
||||
'成为经销商' => 'Become a Distributor',
|
||||
|
||||
41
app/index/view/mobile/attachment/video.html
Normal file
41
app/index/view/mobile/attachment/video.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/attachment_video.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="oricoEGapp">
|
||||
<!-- 主体内容-->
|
||||
<div class="oricoEGapp-softDrviersVideo">
|
||||
<div class="topbanner">
|
||||
<img src="__IMAGES__/video-banner.webp" class="bannerimg" />
|
||||
<span class="bannertitle">{:lang_i18n('软件和驱动程序')}</span>
|
||||
</div>
|
||||
<!-- 分类切换-->
|
||||
<div class="tabs">
|
||||
{notempty name="video_categorys"}
|
||||
{volist name="video_categorys" id="va"}
|
||||
<a href="{:url('attachment/index', ['id' => $va.id])}"><div class="tabit active">{$va.name}</div></a>
|
||||
{/volist}
|
||||
{/notempty}
|
||||
</div>
|
||||
<div class="infolist">
|
||||
{notempty name="videos"}
|
||||
{assign name="flat_videos" value=":\think\helper\Arr::flatMap(fn($item) => $item->toArray(), $videos->items())" /}
|
||||
{volist name="flat_videos" id="vo"}
|
||||
<div class="vd-item">
|
||||
<video controls="" poster="{$vo.image|default=''}">
|
||||
<source src="{$vo.video}" type="video/mp4">
|
||||
{:lang_i18n('您的浏览器不支持 video 标签。')}
|
||||
</video>
|
||||
<div class="texts">
|
||||
<span class="t1">{$vo.name}</span>
|
||||
<span class="t2">{$vo.desc}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
<div>{$page|raw}</div>
|
||||
{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user