157 lines
6.1 KiB
HTML
157 lines
6.1 KiB
HTML
{extend name="baseH5" /}
|
|
|
|
{block name="title"}{site:replace code="NOVEL@GETLIBRARY@TITLE"}{/block}
|
|
{block name="keywords"}{site:replace code="NOVEL@GETLIBRARY@KEYWORDS"}{/block}
|
|
{block name="description"}{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}{/block}
|
|
|
|
{block name="head"}
|
|
<!-- 社交媒体标签 -->
|
|
<meta property="og:title" content='{site:replace code="NOVEL@GETLIBRARY@TITLE"}' />
|
|
<meta property="og:description" content='{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}' />
|
|
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
|
|
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}" />
|
|
{else}
|
|
|
|
<meta property="og:url"
|
|
content='https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}' />
|
|
{/if}
|
|
<meta property="og:type" content="book" />
|
|
<!-- 结构化数据 -->
|
|
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}",
|
|
"@type": "book",
|
|
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}'
|
|
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
|
"datePublished": "{:date('Y-m-d')}"
|
|
}
|
|
</script>
|
|
{else}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
|
|
"@type": "book",
|
|
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
|
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
|
"datePublished": "{:date('Y-m-d')}"
|
|
}
|
|
</script>
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
{block name="head-js"}{/block}
|
|
{block name='nav-active-class'}home{/block}
|
|
{block name="body-class"}novel_home{/block}
|
|
|
|
{block name="logo-html"}
|
|
<h1 class="bookname">
|
|
<a href="/"
|
|
style="color:#ffffff">{$DomainModel->d_name}</a>-{$Request.route.strCategory}{$Request.route.strOrder}{$Request.route.strStatus}免费阅读
|
|
</h1>
|
|
{/block}
|
|
|
|
{block name="nav-html"}{/block}
|
|
|
|
{block name="main"}
|
|
|
|
{novel:pagerexp page="$Request.get.page" limit="30"
|
|
n_category="$Request.route.strCategory"
|
|
sort_type="$Request.route.strOrder"
|
|
n_status="$Request.route.strStatus"
|
|
d_key="d_key"
|
|
d_val="Novel"
|
|
button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
|
|
|
|
{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="layout-root">
|
|
<div id="classify">
|
|
<div class="w-category">
|
|
<div class="type">
|
|
<div class="list">
|
|
|
|
<div class="item">
|
|
<a href="" class="text " id="fenlei_0">{site:wz wz="全部" /}</a>
|
|
</div>
|
|
|
|
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
|
<div class="item">
|
|
<a href='{site:nflurl category="$strCategoryPinyin" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
|
|
id="fenlei_{$strCategoryPinyin}" class="text ">
|
|
{$strCategoryName}</a>
|
|
</div>
|
|
{/novel:category}
|
|
<script>
|
|
$(function () {
|
|
let pageId = "#fenlei_{$Request.route.strCategory}"
|
|
$(pageId).addClass("active")
|
|
})
|
|
</script>
|
|
</div>
|
|
</div>
|
|
<div class="sort">
|
|
<div class="list">
|
|
{novel:sort d_key="key" d_val="strSortName"}
|
|
<div class="item" id="paixu_{$key}">
|
|
<a href='{site:nflurl category="$Request.route.strCategory" order="$key" page="$Request.route.intPage"/}'
|
|
class="text">{$strSortName}</a>
|
|
</div>
|
|
|
|
{/novel:sort}
|
|
</div>
|
|
|
|
<script>
|
|
$(function () {
|
|
let pageId = "#paixu_{$Request.route.strOrder}"
|
|
$(pageId).addClass("active")
|
|
})
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div class="cartoon-list">
|
|
<div class="novel-list">
|
|
{foreach $resData.data as $key=>$Novel}
|
|
{include file="public/novel-list" /}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wrap" style="display: block; padding-bottom: 1px;">
|
|
<ul class="pagination justify-content-center">
|
|
{volist name="resData.p_data.pager" id="vo" key="k"}
|
|
{switch $vo.label}
|
|
{case value="上一页"}
|
|
{if $resData.p_data.page == 1}
|
|
<li class="page-item disabled"><span class="page-link">«</span></li>
|
|
{else}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">«</a></li>
|
|
{/if}
|
|
{/case}
|
|
{case value="下一页"}
|
|
{if $resData.p_data.page >= $resData.p_data.total}
|
|
<li class="page-item disabled"><span class="page-link">»</span></li>
|
|
{else}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">»</a></li>
|
|
{/if}
|
|
{/case}
|
|
{default /}
|
|
{if preg_match('/^\d+$/', $vo.label)}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">{$vo.label}</a></li>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
{block name="customize"} {/block} |