This commit is contained in:
make
2025-04-20 16:55:49 +08:00
parent 34f56d46d4
commit d1b6e5100e
13 changed files with 148 additions and 43 deletions

View File

@@ -64,7 +64,7 @@ d_key="d_key"
d_val="Novel" n_num="total"
button_num="10" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
{site:grm page_code="pc_novel_library" diff="$resData.p_data.page" num="100" g_key="arrGrm" /}
{site:grm page_code="pc_novel_library" diff="$resData.p_data.page" num="70" g_key="arrGrm" /}
<div class="container">
@@ -73,6 +73,7 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
{novel:list count="6" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
<div class="item">
<div class="image">
{$arrGrm[$d_key]|raw}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
@@ -97,7 +98,7 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
<div class="sort_nav">
<p>
<span>分类:</span>
<a class='{eq name="$Request.route.strCategory" value="all"}on {/eq}'
<a class='{eq name="$Request.route.strCategory" value="all"}on {/eq} {eq name="$Request.route.strCategory" value=""}on on2 {/eq}'
href='{$strPcPath}{site:nflurl category="all" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>不限</a>
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
@@ -111,13 +112,13 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
<p><span>排序:</span>
{novel:sort d_key="key" d_val="strSortName"}
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" order="$key" page="$Request.route.intPage"/}'
class='{eq name="$Request.route.strOrder" value="$key"}on {/eq}'>{$strSortName}</a>
class='{eq name="$Request.route.strOrder" value="$key"}on {/eq} {if $key == "all" && $Request.route.strOrder == ""}on on2 {/if}'>{$strSortName}</a>
{/novel:sort}
</p>
<p><span>状态:</span>
{novel:status d_key="key" d_val="strStatusName"}
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$key" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
class='{eq name="$Request.route.strStatus" value="$key"}on {/eq}'
class='{eq name="$Request.route.strStatus" value="$key"}on {/eq} {if $key == "all" && $Request.route.strStatus == ""}on on2 {/if}'
btn="search_category">{$strStatusName}</a>
{/novel:status}
@@ -132,7 +133,9 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
cache_life="86400"}
<li>
<span class="s1">[{$Novel->n_category ?? ''}</span>
<span class="s2"><a
<span class="s2">
{$arrGrm[$d_key+6]|raw}
<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='{$strPcPath}{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
@@ -146,7 +149,9 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
{foreach $resData.data as $key=>$Novel}
<li>
<span class="s1">[{$Novel->n_category ?? ''}</span>
<span class="s2"><a
<span class="s2">
{$arrGrm[$key+36]|raw}
<a
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
<span class="s3"><a
href='{$strPcPath}{site:lcpurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin" /}'

View File

@@ -5,7 +5,7 @@
{block name="head"}
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
{site:grm page_code="pc_novel_catalog" diff="$arrNovel.n_id" num="100" g_key="arrGrm" /}
{site:grm page_code="pc_novel_catalog" diff="$Request.url" num="120" g_key="arrGrm" /}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
@@ -188,6 +188,7 @@ cache_life="1000" button_num="3" sort_type="$Request.route.strOrder" func="gener
cache_life="86400"}
<div class="item">
<div class="image">
{$arrGrm[$d_key+110]|raw}
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -4,7 +4,9 @@
{block name="description"}{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}{/block}
{block name="head"}
{site:grm page_code="pc_novel_chapter" diff="$Request.route.intChapterSort" num="100" g_key="arrGrm" /}
{site:grm page_code="pc_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /}
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort"
c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
@@ -79,6 +81,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{block name="main"}
<div class="container biqunaicc">
{$arrGrm[1]|raw}
<div class="row row-detail">
<div class="layout layout-col1">
<h2 class="layout-tit xs-hidden">
@@ -87,6 +90,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
&gt;
{$arrNovel.n_name}(第{$arrChapter.c_sort_num}页)
</h2>
{$arrGrm[2]|raw}
<div class="word_read">
<h3>{$arrNovel.n_name}(第{$arrChapter['c_sort_num']}页)</h3>
<div class="read_btn">
@@ -107,9 +111,9 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
{/if}
</div>
{$arrGrm[3]|raw}
<script>document.writeln(qsbs.bb('{$arrChapter.c_content}'));</script>
{$arrGrm[4]|raw}
<p>请勿开启浏览器阅读模式,否则将导致章节内容缺失及无法阅读下一页。</p>
<p>相邻推荐:
@@ -125,6 +129,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{/volist}
</p>
{$arrGrm[5]|raw}
<div class="read_btn">
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1}
<a id="j_chapterPrev" href="javascript:void(0);">上一页</a>
@@ -143,6 +148,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
{/if}
</div>
{$arrGrm[6]|raw}
</div>
</div>
</div>
@@ -154,6 +160,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
p_val="page_data" cache_life="86400"}
<div class="item">
<div class="image">
{$arrGrm[$d_key+6]|raw}
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -5,7 +5,7 @@
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}{/block}
{block name="head"}
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="100" g_key="arrGrm" /}
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
@@ -149,7 +149,9 @@
<h2 class="layout-tit">《{$arrNovel.n_name}》最新章节</h2>
<ul class="section-list fix">
{chapter:list count="12" sort_type="dao" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
<li><a
<li>
{$arrGrm[$d_key]|raw}
<a
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Chapter.c_name}</a>
</li>
{/chapter:list}
@@ -157,7 +159,9 @@
<h2 class="layout-tit">《{$arrNovel.n_name}》章节列表</h2>
<ul class="fix section-list">
{chapter:list count="100" sort_type="zheng" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
<li><a
<li>
{$arrGrm[$d_key+10]|raw}
<a
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Chapter.c_name}</a>
</li>
{/chapter:list}
@@ -174,6 +178,7 @@
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
<div class="item">
<div class="image">
{$arrGrm[$d_key+110]|raw}
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -16,7 +16,7 @@ d_key="d_key"
d_val="Novel" n_num="total"
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
{site:grm page_code="pc_novel_search" diff="$resData.p_data.page" num="100" g_key="arrGrm" /}
{site:grm page_code="pc_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
<div class="container">
<div class="row">
@@ -33,6 +33,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
{foreach $resData.data as $key=>$Novel}
<div class="item">
<div class="image">
{$arrGrm[$key]|raw}
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>
<img style="min-height:120px;" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -26,7 +26,7 @@
{block name="main"}
{site:grm page_code="h5_index" diff="0" num="150" g_key="arrGrm" /}
{site:grm page_code="pc_index" diff="0" num="100" g_key="arrGrm" /}
<div class="container biqunaicc">
<div class="row">
@@ -35,6 +35,7 @@
cache_life="86400"}
<div class="item">
<div class="image">
{$arrGrm[$d_key]|raw}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
@@ -64,9 +65,13 @@
p_val="page_data" cache_life="86400"}
<li>
<span class="s1">[{$Novel->n_category ?? ''}</span>
<span class="s2"><a
<span class="s2">
{$arrGrm[$d_key+4]|raw}
<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>
<span class="s5">
<a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a>
</span>
</li>
{/novel:list}
</ul>
@@ -79,9 +84,13 @@
<div class="tp-box">
<h2>{$strCategoryName}</h2> <!-- 分类标题 -->
<div class="top">
<?php $start = 1 ;$start +=1 ;?>
{novel:list count="1" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
p_val="page_data" cache_life="86400"}
<div class="image">
{$arrGrm[$d_key+9+10*$start]|raw}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<img class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
@@ -100,7 +109,9 @@
<ul>
{novel:list count="12" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
p_val="page_data" cache_life="86400"}
<li><a
<li>
{$arrGrm[$d_key+9+10*$start]|raw}
<a
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a>/<a
href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></li>
{/novel:list}
@@ -118,7 +129,9 @@
cache_life="86400"}
<li>
<span class="s1">[{$Novel->n_category ?? ''}]</span>
<span class="s2"><a
<span class="s2">
{$arrGrm[$d_key+100]|raw}
<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>
@@ -132,7 +145,9 @@
cache_life="86400"}
<li>
<span class="s1">[{$Novel->n_category ?? ''}]</span>
<span class="s2"><a
<span class="s2">
{$arrGrm[$d_key+100]|raw}
<a
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
<span class="s3"><a
href='{$strPcPath}{site:lcpurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin" /}'