feat: 模板区分pc与mobile
This commit is contained in:
73
app/index/view/pc/attachment/index.html
Normal file
73
app/index/view/pc/attachment/index.html
Normal file
@@ -0,0 +1,73 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" href="__CSS__/download.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="orico_Page_download">
|
||||
<!-- 内容 -->
|
||||
<div class="downloadMain">
|
||||
<div class="topimg">
|
||||
<img src="__IMAGES__/banner_01.png" />
|
||||
<div class="banner_title">{:lang('attachment.software_drives')}</div>
|
||||
</div>
|
||||
<div class="contact_c">
|
||||
<!-- 搜索 -->
|
||||
<form action="{:url('attachment/index')}" method="get">
|
||||
<div class="search_all">
|
||||
<input type="hidden" name="id" value="{$Request.get.id}" />
|
||||
<input type="text" name="keyword" placeholder="{:lang('attachment.search_placeholder')}" />
|
||||
<button class="searchbtn" type="submit"><img src="__IMAGES__/search_blue.png" /></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- tab切换 -->
|
||||
<div class="tab">
|
||||
{notempty name="categorys"}
|
||||
{volist name="categorys" id="ca"}
|
||||
<a href="{:url('attachment/index', ['id' => $ca.id])}">
|
||||
{if condition="(!$Request.has.id && $key == 0) || $Request.get.id == $ca.id"}
|
||||
<div class="tabit on">
|
||||
{else/}
|
||||
<div class="tabit">
|
||||
{/if}
|
||||
{$ca.name}
|
||||
</div>
|
||||
</a>
|
||||
{/volist}
|
||||
{/notempty}
|
||||
<a href="{:url('attachment/video')}"><div class="tabit">{:lang('attachment.video')}</div></a>
|
||||
</div>
|
||||
<!-- 切换的内容 -->
|
||||
<div class="softlist">
|
||||
{notempty name="attachements"}
|
||||
{volist name="attachements" id="att"}
|
||||
<div class="softit">
|
||||
<div class="left_img">
|
||||
<img src="{$att.image}" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<p class="title">{$att.name}</p>
|
||||
<p class="sub_title">{:lang('attachment.support_model')}: </p>
|
||||
<p class="des">{$att.applicable_to}</p>
|
||||
<p class="sub_title">{:lang('attachment.support_platform')}: </p>
|
||||
<p class="des">{$att.support_platform}</p>
|
||||
<p>
|
||||
{notempty name="att.attach"}
|
||||
{volist name="att.attach" id="ch"}
|
||||
<a href="{$ch.file_path}" target="_blank">
|
||||
<span class="l_button">{$ch.btn_name}</span>
|
||||
</a>
|
||||
{/volist}
|
||||
{/notempty}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
<div class="page-box">{$page|raw}</div>
|
||||
{else/}
|
||||
<div class="softit">{:lang('attachment.no_data')}</div>
|
||||
{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
79
app/index/view/pc/attachment/video.html
Normal file
79
app/index/view/pc/attachment/video.html
Normal file
@@ -0,0 +1,79 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" href="__CSS__/download.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="orico_Page_download">
|
||||
<!-- 内容 -->
|
||||
<div class="downloadMain">
|
||||
<div class="topimg">
|
||||
<img src="__IMAGES__/banner_01.png" />
|
||||
<div class="banner_title">{:lang('attachment.software_drives')}</div>
|
||||
</div>
|
||||
<div class="contact_c">
|
||||
<!-- 搜索 -->
|
||||
<form action="{:url('attachment/video')}" method="get">
|
||||
<div class="search_all">
|
||||
<input type="text" name="keyword" placeholder="{:lang('attachment.search_placeholder')}" />
|
||||
<button class="searchbtn" type="submit"><img src="__IMAGES__/search_blue.png" /></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- tab切换 -->
|
||||
<div class="tab">
|
||||
{notempty name="attachment_categorys"}
|
||||
{volist name="attachment_categorys" id="ca"}
|
||||
<a href="{:url('attachment/index', ['id' => $ca.id])}">
|
||||
<div class="tabit">
|
||||
{$ca.name}
|
||||
</div>
|
||||
</a>
|
||||
{/volist}
|
||||
{/notempty}
|
||||
<div class="tabit on">{:lang('attachment.video')}</div>
|
||||
</div>
|
||||
<!-- VIDEO 切换 -->
|
||||
<div class="vidotabs">
|
||||
{notempty name="video_categorys"}
|
||||
<div class="hd">
|
||||
<ul>
|
||||
{volist name="video_categorys" id="vca" key="k"}
|
||||
<li class="vli {if condition='($Request.has.id && $Request.get.id==$vca.id) || (!$Request.has.id && $k==1)'}von{/if}">
|
||||
<a href="{:url('attachment/video', ['id' => $vca.id])}" style="display: block;">{$vca.name}</a>
|
||||
</li>
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
{/notempty}
|
||||
<!-- 视频内容 -->
|
||||
<div class="bdconten">
|
||||
{notempty name="videos"}
|
||||
{volist name="videos" id="items"}
|
||||
<ul >
|
||||
{volist name="items" id="vo"}
|
||||
<dl class="video_hotul">
|
||||
<dd>
|
||||
<div class="hot1">
|
||||
<video poster="{$vo.image}" preload="none" controls="controls">
|
||||
<source src="{$vo.video}" type="video/mp4">
|
||||
</video>
|
||||
</div>
|
||||
<div class="htit">
|
||||
<div class="htit1">{$vo.name}</div>
|
||||
<div class="htit2">{$vo.desc}</div>
|
||||
</div>
|
||||
</dd>
|
||||
<div class="clear"></div>
|
||||
</dl>
|
||||
{/volist}
|
||||
</ul>
|
||||
{/volist}
|
||||
<div class="page-box">{$page|raw}</div>
|
||||
{else/}
|
||||
<ul><dl class="video-empty">{:lang('attachment.no_video')}</dl></ul>
|
||||
{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user