coupon-admin/view/article/news.html

56 lines
2.1 KiB
HTML

{layout name="layout" /}
<div class="all-center-box">
<div class="page-banner w-100"><img src="{$category['src']}" ></div>
<div class="news-list w-100">
<div class="w-1200">
<div class="all-title2 w-100"><span>{$category["title"]}</span><p><i>NEWS CENTER</i></p></div>
<div class="top-box w-100">
<ul>
{foreach \app\model\Article::getList($categoryId, 3, '', ['top']) as $item}
<li>
<a href="{:url('/article')->suffix(false)}/{$item['id']}.html">
<img src="{$item['src']}" >
<div>
<span>{$item['title']}…</span>
<p>云享智慧 | {:date("Y-m-d",$item['create_time'])}</p>
</div>
</a>
</li>
{/foreach}
</ul>
</div>
<div class="lower-box w-100">
<ul>
{foreach $items as $item}
<li>
<a href="{:url('/article')->suffix(false)}/{$item['id']}.html">
<div class="pull-left"><img src="{$item['src']}" ></div>
<div class="pull-right">
<span>{$item['title']}</span>
<p>{$item['summary']}……</p>
<i>云享智慧 | {:date("Y-m-d",$item['create_time'])}</i>
</div>
</a>
</li>
{/foreach}
</ul>
</div>
<div class="pager w-100 center-center">
<ul class="pagination">
{$items->render()|raw}
{$page_size}
<li><a href="/articles/9.html?page_size=2">2条/页</a></li>
<li ><a href="/articles/9.html?page_size=4">4条/页</a></li>
<li >总共{$article_count}</li>
</ul>
</div>
</div>
</div>
</div>