debug
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">经典推荐</h2>
|
||||
<ul class="txt-list txt-list-row3">
|
||||
{foreach $arrRecommendEndNovel as $key=>$Novel }
|
||||
{foreach $arrRecommendEndNovel as $key=>$Novel }
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
||||
<span class="s2"><a
|
||||
@@ -69,7 +69,8 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="layout">
|
||||
{foreach $arrAllCategoryNovel as $category}
|
||||
{foreach $arrCategoryAll as $category}
|
||||
{foreach $arrCategoryAll as $category}
|
||||
<div class="tp-box">
|
||||
<h2>{$category.xsfl_name}</h2> <!-- 分类标题 -->
|
||||
<div class="top">
|
||||
@@ -103,6 +104,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -110,20 +112,20 @@
|
||||
<div class="layout layout2 layout-col1 fr">
|
||||
<h2 class="layout-tit">最新入库小说</h2>
|
||||
<ul class="txt-list txt-list-row3">
|
||||
{foreach $arrNewsNovel as $key=>$Novel }
|
||||
{novel:list count="50" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="0"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}]</span>
|
||||
<span class="s2"><a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
||||
<span class="s5"><a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="layout layout2 layout-col2 fl">
|
||||
<h2 class="layout-tit">最近更新小说列表</h2>
|
||||
<ul class="txt-list txt-list-row5">
|
||||
{foreach $arrNewsUpdateNovel as $key=>$Novel }
|
||||
{novel:list count="50" sort_type="update" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="0"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}]</span>
|
||||
<span class="s2"><a
|
||||
@@ -135,7 +137,7 @@
|
||||
<span class="s4"><a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
||||
<span class="s5">{:date('m-d')}</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/novel:list}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace app\services;
|
||||
use app\model\ConverterMovel;
|
||||
use app\model\DomainModel;
|
||||
use app\model\TemplatesModel;
|
||||
use app\model\CategoryModel;
|
||||
use think\facade\Request;
|
||||
use think\facade\Config;
|
||||
use think\exception\HttpException;
|
||||
@@ -82,6 +83,7 @@ class SiteContext
|
||||
View::assign('Request', $this->Request);
|
||||
View::assign('DomainModel', $this->DomainModel);
|
||||
View::assign('TemplatesModel', $this->TemplatesModel);
|
||||
View::assign('arrCategoryAll', CategoryModel::$arrCategoryAll);
|
||||
|
||||
ConverterMovel::setVal([
|
||||
'strSiteName' => $this->DomainModel->d_name,
|
||||
|
||||
Reference in New Issue
Block a user