2020-11-26 02:28:53 +00:00
|
|
|
{layout name="layout" /}
|
|
|
|
|
2020-12-03 07:33:56 +00:00
|
|
|
<!-- banner -->
|
2020-12-04 02:11:22 +00:00
|
|
|
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban3.jpg')});">
|
2020-12-03 07:33:56 +00:00
|
|
|
<div class="info">
|
|
|
|
<div class="w-1200">
|
|
|
|
<strong>{$category.title ?? ''}</strong>
|
|
|
|
<p>{:nl2br($category.description ?? '')}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- -->
|
|
|
|
<div class="all-center-box">
|
|
|
|
<div class="product-box w-100">
|
2020-12-04 06:33:02 +00:00
|
|
|
<div class="w-1200 products-search-box">
|
|
|
|
<form action="{:url('products.search')}" method="get">
|
2020-12-04 02:11:22 +00:00
|
|
|
<select name="category_id">
|
|
|
|
<option value="{$topCategory.id}">产品选择</option>
|
|
|
|
{if isset($categoryChildren) && count($categoryChildren) >0}
|
|
|
|
{foreach $categoryChildren as $cate}
|
|
|
|
<option value="{$cate.id}" {if $categoryId == $cate.id}selected="selected"{/if}>{$cate.title}</option>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
</select>
|
2020-12-04 06:33:02 +00:00
|
|
|
<input name="keyword" placeholder="关键词查询..." value="{$keyword ?? ''}" />
|
2020-12-04 02:11:22 +00:00
|
|
|
<button type="submit">查询</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-12-03 07:33:56 +00:00
|
|
|
<div class="w-1200">
|
|
|
|
{if isset($items)}
|
|
|
|
<div class="center-block w-100">
|
|
|
|
<ul>
|
|
|
|
{foreach $items as $item}
|
2020-12-04 06:33:02 +00:00
|
|
|
<li><a href="{:url('article/detail', ['id' => $item.id])}"><span><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></span><p>{$item.title}</p></a></li>
|
2020-12-03 07:33:56 +00:00
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="pager w-100">
|
|
|
|
{$items->render()|raw}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|