2021-08-03 17:33:48 +08:00
|
|
|
|
{extend name="public/base" /}
|
2022-08-02 20:47:28 +08:00
|
|
|
|
|
2022-08-16 15:21:08 +08:00
|
|
|
|
{block name="title"}{$cateinfo.catename} - {$sysInfo.webname}{/block}
|
|
|
|
|
{block name="keywords"}{$cateinfo.catename},{$sysInfo.webname}{/block}
|
|
|
|
|
{block name="description"}{$cateinfo.desc}{/block}
|
|
|
|
|
{block name="ogtitle"}<meta property="og:title" content="{$cateinfo.catename} - {$sysInfo.webname}">{/block}
|
|
|
|
|
{block name="ogdescription"}<meta property="og:description" content="{$cateinfo.desc}" />{/block}
|
|
|
|
|
{block name="meta"}
|
|
|
|
|
<!-- SEO优化 -->
|
|
|
|
|
<meta name="Copyright" content="{$sysInfo.webname}">
|
|
|
|
|
<meta property="og:type" content="website"/>
|
|
|
|
|
<meta property="og:image" content=""/>
|
|
|
|
|
{/block}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
{block name="column"}{include file="/public/column" /}{/block}
|
|
|
|
|
|
|
|
|
|
{block name="content"}
|
|
|
|
|
<div class="layui-container">
|
|
|
|
|
<div class="layui-row layui-col-space15">
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<div class="layui-col-md8">
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="fly-panel" style="margin-bottom: 0;">
|
|
|
|
|
<div class="layui-tab-card">
|
|
|
|
|
<ul class="layui-tab-title">
|
2022-08-02 20:47:28 +08:00
|
|
|
|
<li {if condition="$type eq 'all'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'all'])} " >{:lang('all')}</a></li>
|
|
|
|
|
<li {if condition="$type eq 'jie'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'jie'])} ">{:lang('end')}</a></li>
|
|
|
|
|
<li {if condition="$type eq 'wait'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'wait',])}">{:lang('未解决')}</a> </li>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="question-list">
|
2022-01-07 14:43:42 +08:00
|
|
|
|
{volist name="artList['data']" id="art"}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<li>
|
|
|
|
|
{if ($art.jie == 1)}
|
|
|
|
|
<div class="que-sta-jie">
|
|
|
|
|
<span >已解</span>
|
|
|
|
|
<span >√</span>
|
|
|
|
|
</div>
|
|
|
|
|
{else /}
|
|
|
|
|
<div class="que-sta-ask">
|
|
|
|
|
<span>未解</span>
|
|
|
|
|
<span >?</span>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<div class="que-sta-view layui-hide-xs">
|
|
|
|
|
<span>{$art.pv}</span>
|
|
|
|
|
<span >阅读</span>
|
|
|
|
|
</div>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="que-body">
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<h2><a href="{$Request.domain}{$art.url}" style="color:{$art.title_color ?? '#333'};">{$art.title}</a></h2>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="que-user-info">
|
2022-08-02 20:47:28 +08:00
|
|
|
|
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" class="que-avatar">
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<cite>{$art.user.nickname ?: $art.user.name}</cite>
|
|
|
|
|
</a>
|
|
|
|
|
{$art.create_time|date='Y-m-d'}
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<span ><i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}</span>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
{/volist}
|
|
|
|
|
</ul>
|
2021-08-07 15:50:50 +08:00
|
|
|
|
<div style="text-align: center" id="pages"></div>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<div class="layui-col-md4">
|
|
|
|
|
{if showSlider(3)}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="fly-panel">
|
|
|
|
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
|
|
|
|
{volist name="ad_cateImg" id="vo"}
|
2022-08-02 20:47:28 +08:00
|
|
|
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
{/volist}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
{/if}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<dl class="fly-panel fly-list-one layui-hide-xs">
|
|
|
|
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
|
|
|
|
{volist name="artHot" id="vo"}
|
|
|
|
|
<dd>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
<a href="{$Request.domain}{$vo.url}">{$vo.title}</a>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
|
|
|
|
</dd>
|
|
|
|
|
{/volist}
|
2022-08-02 20:47:28 +08:00
|
|
|
|
</dl>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
{//热门标签}
|
|
|
|
|
<div class="fly-panel layui-hide-xs">
|
|
|
|
|
<div class="fly-panel-title">热门标签</div>
|
|
|
|
|
<div class="fly-panel-main">
|
|
|
|
|
<ul>
|
|
|
|
|
{volist name="hotTag" id="vo"}
|
2022-08-16 15:29:04 +08:00
|
|
|
|
<li style="padding:10px;display:inline-block;height: 15px;"><a href="{$Request.domain}{$vo.url}">{$vo.name}</a></li>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
{/volist}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{if showSlider(6)}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="fly-panel">
|
|
|
|
|
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
2022-08-02 20:47:28 +08:00
|
|
|
|
<a href="" class="fly-link fly-joinad">{:lang('i want to join')}</a>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
</div>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
<div class="fly-panel-main">
|
|
|
|
|
{volist name="ad_comm" id="vo"}
|
2021-12-15 15:46:04 +08:00
|
|
|
|
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: '{$vo.slid_color};'">{$vo.slid_name}</a>
|
2021-08-03 17:33:48 +08:00
|
|
|
|
{/volist}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-08-02 21:13:36 +08:00
|
|
|
|
{/if}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{include file="public/menu" /}
|
|
|
|
|
{/block}
|
|
|
|
|
{block name="script"}
|
|
|
|
|
<script>
|
|
|
|
|
layui.use(['laypage'], function(){
|
|
|
|
|
var laypage = layui.laypage;
|
2022-01-07 14:45:35 +08:00
|
|
|
|
var $ = layui.jquery;
|
2021-08-03 17:33:48 +08:00
|
|
|
|
|
|
|
|
|
//执行一个laypage实例
|
|
|
|
|
laypage.render({
|
|
|
|
|
elem: 'pages' //注意,这里的 test1 是 ID,不用加 # 号
|
2022-01-07 14:43:42 +08:00
|
|
|
|
,count: "{$artList['total']}" //数据总数,从服务端得到
|
|
|
|
|
,limit: "{$artList['per_page']}"
|
|
|
|
|
,curr : "{$artList['current_page']}"
|
2021-08-07 15:50:50 +08:00
|
|
|
|
|
|
|
|
|
//获取起始页
|
2021-08-03 17:33:48 +08:00
|
|
|
|
,jump: function(obj, first){
|
|
|
|
|
|
|
|
|
|
//首次不执行
|
|
|
|
|
if(!first){
|
2022-01-07 14:45:35 +08:00
|
|
|
|
var page = obj.curr;
|
|
|
|
|
location.href ="{$path}/"+page+'.html';
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-03 17:33:48 +08:00
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{/block}
|