coupon-admin/view/article/product_center.html

68 lines
2.3 KiB
HTML

{layout name="layout" /}
<div class="all-center-box">
<div class="page-banner w-100"><img src="{$category['src']}" ></div>
<div class="product-box1 w-100">
<div class="w-1200">
<div class="all-title2 w-100"><span>产品中心</span><p><i>PRODUCT CENTER</i></p></div>
<div class="page-menu w-100 center-center">
{php}
$this_menu= \app\model\Category::alias('c')
->leftJoin('model m', 'c.model_id=m.id')
->field('c.*, m.manager, m.template, m.name as modelName')
->where('c.parent_id', 5)
->order('c.sort','asc')
->select()
->toArray();
{/php}
<div class="between-center">
{foreach $this_menu as $item}
<a href="{:url('/articles')->suffix(false)}/{$item['id']}.html" class="{:input('category_id')==$item['id']?'active':''}">
{$item["title"]}
</a>
{/foreach}
</div>
</div>
<div class="center-block w-100">
<ul>
{foreach $items as $item}
<li>
<a href="{:url('/article')->suffix(false)}/{$item['id']}.html">
<div class="box-info1 w-100">
<div class="box1 w-100"><img src="{$item['src']}" ></div>
<div class="box2 w-100">
<span>{$item["title"]}</span>
<p>{$item["summary"]}</p>
</div>
</div>
<div class="box-info2 w-100 center-center">
<span>{$item["title"]}</span>
<p>{$item["summary"]}</p>
</div>
</a>
</li>
{/foreach}
</ul>
</div>
<div class="pager w-100 center-center">
<ul class="pagination">
{$items->render()|raw}
</ul>
</div>
</div>
</div>
</div>