debug
This commit is contained in:
423
code/app/home/view/haoZi/pc/getNovelChapter.html
Normal file
423
code/app/home/view/haoZi/pc/getNovelChapter.html
Normal file
@@ -0,0 +1,423 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{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" /}
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="keywords" content='{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}'>
|
||||
<meta name="description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'>
|
||||
<title>{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}</title>
|
||||
<link rel="icon" href="/template/kuangyu/public/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/template/kuangyu/reader/web/css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
{/block}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.c_name ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
const strPcPath = `{$strPcPath}`;
|
||||
</script>
|
||||
<script src="/public/js/yueduqsbs.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="theme-0 w800" data-bid='{$strPcPath}/xiaoshuo/name-1'>
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="wrap">
|
||||
<div class="read-header" id="readHeader">
|
||||
<div class="wrap-center cf">
|
||||
<div class="left-nav fl">
|
||||
<div class="logo">
|
||||
{$DomainModel->d_text_log}
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
{$arrGrm[17]|raw}
|
||||
<cite><a href="{$strPcPath}/">首页</a></cite>
|
||||
</li>
|
||||
<li id="j_nearRead" class="">
|
||||
<cite>最近阅读</cite>
|
||||
<div class="dropdown last-read" id="j_nearList">
|
||||
<dl>
|
||||
</dl>
|
||||
{$arrGrm[18]|raw}
|
||||
<a class="all" href='{$strPcPath}{$strHistoryUrlTemp}'>
|
||||
查看全部<em class="iconfont"></em>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="quick-nav">
|
||||
<cite>快速导航</cite>
|
||||
<div class="dropdown type-list">
|
||||
<div class="type-box">
|
||||
<h3><a href="{$strPcPath}/">首页</a></h3>
|
||||
</div>
|
||||
<div class="type-box">
|
||||
<h3><a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="all" status="all" page="1"/}'>男生</a></h3>
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="man"}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="{$strCategoryPinyin}" status="all" page="1"/}'>{$strCategoryName}</a>
|
||||
{/novel:category}
|
||||
</div>
|
||||
<div class="type-box">
|
||||
|
||||
<h3><a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="all" status="all" page="1"/}'>女生</a></h3>
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="women"}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="{$strCategoryPinyin}" status="all" page="1"/}'>{$strCategoryName}</a>
|
||||
{/novel:category}
|
||||
</div>
|
||||
<div class="type-box">
|
||||
<h3><a href="{$strPcPath}{$strCategoryIndexUrlTemp}">书库</a></h3>
|
||||
</div>
|
||||
<div class="type-box">
|
||||
<h3><a href="{$strPcPath}{$strRankUrlTemp}">排行</a></h3>
|
||||
</div>
|
||||
<!-- <div class="type-box">
|
||||
<h3><a href="{$strPcPath}/seo.html" >文章</a></h3>
|
||||
</div> -->
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{$arrGrm[1]|raw}
|
||||
<div class="read-login fr">
|
||||
<ul>
|
||||
<li id="min-search">
|
||||
<form action="{$strPcPath}{$strSearchIndexUrlTemp}" method="get">
|
||||
<input class="submit-input" type="submit" id="searchSubmit">
|
||||
<input id="pin-input" class="pin-input hide" name="keyword" type="text" placeholder="">
|
||||
<label id="pin-search" for="searchSubmit">
|
||||
<em class="iconfont"></em>
|
||||
</label>
|
||||
</form>
|
||||
</li>
|
||||
<li class="line"></li>
|
||||
<li class="sign-in">
|
||||
<img src="/template/kuangyu/reader/web/images/user-icon.png" class="headPortrait">
|
||||
<a href="{$strPcPath}{$strUserUrlTemp}">123456</a>
|
||||
<div class="dropdown">
|
||||
<!-- <a href="{$strUserUrlTemp}/index/index.html">个人中心</a> -->
|
||||
{$arrGrm[16]|raw}
|
||||
<a href="{$strPcPath}{$strBookShelfUrlTemp}">我的书架</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="crumbs-nav">
|
||||
<a href="{$strPcPath}/">首页</a>
|
||||
<em class="iconfont"></em>
|
||||
{if $arrNovel.n_category_sex_en && $arrNovel.n_category_sex_en == 'man'}
|
||||
{$arrGrm[15]|raw}
|
||||
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="all" status="all" page="1"/}'>男生</a>
|
||||
<em class="iconfont"></em>
|
||||
{$arrGrm[14]|raw}
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a
|
||||
|
||||
href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
{else}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="all" status="all" page="1"/}'>女生</a>
|
||||
<em class="iconfont"></em>
|
||||
{$arrGrm[13]|raw}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
{/if}
|
||||
<em class="iconfont"></em>
|
||||
{$arrGrm[12]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel.n_name}</a>
|
||||
</div>
|
||||
<div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
|
||||
<div id="j_chapterBox">
|
||||
<div class="text-wrap" id="ajaxchapter-4b2d5aab58d71" data-cid="4b2d5aab58d71"
|
||||
data-purl="javascript:void(0);" data-nurl=""
|
||||
data-info="0|-1|486ef2abee55d|0">
|
||||
<div class="main-text-wrap">
|
||||
<div class="text-head">
|
||||
<h1 class="j_chapterName">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel.n_name}
|
||||
</a>
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}'
|
||||
>{$arrChapter.c_name}</a>
|
||||
</h1>
|
||||
<div class="text-info cf">
|
||||
<div class="info fl">
|
||||
{$arrGrm[11]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<em class="iconfont"></em> {$arrNovel.n_name}</a>
|
||||
<a href="javascript:"> <em class="iconfont"></em> {$arrNovel.n_author}</a>
|
||||
<i><em class="iconfont"></em><span class="j_chapterWordCut">2000</span>字</i>
|
||||
<i><em class="iconfont"></em><span class="j_updateTime">{$arrChapter.created_at ??
|
||||
''}</span></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="read-content j_readContent">
|
||||
{if $arrChapter && $arrChapter.c_content}
|
||||
<script>document.writeln(qsbs.bb('{$arrChapter.c_content}'));</script>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="la-ball-pulse j_chapterLoad hidden" style="display: none;">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="chapter-control dib-wrap">
|
||||
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1}
|
||||
<a id="j_chapterPrev" href="javascript:void(0);">上一章</a>
|
||||
{else}
|
||||
{$arrGrm[10]|raw}
|
||||
<a id="j_chapterPrev"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="0"/}'>上一章</a>
|
||||
{/if}
|
||||
<span>|</span>
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
{$arrGrm[9]|raw}
|
||||
<a id="j_chapterNext"
|
||||
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="0"/}'>下一章</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="float-wrap" id="j_floatWrap">
|
||||
<div class="left-bar-list" id="j_leftBarList" style="top: 119px;">
|
||||
<dl>
|
||||
<dd id="j_navCatalogBtn">
|
||||
{$arrGrm[8]|raw}
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>
|
||||
<i><em class="iconfont"></em><span>目录</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
<dd id="j_navSettingBtn" class="">
|
||||
<a href="javascript:">
|
||||
<i><em class="iconfont"></em><span>设置</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
{$arrGrm[7]|raw}
|
||||
<a class="add-book" href="javascript:" onclick="addBookshelfFun()">
|
||||
<i><em class="iconfont"></em><span>书架</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
{$arrGrm[6]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<i><em class="iconfont"></em><span>详情</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
{$arrGrm[5]|raw}
|
||||
<!-- start 设置面板浮层 -->
|
||||
<div class="panel-wrap setting" id="j_setting" style="display: none;">
|
||||
<a class="iconfont close-panel setting-close" href="javascript:"></a>
|
||||
<div class="panel-box">
|
||||
<h4 class="lang">设置</h4>
|
||||
<div class="setting-list-wrap">
|
||||
<ul>
|
||||
<li class="theme-list" id="j_themeList">
|
||||
<i>阅读主题</i>
|
||||
<span title="默认" class="theme-0 act" data-st="0">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="牛皮纸" class="theme-1 " data-st="1">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="淡绿色" class="theme-2 " data-st="2">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="淡蓝色" class="theme-3 " data-st="3">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="淡粉色" class="theme-4 " data-st="4">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="灰色" class="theme-5 " data-st="5">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span title="黑色" class="theme-6 " data-st="6">
|
||||
<em class="iconfont"></em>
|
||||
<cite class="iconfont"></cite>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
{$arrGrm[4]|raw}
|
||||
<li class="font-family" id="j_fontFamily">
|
||||
<i>正文字体</i>
|
||||
<span data-st="1" class="yahei act">雅黑</span>
|
||||
<span data-st="2" class="yahei ">宋体</span>
|
||||
<span data-st="3" class="yahei ">楷书</span>
|
||||
</li>
|
||||
<li class="font-size" id="j_fontSize">
|
||||
<i>字体大小</i>
|
||||
<cite>
|
||||
<span class="prev">
|
||||
<em class="iconfont"></em>
|
||||
</span> <b></b>
|
||||
<span class="lang">18</span> <b></b>
|
||||
<span class="next">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
</cite>
|
||||
</li>
|
||||
<li class="page-width" id="j_pageWidth">
|
||||
<i>页面宽度</i>
|
||||
<cite>
|
||||
<span class="prev">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<b></b>
|
||||
<span class="lang">
|
||||
800 </span>
|
||||
<b></b>
|
||||
<span class="next">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
</cite>
|
||||
</li>
|
||||
{$arrGrm[3]|raw}
|
||||
<li class="read-mode" id="j_readMode">
|
||||
<i>阅读方式</i>
|
||||
<span data-st="0" class="act">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
<span data-st="1">
|
||||
<em class="iconfont"></em>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btn-wrap dib-wrap">
|
||||
<a class="red-btn" id="j_setSave" href="javascript:">保存</a>
|
||||
<a class="grey-btn" id="j_setCancel" href="javascript:">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 设置面板浮层 -->
|
||||
</div>
|
||||
<div class="right-bar-list" id="j_rightBarList" style="bottom: 120px;">
|
||||
<dl>
|
||||
<dd class="go-top" id="j_goTop" title="返回顶部" style="display: none;">
|
||||
<a href="javascript:">
|
||||
<i>
|
||||
<em class="iconfont"></em>
|
||||
</i>
|
||||
</a>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{$arrGrm[2]|raw}
|
||||
<script src="/public/jquery/jquery-3.7.1.min.js"></script>
|
||||
<script>
|
||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||
</script>
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id' : `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin' : `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path' : `{$arrNovel['n_cover_path']}`,
|
||||
'n_name' : `{$arrNovel['n_name']}`,
|
||||
'n_author' : `{$arrNovel['n_author']}`,
|
||||
'n_status' : `{$arrNovel['n_status']}`,
|
||||
'c_sort_num' : `{$arrChapter.c_sort_num}`,
|
||||
'c_name' : `{$arrChapter.c_name}`,
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var book = {};
|
||||
book.Info = {
|
||||
"Id": `{$arrNovel['n_id']}`,
|
||||
"Name": `{$arrNovel['n_name']}`,
|
||||
"authorName": `{$arrNovel['n_author']}`
|
||||
};
|
||||
book.chapter = {
|
||||
//页面进入加载的章节id
|
||||
id: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//章节源id
|
||||
source_id: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//章节vip标识
|
||||
vipStatus: 0,
|
||||
//上一章id
|
||||
prevId: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//下一章id
|
||||
nextId: '{$arrChapter.next_chapter.c_sort_num ?? 1}'
|
||||
};
|
||||
book.chapterUrl = '{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}' ;
|
||||
book.nextChapterVip = 0;
|
||||
</script>
|
||||
<script type="text/javascript" src="/template/kuangyu/reader/web/js/global.js"></script>
|
||||
<script src="/public/layer/layer.js"></script>
|
||||
<script src="/template/kuangyu/public/js/common.js"></script>
|
||||
{$arrGrm[19]|raw}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
295
code/app/home/view/haoZi/pc/getNovelInfo.html
Normal file
295
code/app/home/view/haoZi/pc/getNovelInfo.html
Normal file
@@ -0,0 +1,295 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="$Request.route.intForgeId" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
|
||||
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId" }' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId" }' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="strPageCode"}
|
||||
<?php $strPageCode = 'info'; ?>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<div class="content">
|
||||
<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">
|
||||
<a href="{$strPcPath}/" itemprop="item">
|
||||
<span itemprop="name">首页</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'
|
||||
itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} -
|
||||
{$DomainModel->d_name}</h1>
|
||||
</nav>
|
||||
|
||||
<div class="info">
|
||||
<div class="info_box">
|
||||
<div class="info_L">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
title="{$arrNovel['n_name']}" class="book_cov">
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节"
|
||||
class="lazyload_book_cover lazyload-img">
|
||||
<i class="serial">{$arrNovel.n_status ?? ''}</i>
|
||||
</a>
|
||||
<div class="btn">
|
||||
<a href="javascript:;" class="sc" onclick="addBookshelfFun()">
|
||||
<s></s>
|
||||
<p>加入书架</p>
|
||||
</a>
|
||||
<a href="javascript:;" class="xh"><s></s>我喜欢</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info_C book_inf">
|
||||
<div class="c01">
|
||||
<h2><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel['n_name']}</a>
|
||||
</h2>
|
||||
<!-- <span id="mod_book_star">0分</span> -->
|
||||
</div>
|
||||
<p class="c02">
|
||||
<span class="zz">作者:{$arrNovel.n_author}</span>
|
||||
<span>创建日期:{$arrNovel.n_update_time}</span>
|
||||
</p>
|
||||
<div class="c03">
|
||||
<p class="jianjie">简介</p>
|
||||
<div class="c03_box">
|
||||
<p class="jj_con" id="book_desc">
|
||||
{$arrNovel.n_description ?? ''}</p>
|
||||
<span class="zk_btn">展开<s></s></span>
|
||||
<span class="sq_btn" style="display: none;">收起<s></s></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c03 c03-jjyd">
|
||||
<p class="jianjie">最新要点</p>
|
||||
<div class="c03_box">
|
||||
<p class="jj_con" id="book_desc2">
|
||||
{$arrNovel.strFocus}</p>
|
||||
<span class="zk_btn">展开<s></s></span>
|
||||
<span class="sq_btn" style="display: none;">收起<s></s></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c04">
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'
|
||||
class="read">立即阅读</a>
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="mulu">目录</a>
|
||||
</div>
|
||||
<!-- <div class="c05">
|
||||
<p class="c05_t">作品标签:
|
||||
<a href="#" class="red">打发十分</a>
|
||||
|
||||
|
||||
</p>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="info_R">
|
||||
<div class="inf02">
|
||||
<h4>小说信息</h4>
|
||||
<p>类别:
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'
|
||||
title="{$arrNovel.n_category}">
|
||||
{$arrNovel.n_category}
|
||||
</a>
|
||||
</p>
|
||||
<!-- <p>总字数:54.20万+</p> -->
|
||||
<p>总点击量:{$arrNovel.arrNovelClicks.total}</p>
|
||||
<p>月点击量:{$arrNovel.arrNovelClicks.monthly}</p>
|
||||
<p>周点击量:{$arrNovel.arrNovelClicks.weekly}</p>
|
||||
<p>日点击量:{$arrNovel.arrNovelClicks.daily}</p>
|
||||
<!-- <p>收藏:0</p> -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info2">
|
||||
<div class="info2_L sjxq">
|
||||
<div class="gxzj">
|
||||
<div class="pl_tit">
|
||||
<h2>最新章节</h2>
|
||||
</div>
|
||||
<div class="zj_con">
|
||||
{chapter:list count="12" sort_type="dao" n_id="$arrNovel.n_id" d_key="key" d_val="Chapter" cache_life="86400"}
|
||||
<p>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'
|
||||
title="{$arrNovel.n_name}-{$Chapter.c_name}" class="zj">{$Chapter.c_name}</a>
|
||||
<span class="time">{$Chapter.created_at ?? '1天前'}</span>
|
||||
<!-- <span class="time">3天前</span>-->
|
||||
</p>
|
||||
<p class="zw" style="max-height: 98px; overflow: hidden;"></p>
|
||||
{/chapter:list}
|
||||
</div>
|
||||
</div>
|
||||
<div class="pl_tit">
|
||||
<h2>相邻推荐:</h2>
|
||||
</div>
|
||||
<div class="pl_con">
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{if $key<100 } {$arrGrm[$key+20]|raw} {/if} <a
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'
|
||||
class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info2_R">
|
||||
<div class="fsph">
|
||||
<h4><s></s>精品推荐</h4>
|
||||
<ul class="info2_C">
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<li>
|
||||
<h3>
|
||||
{$arrGrm[$key+10]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="{$Novel['n_name'] ?? ''}">
|
||||
{$Novel['n_name'] ?? ''}
|
||||
</a>
|
||||
</h3>
|
||||
<div>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="$Novel['n_name'] ?? ''}" class="book_cov">
|
||||
<img src="/template/kuangyu/home/bai_web/images/default.png"
|
||||
data-src="{$Novel['n_cover_path'] ?? ''}" class="lazyload_book_cover lazyload-img"
|
||||
alt="{$Novel['n_name'] ?? ''}">
|
||||
</a>
|
||||
<div class="book_inf">
|
||||
<span class="aut">{$Novel['n_author'] ?? ''}</span>
|
||||
<span class="tag"><a href="/">{$Novel['n_category'] ?? ''}</a></span>
|
||||
<p class="int">
|
||||
{$Novel['n_description'] ?? ''}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id': `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
||||
'n_name': `{$arrNovel['n_name']}`,
|
||||
'n_author': `{$arrNovel['n_author']}`,
|
||||
'n_status': `{$arrNovel['n_status']}`,
|
||||
'n_update_time': `{$arrNovel['n_update_time']}`,
|
||||
'c_sort_num': 1,
|
||||
'c_name': `第一章`,
|
||||
};
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="footer-js"}
|
||||
<script src="/template/kuangyu/home/bai_web/js/global.js"></script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
219
code/app/home/view/haoZi/pc/getNovelRank.html
Normal file
219
code/app/home/view/haoZi/pc/getNovelRank.html
Normal file
@@ -0,0 +1,219 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{site:helper func="initSexTKD" /}
|
||||
{site:grm page_code="h5_rank" diff="0" num="100" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELRANK@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELRANK@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELRANK@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content='{site:replace code="NOVEL@GETNOVELRANK@TITLE"}' />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELRANK@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}/paihang/all" />
|
||||
<meta property="og:type" content="book" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}/paihang/all",
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETNOVELRANK@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELRANK@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href="https://{$DomainModel->d_domain}{$strRankUrlTemp}">
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
{block name='body-class'}body-rank-class{/block}
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="strPageCode"}
|
||||
<?php $strPageCode = 'rank'; ?>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="content content_back">
|
||||
|
||||
<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">
|
||||
<a href="{$strPcPath}/" itemprop="item">
|
||||
<span itemprop="name">首页</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="{$strPcPath}{$strRankUrlTemp}" itemprop="item">
|
||||
<span itemprop="name">排行榜</span>
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<!--各种榜单 开始-->
|
||||
<div class="ki_li">
|
||||
<div class="com_R">
|
||||
<div class="list_tit">
|
||||
<h2><s class=""></s>日点击榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="daily" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="0"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="1"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="com_R com_bd">
|
||||
<div class="list_tit">
|
||||
<h2><s class="or"></s>周点击榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="weekly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="10"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="11"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="com_R">
|
||||
<div class="list_tit">
|
||||
<h2><s class="bl"></s>月点击榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="monthly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="20"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="21"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="com_R">
|
||||
<div class="list_tit">
|
||||
<h2><s class=""></s>总点击榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="total" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="30"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="31"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="com_R com_bd">
|
||||
<div class="list_tit">
|
||||
<h2><s class="or"></s>连载榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="total" n_status="lianzai" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="40"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="41"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="com_R">
|
||||
<div class="list_tit">
|
||||
<h2><s class="bl"></s>完结榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:ranklist count="10" sort_type="total" n_status="wanjie" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="50"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="51"/}
|
||||
{/if}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
<a btn="look_more" href="{$strPcPath}/rank.html" >
|
||||
<s></s><i>查看更多</i><s></s>
|
||||
</a>
|
||||
</span> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--各种榜单 结束-->
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
121
code/app/home/view/haoZi/pc/getSearchNovel.html
Normal file
121
code/app/home/view/haoZi/pc/getSearchNovel.html
Normal file
@@ -0,0 +1,121 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
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="$Request.url" num="30" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="content">
|
||||
<div class="find">
|
||||
|
||||
<div class="fi_t">
|
||||
<h1>{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$Request.get.page}页</h1>
|
||||
<div class="result search_tip">
|
||||
|
||||
搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span style="color:red">{$resData.p_data.total}</span> 部小说
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result" mod="search_data_list">
|
||||
{if empty($resData.data)}
|
||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
<ul>
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
{include file="pc/public/shukuNovelList" start="0"/}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
<!--页码切换 开始-->
|
||||
<div class="changepage">
|
||||
<ul class="pagination">
|
||||
{volist name="resData.p_data.pager" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $resData.p_data.page == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}{$vo.url}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $resData.p_data.page >= $resData.p_data.total}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href='{$strPcPath}{$vo.url}'>»</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="..."}
|
||||
<li class="disabled"><span>...</span></li>
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<li class='{eq name="vo.label" value="$resData.p_data.page"}active {/eq}'>
|
||||
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/switch}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
<!--页码切换 结束-->
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
303
code/app/home/view/haoZi/pc/index.html
Normal file
303
code/app/home/view/haoZi/pc/index.html
Normal file
@@ -0,0 +1,303 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="title"}{site:replace code="INDEX@INDEX@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="INDEX@INDEX@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="INDEX@INDEX@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href="https://{$DomainModel->d_domain}/">
|
||||
{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content='{site:replace code="INDEX@INDEX@TITLE"}' />
|
||||
<meta property="og:description" content='{site:replace code="INDEX@INDEX@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"headline": '{site:replace code="INDEX@INDEX@TITLE"}',
|
||||
"description": '{site:replace code="INDEX@INDEX@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": 'https://{$DomainModel->d_domain}{site:souurl key="search_term_string" p="1"/}',
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="strPageCode"}
|
||||
<?php $strPageCode = 'home'; ?>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{site:grm page_code="pc_index" diff="0" num="150" g_key="arrGrm" /}
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h2 class="site-description">{$DomainModel->d_index_description}</h2>
|
||||
|
||||
<div class="f1 area2 pdcon">
|
||||
{novel:pagerexp page="1" limit="13"
|
||||
sort_type="tuijian"
|
||||
n_status="lianzai"
|
||||
d_key="d_key"
|
||||
button_num="10" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
|
||||
|
||||
<div class="f1_L">
|
||||
<div class="tjw">
|
||||
<ul id="mod_index_lb_nv_pic">
|
||||
{volist name="$resData.data" id="Novel" key="key"}
|
||||
{if $key < 6} {include file="pc/public/swiperListImg" start="1" /} {/if}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
<ol id="btn_index_lb_nv">
|
||||
{volist name="$resData.data" id="Novel" key="key"}
|
||||
{if $key < 6} {include file="pc/public/swiperListText" /} {/if} {/volist}
|
||||
</ol>
|
||||
<div class="book_inf" id="mod_index_lb_nv_txt">
|
||||
{volist name="$resData.data" id="Novel" key="key"}
|
||||
{if $key == 1}
|
||||
<h3>
|
||||
{$arrGrm[1]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'
|
||||
title="{$Novel.n_name ?? ''}" class="zdz">
|
||||
{$Novel.n_name ?? ''}
|
||||
</a>
|
||||
</h3>
|
||||
<p class="int"> {$Novel.n_description ?? ''}</p>
|
||||
{/if}
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
<div class="md">
|
||||
{volist name="$resData.data" id="Novel" key="key"}
|
||||
{if $key > 5 && $key < 10} {include file="pc/public/hostListImg" start="5" /} {/if} {/volist}
|
||||
{volist
|
||||
name="$resData.data" id="Novel" key="key" } {if $key> 9 }
|
||||
{$arrGrm[$key+9]|raw}
|
||||
{include file="pc/public/hostListText" start="9"/}
|
||||
{/if}
|
||||
{/volist}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--热门推荐 开始-->
|
||||
<div class="f2 area">
|
||||
<div class="area_head">
|
||||
<span class="log_line"></span>
|
||||
<h4><s class="book"></s>完本推荐</h4>
|
||||
<span class="log_line"></span>
|
||||
</div>
|
||||
<ul class="f2_list" mod="hot_tj">
|
||||
{novel:list count="12" sort_type="tuijian" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/endNovelList" start="13" /}
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- <div class="adv">
|
||||
|
||||
</div> -->
|
||||
|
||||
<!--热门推荐 结束-->
|
||||
|
||||
<div class="f3 area">
|
||||
<div class="area_head">
|
||||
<span class="log_line"></span>
|
||||
<h4><s class="hot"></s>男生频道</h4>
|
||||
<span class="log_line"></span>
|
||||
</div>
|
||||
{novel:list count="1" n_sex="man" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/indexBoyNewsOne" start="25" /}
|
||||
{/novel:list}
|
||||
<div class="f3_C">
|
||||
<ul>
|
||||
{novel:list count="4" n_sex="man" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/indexBoyNewsList" start="26" /}
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="com_R">
|
||||
<h2>
|
||||
<s></s>排行榜
|
||||
<span class="btn_toggle_mod_bang" style="color: #fff; background: #c4c4c4;">周</span>
|
||||
<span class="btn_toggle_mod_bang">月</span>
|
||||
<span class="btn_toggle_mod_bang">总</span>
|
||||
</h2>
|
||||
<div class="list_wrap">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="man" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="30"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="31"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
<div class="list_wrap" style="display: none;">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="man" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="41"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="42"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
<div class="list_wrap" style="display: none;">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="man" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="53"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="54"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="f3 area">
|
||||
<div class="area_head">
|
||||
<span class="log_line"></span>
|
||||
<h4><s class="hot"></s>女生频道</h4>
|
||||
<span class="log_line"></span>
|
||||
</div>
|
||||
{novel:list count="1" n_sex="women" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/indexBoyNewsOne" start="55"/}
|
||||
{/novel:list}
|
||||
<div class="f3_C">
|
||||
<ul>
|
||||
{novel:list count="4" n_sex="women" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/indexBoyNewsList" start="56"/}
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="com_R">
|
||||
<h2>
|
||||
<s></s>排行榜
|
||||
<span class="btn_toggle_mod_bang" style="color: #fff; background: #c4c4c4;">周</span>
|
||||
<span class="btn_toggle_mod_bang">月</span>
|
||||
<span class="btn_toggle_mod_bang">总</span>
|
||||
</h2>
|
||||
<div class="list_wrap">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="women" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="59"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="60"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
<div class="list_wrap" style="display: none;">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="women" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="71"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="72" /}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
<div class="list_wrap" style="display: none;">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" n_sex="women" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{if $d_key == 1}
|
||||
{include file="pc/public/indexBoyRankOne" start="83"/}
|
||||
{/if}
|
||||
{if $d_key >= 2}
|
||||
{include file="pc/public/indexBoyRankList" start="84"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
<span class="more"><a href="{$strPcPath}/paihang"><s></s><i>查看更多</i><s></s></a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adv">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="f4 area">
|
||||
<div class="area_head">
|
||||
<span class="log_line"></span>
|
||||
<h4><s class="new"></s>作品更新</h4>
|
||||
<span class="log_line"></span>
|
||||
</div>
|
||||
<div class="f4_L">
|
||||
<div class="new_list">
|
||||
<ol class="cur">
|
||||
<li>
|
||||
<ul class="list_h">
|
||||
<li class="lb">类别</li>
|
||||
<li class="sm">书名</li>
|
||||
<li class="gx">最新更新章节</li>
|
||||
<li class="zz">作者</li>
|
||||
<li class="sj">更新时间</li>
|
||||
</ul>
|
||||
</li>
|
||||
{novel:list count="30" sort_type="update" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
{include file="pc/public/indexNewsUpdateList" start="70"/}
|
||||
{/novel:list}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="site-description ">{$DomainModel->d_description}</p>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize-footer-after"}
|
||||
|
||||
{/block}
|
||||
33
code/app/home/view/haoZi/pc/public/footer.html
Normal file
33
code/app/home/view/haoZi/pc/public/footer.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<div class="foot">
|
||||
<div class="foot_T">
|
||||
<div class="tWrap">
|
||||
<p>友情链接</p>
|
||||
<ul>
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<li>
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
</li>
|
||||
{/site:forgelist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="foot_B">
|
||||
<p class="Co">
|
||||
Copyright (C) 2008-2025 All rights reserved
|
||||
<br>
|
||||
<a href="javascript:void(0)" style="margin: 0 10px;"></a>
|
||||
</p>
|
||||
<p>请所有作者发布作品时务必遵守国家互联网信息管理办法规定,我们拒绝任何色情小说,一经发现,即作删除!本站所收录作品、社区、书库评论及本站所做之广告均属其个人行为,与本站立场无关!</p>
|
||||
<p>删除邮箱:{site:cfg code="YOU_XIANG" encode="false"/}</p>
|
||||
</div>
|
||||
</div>
|
||||
<span class="gotop" id="btn_back_top" title="返回顶部">
|
||||
<img src="/template/kuangyu/home/bai_web/images/gotop.png"
|
||||
data-src="/template/kuangyu/home/bai_web/images/gotop.png" alt="返回顶部"
|
||||
ysrc="/template/kuangyu/home/bai_web/images/gotop.png">
|
||||
</span>
|
||||
14
code/app/home/view/haoZi/pc/public/hostListImg.html
Normal file
14
code/app/home/view/haoZi/pc/public/hostListImg.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<div class="bookLink">
|
||||
{$arrGrm[$key+[start]]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' >
|
||||
<div class="bookImg">
|
||||
<img class="lazyload-img"
|
||||
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</div>
|
||||
<div>
|
||||
<h2>{$Novel.n_name ?? ''}</h2>
|
||||
<span>{$Novel->n_author ?? ''}</span>
|
||||
<p>{$Novel.n_description ?? ''}</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
7
code/app/home/view/haoZi/pc/public/hostListText.html
Normal file
7
code/app/home/view/haoZi/pc/public/hostListText.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<div class="bookLink oneLine">
|
||||
{$arrGrm[$key+[start]]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' >
|
||||
<em>「{$Novel->n_category ?? ''}」</em>
|
||||
{$Novel.n_name ?? ''}
|
||||
</a>
|
||||
</div>
|
||||
20
code/app/home/view/haoZi/pc/public/indexNewsUpdateList.html
Normal file
20
code/app/home/view/haoZi/pc/public/indexNewsUpdateList.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<li>
|
||||
<ul>
|
||||
<li class="lb">
|
||||
<?php $Novel['n_category_pinyin'] ?? $Novel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$Novel.n_category_pinyin" status="all" page="1"/}' >{$Novel->n_category ?? ''}</a></li>
|
||||
<li class="sm">
|
||||
<h3>
|
||||
{$arrGrm[$key+[start]]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' title="{$Novel.n_name ?? ''}" >
|
||||
{$Novel.n_name ?? ''}</a>
|
||||
</h3>
|
||||
</li>
|
||||
<li class="gx">
|
||||
<a href='{$strPcPath}{site:lcpurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="{$Novel->n_latest_chapter_name ?? 'null'}"
|
||||
>{$Novel->n_latest_chapter_name ?? 'null'}</a></li>
|
||||
<li class="zz"><a href="{$strPcPath}{site:souurl key='$Novel.n_author' p='1'/}">{$Novel->n_author ?? 'null'}</a></li>
|
||||
<li class="sj">{:date('y-m-d')}</li>
|
||||
</ul>
|
||||
</li>
|
||||
74
code/app/home/view/haoZi/pc/user/getBookShelf.html
Normal file
74
code/app/home/view/haoZi/pc/user/getBookShelf.html
Normal file
@@ -0,0 +1,74 @@
|
||||
{extend name="basePcUser" /}
|
||||
|
||||
{block name="title"}我的书架{/block}
|
||||
{block name="keywords"}我的书架{/block}
|
||||
{block name="description"}我的书架{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="我的书架" />
|
||||
<meta property="og:description" content="我的书架" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "我的书架",
|
||||
"description": "我的书架",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="main"}
|
||||
{site:grm page_code="pc_bookshekf" diff="0" num="10" g_key="arrGrm" /}
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="i-right">
|
||||
<!--我的书架 mod -->
|
||||
<div class="i-title" style="padding-left:30px;">
|
||||
我的书架
|
||||
</div>
|
||||
{$arrGrm[1]|raw}
|
||||
<div class="bookshelfMod">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr class="head" id="bookshelfMod-head">
|
||||
<td>封面</td>
|
||||
<td class="t2">书名</td>
|
||||
<td class="t3">最新章节</td>
|
||||
<td class="t4">作者</td>
|
||||
<td class="t5">更新时间</td>
|
||||
<td class="t6">状态</td>
|
||||
<td class="t7">操作</td>
|
||||
</tr>
|
||||
|
||||
{$arrGrm[3]|raw}
|
||||
</tbody>
|
||||
</table>
|
||||
{$arrGrm[4]|raw}
|
||||
<div class="page-box">
|
||||
<div class="page-content">
|
||||
<div class="ui-pagination">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{$arrGrm[2]|raw}
|
||||
<script>
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayBookshelf()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
70
code/app/home/view/haoZi/pc/user/getHistory.html
Normal file
70
code/app/home/view/haoZi/pc/user/getHistory.html
Normal file
@@ -0,0 +1,70 @@
|
||||
{extend name="basePcUser" /}
|
||||
{block name="title"}我的阅读记录{/block}
|
||||
{block name="keywords"}我的阅读记录{/block}
|
||||
{block name="description"}我的阅读记录{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="我的阅读记录" />
|
||||
<meta property="og:description" content="我的阅读记录" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strHistoryUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strHistoryUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "我的阅读记录",
|
||||
"description": "我的阅读记录",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="main"}
|
||||
{site:grm page_code="pc_history" diff="0" num="10" g_key="arrGrm" /}
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="i-right">
|
||||
<div class="i-title" style="padding-left:30px;">
|
||||
最近阅读
|
||||
</div>
|
||||
{$arrGrm[1]|raw}
|
||||
<div class="bookshelfMod" id="bookshelfMod">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr class="head" id="bookshelfMod-head">
|
||||
<td>封面</td>
|
||||
<td class="t2">书名</td>
|
||||
<td class="t3">阅读章节</td>
|
||||
<td class="t4">作者</td>
|
||||
<td class="t5">更新时间</td>
|
||||
<td class="t6">状态</td>
|
||||
<td class="t7">操作</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
{$arrGrm[2]|raw}
|
||||
<div class="page-box">
|
||||
<div class="page-content">
|
||||
<div class="ui-pagination">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{$arrGrm[3]|raw}
|
||||
<script>
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayHistory()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
Reference in New Issue
Block a user