2020-01-01 13:17:19 +08:00
|
|
|
|
{extend name="public/base" /}
|
2020-03-13 22:59:38 +08:00
|
|
|
|
{block name="title"}{$Request.param.ename|getCateName}-{$sysInfo.webname}{/block}
|
|
|
|
|
{block name="keywords"}{$Request.param.ename|getCateName},{$sysInfo.webname}{/block}
|
|
|
|
|
{block name="description"}{$Request.param.ename|getCateDesc}{/block}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{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;">
|
|
|
|
|
|
|
|
|
|
{include file="public/filter" /}
|
|
|
|
|
<ul class="fly-list">
|
2020-03-15 18:38:56 +08:00
|
|
|
|
{volist name="artList" id="art"}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<li>
|
|
|
|
|
<a href="{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar">
|
2020-03-13 22:59:38 +08:00
|
|
|
|
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</a>
|
|
|
|
|
<h2>
|
|
|
|
|
<a class="layui-badge">{$art.cate.catename}</a>
|
2020-04-19 14:29:34 +08:00
|
|
|
|
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</h2>
|
|
|
|
|
<div class="fly-list-info">
|
|
|
|
|
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
|
2020-03-15 18:38:56 +08:00
|
|
|
|
<span class="layui-badge layui-bg-green " title="哪个小区">{:getAsing($art.user.area_id) ?: '无'}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<cite>{$art.user.nickname ?: $art.user.name}</cite>
|
|
|
|
|
<!--
|
|
|
|
|
<i class="iconfont icon-renzheng" title="认证信息:XXX"></i>
|
|
|
|
|
-->
|
2020-03-30 21:11:12 +08:00
|
|
|
|
{if($art.user.vip > 0)}
|
|
|
|
|
<i class="layui-badge fly-badge-vip">VIP{$art.user.vip}</i>
|
|
|
|
|
{/if}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</a>
|
|
|
|
|
<span>{$art.create_time|date='Y-m-d'}</span>
|
|
|
|
|
|
2020-05-21 16:58:06 +08:00
|
|
|
|
<span class="layui-hide-xs" title="人气"><i class="iconfont" title="人气"></i> {$art.pv}</span>
|
2020-04-24 12:09:20 +08:00
|
|
|
|
{if ($art.jie == 1)}<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>{/if}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<span class="fly-list-nums">
|
|
|
|
|
<i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fly-list-badge">
|
2020-03-15 18:38:56 +08:00
|
|
|
|
{if ($art.is_top == 1)} <span class="layui-badge layui-bg-black" >置顶</span> {/if}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{if ($art.is_hot == 1)} <span class="layui-badge layui-bg-red">精帖</span> {/if}
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
2020-03-15 18:38:56 +08:00
|
|
|
|
{/volist}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<div style="text-align: center" id="page">{$artList|raw}</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-col-md4">
|
|
|
|
|
<dl class="fly-panel fly-list-one">
|
|
|
|
|
<dt class="fly-panel-title">本周热议</dt>
|
|
|
|
|
{volist name="artHot" id="vo"}
|
|
|
|
|
<dd>
|
|
|
|
|
<a href="{:url('article/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">心级赞助商 <span style="padding: 0 3px;">-</span>
|
|
|
|
|
<a href="" class="fly-link fly-joinad ">我要加入</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fly-panel-main">
|
|
|
|
|
{volist name="ad_cate" id="vo"}
|
2020-01-02 16:23:03 +08:00
|
|
|
|
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/volist}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fly-panel">
|
|
|
|
|
<div class="fly-panel-title">
|
|
|
|
|
这里可作为广告区域
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fly-panel" style="padding: 20px 0; text-align: center;">
|
|
|
|
|
{volist name="ad_comm" id="vo"}
|
|
|
|
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
|
|
|
|
{/volist}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-03-13 22:59:38 +08:00
|
|
|
|
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/block}
|
|
|
|
|
{block name="script"}
|
|
|
|
|
<script>
|
|
|
|
|
layui.cache.page = 'jie';
|
|
|
|
|
layui.cache.user = {
|
|
|
|
|
username: '{$user.name??'游客'}'
|
|
|
|
|
,uid: {$user.id ? 168*$user.id : -1}
|
|
|
|
|
,avatar: '{if condition="$user['user_img'] neq ''"}{$user['user_img']}{else /}/static/res/images/avatar/00.jpg{/if}'
|
|
|
|
|
,experience: 83
|
|
|
|
|
,sex: '{if condition="$user['sex'] eq 0"}男{else/}女{/if}'
|
|
|
|
|
};
|
|
|
|
|
layui.config({
|
|
|
|
|
version: "3.0.0"
|
|
|
|
|
,base: '/static/res/mods/'
|
|
|
|
|
}).extend({
|
|
|
|
|
fly: 'index'
|
|
|
|
|
}).use('fly');
|
|
|
|
|
</script>
|
|
|
|
|
{/block}
|