基本介绍
搜索关键词
{$word}
结果列表
与栏目列表一样,输出内容根据你搜索的模型
{foreach $lists as $v}
具备参数与article、product一致
{/foreach}
{if($lists)}
<ul class="pagination">
<li class="page-item {if(!$listpage['prev'])}disabled{/if}">
<a class="page-link" href="{$listpage['prev']}" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
{foreach $listpage['list'] as $ss}
当前页码:$listpage['current_num']
分页页码:$ss['num']
分页链接:$ss['url']
<li class="page-item {if($ss['num']==$listpage['current_num'])}active background{/if}"><a href="{$ss['url']}" class="page-link">{$ss['num']}</a></li>
{/foreach}
<li class="page-item {if(!$listpage['next'])}disabled{/if}"><a class="page-link" href="{!$listpage['next']}" aria-label="Next"><span aria-hidden="true">»</span></a></li>
</ul>
{else}
没有找到你想要的结果~
{/if}