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

@@ -27,14 +27,14 @@ d_key="d_key"
d_val="Novel" n_num="total"
button_num="5" 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="h5_novel_library" diff="$resData.p_data.page" num="40" g_key="arrGrm" /}
<p class="site-description">{$strDescription??''}</p>
<div class="navpf">
<nav class="sortChannel_nav">
<a class="on">分类:</a>
<a class='{eq name="$Request.route.strCategory" value="all"}on on2 {/eq}'
<a class='{eq name="$Request.route.strCategory" value="all"}on on2 {/eq} {eq name="$Request.route.strCategory" value=""}on on2 {/eq}'
href='{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"}
@@ -47,14 +47,14 @@ button_num="5" cache_life="86400" func="generateCategoryPager" export_name="resD
<a class="on">排序:</a>
{novel:sort d_key="key" d_val="strSortName"}
<a href='{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 on2 {/eq}'>{$strSortName}</a>
class='{eq name="$Request.route.strOrder" value="$key"}on on2 {/eq} {if $key == "all" && $Request.route.strOrder == ""}on on2 {/if}'>{$strSortName}</a>
{/novel:sort}
</nav>
<nav class="sortChannel_nav">
<a class="on">状态:</a>
{novel:status d_key="key" d_val="strStatusName"}
<a href='{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 on2 {/eq}'
class='{eq name="$Request.route.strStatus" value="$key"}on on2 {/eq} {if $key == "all" && $Request.route.strStatus == ""}on on2 {/if}'
btn="search_category">{$strStatusName}</a>
{/novel:status}
</nav>
@@ -67,6 +67,7 @@ button_num="5" cache_life="86400" func="generateCategoryPager" export_name="resD
<li>
<span class="s1">[{$Novel.n_category}]</span>
<span class="s2">
{$arrGrm[$key]|raw}
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' data-toggle="tooltip"
data-placement="right" title="{$Novel.n_name}">
{$Novel.n_name}
@@ -113,6 +114,7 @@ button_num="5" cache_life="86400" func="generateCategoryPager" export_name="resD
{novel:list count="8" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
<dl class="rec-focus-book">
<dt class="book-img">
{$arrGrm[$d_key+30]|raw}
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<img height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -1,10 +1,14 @@
{extend name="baseH5" /}
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@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="h5_novel_catalog " diff="$Request.url" num="120" g_key="arrGrm" /}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
@@ -93,6 +97,8 @@
{/block}
{block name="nav-html"}
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
@@ -201,7 +207,9 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
<div class="rec-focus">
{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"}
<dl class="rec-focus-book">
<dt class="book-img"><a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
<dt class="book-img">
{$arrGrm[$d_key+110]|raw}
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a></dt>

View File

@@ -5,7 +5,8 @@
{block name="head"}
{site:grm page_code="pc_novel_chapter" diff="$Request.route.intChapterSort" num="100" g_key="arrGrm" /}
{site:grm page_code="h5_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" /}
@@ -129,6 +130,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
<div class="content">
<h1 id="chaptername" class="chaptername">{$arrNovel.n_name}(第{$arrChapter.c_sort_num}页)</h1>
<div class="chapter-page-btn">
{$arrGrm[1]|raw}
<ul>
{if $arrChapter.c_sort_num == 1}
<li><a href='javascript:'>上一页</a></li>
@@ -146,11 +148,14 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
</ul>
</div>
{$arrGrm[2]|raw}
<div class="txt" id="txt">
{$arrGrm[3]|raw}
<script>document.writeln(qsbs.bb('{$arrChapter.c_content}'));</script>
{$arrGrm[4]|raw}
</div>
<div class="chapter-page-btn">
{$arrGrm[5]|raw}
<ul>
{if $arrChapter.c_sort_num == 1}
<li><a href='javascript:'>上一页</a></li>
@@ -166,6 +171,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
</li>
{/if}
</ul>
{$arrGrm[6]|raw}
</div>
</div>
@@ -175,7 +181,9 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{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"}
<dl class="rec-focus-book">
<dt class="book-img"><a
<dt class="book-img">
{$arrGrm[$d_key+6]|raw}
<a
href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"

View File

@@ -6,7 +6,8 @@ $Novel.n_id{extend name="baseH5" /}
{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="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
@@ -164,7 +165,9 @@ $Novel.n_id{extend name="baseH5" /}
<div class="block-box">
<ul class="chapter-list">
{chapter:list count="10" 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='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>{$Chapter.c_name}<span></span></a>
</li>
{/chapter:list}
@@ -177,7 +180,9 @@ $Novel.n_id{extend name="baseH5" /}
<div class="block-box">
<ul class="chapter-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='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>{$Chapter.c_name}<span></span></a>
</li>
{/chapter:list}
@@ -191,7 +196,9 @@ $Novel.n_id{extend name="baseH5" /}
<div class="rec-focus">
{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"}
<dl class="rec-focus-book">
<dt class="book-img"><a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
<dt class="book-img">
{$arrGrm[$d_key+110]|raw}
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a></dt>

View File

@@ -22,7 +22,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="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
<div class="wrap-box">
<h1><span>{$Request.get.keyword}</span>搜索结果 - {$DomainModel->d_name} 第{$resData.p_data.page}页</h1>
@@ -33,6 +33,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
{foreach $resData.data as $key=>$Novel}
<dl class="rec-focus-book">
<dt class="book-img">
{$arrGrm[$key]|raw}
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>
<img height="100" width="80" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"