112 lines
3.4 KiB
HTML
112 lines
3.4 KiB
HTML
|
||
{extend name="public/base" /}
|
||
|
||
{block name="title"}
|
||
TP5学习制作:Tao.2019
|
||
{/block}
|
||
|
||
{block name="column"}
|
||
{include file="/public/column" /}
|
||
{/block}
|
||
|
||
{block name="content"}
|
||
<div class="layui-container">
|
||
<div class="layui-row layui-col-space15">
|
||
|
||
<div class="layui-col-md8">
|
||
|
||
<div class="fly-panel" style="margin-bottom: 0;">
|
||
|
||
<div class="fly-panel-title fly-filter">
|
||
<a href="" class="layui-this">“{$keywords}” 共{$counts}条结果</a>
|
||
</div>
|
||
|
||
<ul class="fly-list">
|
||
{volist name="artList" id="art"}
|
||
<li>
|
||
|
||
<a href="{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
|
||
<img src="{$art.user.user_img}" alt="{$art.user_id|getUserName}">
|
||
</a>
|
||
|
||
<h2>
|
||
<a class="layui-badge">{$art.cate.catename}</a>
|
||
<a href="{:url('article/detail',['id' => $art.id])}">{$art.title}</a>
|
||
</h2>
|
||
<div class="fly-list-info">
|
||
<a href="{:url('user/home',['id'=>$art.user_id])}" link>
|
||
<cite>{$art.user.name}</cite>
|
||
<!--
|
||
<i class="iconfont icon-renzheng" title="认证信息:XXX"></i>
|
||
<i class="layui-badge fly-badge-vip">VIP3</i>
|
||
-->
|
||
</a>
|
||
<span>{$art.create_time|date='Y-m-d'}</span>
|
||
|
||
<span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i class="iconfont icon-kiss"></i>{$art.pv}</span>
|
||
<!--<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>-->
|
||
|
||
<span class="fly-list-nums">
|
||
<i class="iconfont icon-pinglun1" title="回答"></i>{$art.comments_count}
|
||
</span>
|
||
</div>
|
||
<div class="fly-list-badge">
|
||
{if ($art.is_hot == 1)} <span class="layui-badge layui-bg-red">精帖</span> {/if}
|
||
</div>
|
||
</li>
|
||
{/volist}
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="layui-col-md4">
|
||
<!--温馨通道-->
|
||
<div class="fly-panel">
|
||
<h3 class="fly-panel-title">温馨通道</h3>
|
||
{include file="public/index-static" /}
|
||
</div>
|
||
|
||
<dl class="fly-panel fly-list-one">
|
||
<dt class="fly-panel-title">本周热议</dt>
|
||
{volist name="artHot" id="vo" empty="还没有帖子"}
|
||
<dd>
|
||
<a href="{:url('jie/detail',['id'=>$vo.id])}">{$vo.title}</a>
|
||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||
</dd>
|
||
{/volist}
|
||
</dl>
|
||
|
||
<div class="fly-panel">
|
||
<div class="fly-panel-title">
|
||
这里可作为广告区域
|
||
</div>
|
||
<div class="fly-panel-main">
|
||
<a href="#" target="_blank" class="fly-zanzhu" time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">TaoLer旗舰之作</a>
|
||
</div>
|
||
</div>
|
||
{include file="public/flink" /}
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
{/block}
|
||
{block name="script"}
|
||
<script>
|
||
layui.cache.page = 'index';
|
||
layui.cache.user = {
|
||
username: '{$user.name??'游客'}'
|
||
,uid: '{$user.id ?? -1}'
|
||
,avatar: '{$user.name? $user['user_img']:'/static/res/images/avatar/00.jpg'}'
|
||
,experience: '{$user.point ? $user.point : ''}'
|
||
,sex: '{$user.sex ? '女':'男'}'
|
||
};
|
||
layui.config({
|
||
version: "3.0.0"
|
||
,base: '/static/res/mods/'
|
||
}).extend({
|
||
fly: 'index'
|
||
}).use('fly');
|
||
</script>
|
||
{/block} |