debug
This commit is contained in:
@@ -92,6 +92,18 @@ Route::get('/pc/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::c
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
|
||||
|
||||
/**
|
||||
* kan
|
||||
*/
|
||||
Route::get('/pc/kan/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo'])
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 2])
|
||||
->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
|
||||
Route::get('/kan/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo'])
|
||||
->append(['boolIsMobile' => true, 'intUriType' => 2])
|
||||
->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
|
||||
|
||||
/**
|
||||
* 小说详情
|
||||
* /book/{strPinYin}-{intNId}
|
||||
@@ -150,7 +162,8 @@ Route::get('/novel-:name-:n_id', [Novel::class, 'getNovelInfo'])
|
||||
Route::get('/xiaoshuo-:name-:n_id', [Novel::class, 'getNovelInfo'])
|
||||
->append(['boolIsMobile' => true, 'intUriType' => 3])
|
||||
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
|
||||
|
||||
|
||||
|
||||
// 搜索小说
|
||||
Route::get('/search', [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => true]);
|
||||
Route::get('/pc/search', [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => false]);
|
||||
|
||||
@@ -313,6 +313,85 @@ class Novel extends BaseController
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 小说详情-kan
|
||||
*
|
||||
* @param Request $Request
|
||||
* @return void
|
||||
*/
|
||||
public function getKanNovelInfo(Request $Request)
|
||||
{
|
||||
|
||||
$intNId = $Request->param('n_id');
|
||||
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
$NovelModel = new NovelModel;
|
||||
|
||||
// 小说详情
|
||||
$arrNovel = $NovelModel->getNovelInfo($intNId);
|
||||
|
||||
// 分品拼音
|
||||
$arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);
|
||||
|
||||
// 最后章节
|
||||
$ChapterModel = new ChapterModel;
|
||||
$arrLatestChapter = $ChapterModel->getLatestChapter($intNId);
|
||||
|
||||
// 要点
|
||||
$strFocus = strip_tags($arrLatestChapter['content']);
|
||||
$intCount = mb_strlen($strFocus);
|
||||
if ($intCount > 300) {
|
||||
$intPos = mt_rand(0, $intCount - 300);
|
||||
$strFocus = mb_substr($strFocus, $intPos, 300);
|
||||
}
|
||||
|
||||
// 最近五个章节
|
||||
$arrChapter = $ChapterModel->getChapterAll([
|
||||
'n_id' => $intNId,
|
||||
'c_page' => 0,
|
||||
], 10, ['c_sort_num' => -1]);
|
||||
|
||||
// 点击数
|
||||
$NovelClicksModel = new NovelClicksModel;
|
||||
$arrNovelClicks = $NovelClicksModel->getStats($intNId);
|
||||
|
||||
// 推荐小说
|
||||
$arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id');
|
||||
|
||||
$arrRelateveNovel = $NovelModel->getNovelAll([
|
||||
'$in' => $arrRelateveNId,
|
||||
], 10);
|
||||
|
||||
// echo '<pre>';
|
||||
// var_dump($arrNovel);exit;
|
||||
|
||||
// $strNovel = '斗罗大陆';
|
||||
|
||||
// ConverterMovel::setVal("strNovelName", $strNovel);
|
||||
|
||||
// $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__));
|
||||
|
||||
// $strTitle = ConverterMovel::convert($strTitle);
|
||||
|
||||
View::assign([
|
||||
'arrRelateveNovel' => $arrRelateveNovel,
|
||||
'arrNovel' => $arrNovel,
|
||||
'arrChapter' => $arrChapter,
|
||||
'arrNovelClicks' => $arrNovelClicks,
|
||||
'strFocus' => $strFocus,
|
||||
'strPageCode' => 'boy',
|
||||
// 'strTitle' => $strTitle,
|
||||
]);
|
||||
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('pc/getKanNovelInfo');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 小说详情
|
||||
*
|
||||
@@ -363,7 +442,7 @@ class Novel extends BaseController
|
||||
'$in' => $arrRelateveNId,
|
||||
], 10);
|
||||
// echo '<pre>';
|
||||
// var_dump($arrLatestChapter);exit;
|
||||
// var_dump($arrNovel);exit;
|
||||
|
||||
$strNovel = '斗罗大陆';
|
||||
|
||||
@@ -473,8 +552,13 @@ class Novel extends BaseController
|
||||
$arrPreChapter = $ChapterModel->getPreChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||
$arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||
|
||||
// 缺少数据
|
||||
// 分类:男生和女生所对应的分类,看导航展示
|
||||
// 这个小说的 分类拼音
|
||||
// 这个小说 是属于 女生还是男生
|
||||
|
||||
// echo '<pre>';
|
||||
// var_dump($arrChapter);
|
||||
// var_dump($arrNovel);
|
||||
|
||||
View::assign([
|
||||
'arrNovel' => $arrNovel,
|
||||
@@ -505,20 +589,27 @@ class Novel extends BaseController
|
||||
public function getNovelChapterAll(Request $Request, $intNovelId = null, $intPage = 1, $strOrder = 'zheng')
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
// 模拟数据
|
||||
$arrNovelChapterAll = [
|
||||
['id' => 1, 'name' => '小说1', 'author' => '作者1'],
|
||||
['id' => 2, 'name' => '小说2', 'author' => '作者2'],
|
||||
['id' => 3, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 4, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 5, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 6, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 7, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 8, 'name' => '小说3', 'author' => '作者3'],
|
||||
|
||||
// 小说详情
|
||||
$NovelModel = new NovelModel;
|
||||
$intNId = $intNovelId;
|
||||
$arrNovel = $NovelModel->getNovelInfo($intNId);
|
||||
|
||||
// 章节目录
|
||||
$arrChapter = [
|
||||
['c_sort_num' => 1, 'created_at' => '第1章', 'author' => '作者1'],
|
||||
['c_sort_num' => 1, 'created_at' => '第2章', 'author' => '作者1'],
|
||||
['c_sort_num' => 1, 'created_at' => '第3章', 'author' => '作者1'],
|
||||
['c_sort_num' => 1, 'created_at' => '第4章', 'author' => '作者1'],
|
||||
['c_sort_num' => 1, 'created_at' => '第5章', 'author' => '作者1'],
|
||||
['c_sort_num' => 1, 'created_at' => '第6章', 'author' => '作者1'],
|
||||
|
||||
|
||||
];
|
||||
|
||||
View::assign([
|
||||
'arrNovelChapterAll' => $arrNovelChapterAll,
|
||||
'arrNovel' => $arrNovel,
|
||||
'arrChapter' => $arrChapter,
|
||||
'intNovelId' => $intNovelId,
|
||||
'intPage' => $intPage,
|
||||
'strOrder' => $strOrder,
|
||||
|
||||
@@ -85,7 +85,8 @@
|
||||
<option value="/index/47010/28/">第2801-2900章</option>
|
||||
<option value="/index/47010/29/">第2901-3000章</option>
|
||||
<option value="/index/47010/30/">第3001-3049章</option>
|
||||
</select><a href="/index/47010/2/" class="y">下一页</a></div>
|
||||
</select><a href="/index/47010/2/" class="y">下一页</a>
|
||||
</div>
|
||||
{foreach $arrNovelChapterAll as $category}
|
||||
{include file="Pc/Public/chapterTableAll" /}
|
||||
{/foreach}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<link rel="stylesheet" type="text/css" href="/template/haozi/book_m/css/common.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/template/haozi/book_m/css/layui.css">
|
||||
</head>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta name="applicable-device" content="pc">
|
||||
<link rel="stylesheet" type="text/css" href="/template/haozi/book_pc/css/common.css">
|
||||
|
||||
|
||||
<!-- <script>var kdeh2 = "if04kgsa"; var lg_url = "https%3A%2F%2Fwww.hzpxw.net%2F";</script>
|
||||
<script type="text/javascript" src="/template/haozi/book_pc/js/jquery.min.js"></script>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<dt>
|
||||
<img class="lazy" src="https://www.630zw.org/img/176943.jpg" alt="我真是一条龙" />
|
||||
|
||||
<i class='{eq name="Novel->og_novel_status" value="连载中"}serial{else}finish {/eq}'>已完结</i>
|
||||
<i class='{eq name="arrNovel.og_novel_status" value="连载中"}serial{else}finish {/eq}'>已完结</i>
|
||||
</dt>
|
||||
<dd>
|
||||
<h1>我真是一条龙</h1>
|
||||
@@ -205,7 +205,7 @@
|
||||
</div>
|
||||
<div class="book-slide">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrRecommendNovel as $category}
|
||||
{foreach $arrRelateveNovel as $Novel}
|
||||
{include file="Public/novelListS" /}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -223,7 +223,7 @@
|
||||
</div>
|
||||
<div class="bookshelf-list">
|
||||
<ul>
|
||||
{foreach $arrRecommendNovel as $category}
|
||||
{foreach $arrChapter as $Chapter}
|
||||
{include file="Public/chapterTable" /}
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
183
code/app/home/view/kuangyu/Pc/getKanNovelInfo.html
Normal file
183
code/app/home/view/kuangyu/Pc/getKanNovelInfo.html
Normal file
@@ -0,0 +1,183 @@
|
||||
{extend name="basePc" /}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="title"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href='{Request->DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<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="/" 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="/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1" itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.og_novel_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['og_novel_book_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="info">
|
||||
<div class="info_box">
|
||||
<div class="info_L">
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' title="{$arrNovel['og_novel_book_name']}" class="book_cov">
|
||||
<img src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel->og_novel_book_name ?? ''}封面"
|
||||
class="lazyload_book_cover lazyload-img">
|
||||
<i class="serial">{$arrNovel.og_novel_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">
|
||||
<h3><a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' >{$arrNovel['og_novel_book_name']}</a></h3>
|
||||
<!-- <span id="mod_book_star">0分</span> -->
|
||||
</div>
|
||||
<p class="c02">
|
||||
<span class="zz">作者:{$arrNovel.og_novel_author}</span>
|
||||
<span>创建日期:{$arrNovel.og_novel_update_time}</span>
|
||||
</p>
|
||||
<div class="c03">
|
||||
<p class="jianjie">简介</p>
|
||||
<div class="c03_box">
|
||||
<p class="jj_con" id="book_desc" >
|
||||
{$arrNovel.n_page_description}</p>
|
||||
<span class="zk_btn" style="">展开<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" >
|
||||
{$strFocus}</p>
|
||||
<span class="zk_btn" style="">展开<s></s></span>
|
||||
<span class="sq_btn" style="display: none;">收起<s></s></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c04">
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1" target="_blank" class="read">立即阅读</a>
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" target="_blank" class="mulu">目录</a>
|
||||
</div>
|
||||
<!-- <div class="c05">
|
||||
<p class="c05_t">作品标签:
|
||||
<a href="#" target="_blank" class="red">打发十分</a>
|
||||
|
||||
|
||||
</p>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="info_R">
|
||||
<div class="inf02">
|
||||
<h4>小说信息</h4>
|
||||
<p>类别:
|
||||
<a href='/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1'
|
||||
title="{$arrNovel.og_novel_category}" target="_blank">
|
||||
{$arrNovel.og_novel_category}
|
||||
</a>
|
||||
</p>
|
||||
<!-- <p>总字数:54.20万+</p> -->
|
||||
<p>总点击量:{$arrNovelClicks.total}</p>
|
||||
<p>月点击量:{$arrNovelClicks.monthly}</p>
|
||||
<p>周点击量:{$arrNovelClicks.weekly}</p>
|
||||
<p>日点击量:{$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">
|
||||
{volist name="arrChapter" id="Chapter" key="key"}
|
||||
<p>
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank" class="zj">{$Chapter.name}</a>
|
||||
<span class="time">{$Chapter.created_at}</span>
|
||||
<!-- <span class="time">3天前</span>-->
|
||||
</p>
|
||||
<p class="zw" style="max-height: 98px; overflow: hidden;"></p>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
<div class="pl_tit">
|
||||
<h2>相邻推荐:</h2>
|
||||
</div>
|
||||
<div class="pl_con">
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
<!-- n_forge_id -->
|
||||
<a href='/pc/kan/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}' target="_blank" 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">
|
||||
{volist name="arrRelateveNovel" id="Novel" key="key"}
|
||||
<li>
|
||||
<h3>
|
||||
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
|
||||
title="{$Novel['og_novel_book_name'] ?? ''}" target="_blank">
|
||||
{$Novel['og_novel_book_name'] ?? ''}
|
||||
</a>
|
||||
</h3>
|
||||
<div>
|
||||
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
|
||||
title="$Novel['og_novel_book_name'] ?? ''}" target="_blank" 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['og_novel_book_name'] ?? ''}">
|
||||
</a>
|
||||
<div class="book_inf">
|
||||
<span class="aut">{$Novel['og_novel_author'] ?? ''}</span>
|
||||
<span class="tag"><a href="/" target="_blank">{$Novel['og_novel_category'] ?? ''}</a></span>
|
||||
<p class="int">
|
||||
{$Novel['n_page_description'] ?? ''}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{/volist}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="footer-js"}
|
||||
<script src="/template/kuangyu/home/bai_web/js/global.js"></script>
|
||||
<script src="/template/kuangyu/public/js/common.js"></script>
|
||||
{/block}
|
||||
@@ -8,6 +8,9 @@
|
||||
<title>01 天龙问世_我真是一条龙-狂雨小说</title>
|
||||
<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='{Request->DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num}'>
|
||||
{/block}
|
||||
</head>
|
||||
|
||||
<body class="theme-0 w800" data-bid='/pc/xiaoshuo/name-1' >
|
||||
@@ -26,7 +29,7 @@
|
||||
<cite>最近阅读</cite>
|
||||
<div class="dropdown last-read" id="j_nearList">
|
||||
<dl>
|
||||
<dd>
|
||||
<!-- <dd>
|
||||
<div class="book-wrap cf">
|
||||
<div class="book-cover fl">
|
||||
<a class="link" href='/pc/xiaoshuo/name-1' target="_blank">
|
||||
@@ -48,11 +51,10 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
|
||||
</dd> -->
|
||||
|
||||
</dl>
|
||||
<a class="all" href='/pc/xiaoshuo/xiaos-pin-yin-1/mulu/zheng' target="_blank">
|
||||
<a class="all" href='/pc/history' target="_blank">
|
||||
查看全部<em class="iconfont"></em>
|
||||
</a>
|
||||
</div>
|
||||
@@ -129,9 +131,9 @@
|
||||
<em class="iconfont"></em>
|
||||
<a href='/pc/shuku/nvsheng-dushixiuxian-wanjie-1' target="_blank">女生</a>
|
||||
<em class="iconfont"></em>
|
||||
<a href='/pc/shuku/nvsheng-dushixiuxian-wanjie-1' target="_blank">耽美百合</a>
|
||||
<a href='/pc/shuku/nvsheng-dushixiuxian-wanjie-1' target="_blank">{$arrNovel.og_novel_category}</a>
|
||||
<em class="iconfont"></em>
|
||||
<a href='/pc/xiaoshuo/name-1' target="_blank">我真是一条龙</a>
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' target="_blank">{$arrNovel.og_novel_book_name}</a>
|
||||
</div>
|
||||
<div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
|
||||
<div id="j_chapterBox">
|
||||
@@ -140,19 +142,19 @@
|
||||
data-info="0|-1|486ef2abee55d|0">
|
||||
<div class="main-text-wrap">
|
||||
<div class="text-head">
|
||||
<h3 class="j_chapterName">01 天龙问世</h3>
|
||||
<h3 class="j_chapterName">{$arrChapter.name}</h3>
|
||||
<div class="text-info cf">
|
||||
<div class="info fl">
|
||||
<a href='/pc/xiaoshuo/name-1' target="_blank"> <em class="iconfont"></em> 我真是一条龙</a>
|
||||
<a href="/search/%E5%85%94%E5%AD%90%E5%BE%88%E6%B7%A1%E5%AE%9A.html"
|
||||
target="_blank"> <em class="iconfont"></em> 兔子很淡定</a>
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' target="_blank"> <em class="iconfont"></em> {$arrNovel.og_novel_book_name}</a>
|
||||
<a href="javascript:"
|
||||
target="_blank"> <em class="iconfont"></em> {$arrNovel.og_novel_author}</a>
|
||||
<i><em class="iconfont"></em><span class="j_chapterWordCut">2000</span>字</i>
|
||||
<i><em class="iconfont"></em><span class="j_updateTime">2025-03-20 23:59</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">
|
||||
{$arrChapter.content}
|
||||
{$arrChapter.content|raw}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -171,9 +173,15 @@
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="chapter-control dib-wrap">
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<a id="j_chapterPrev" href="javascript:void(0);">上一章</a>
|
||||
{else}
|
||||
<a id="j_chapterPrev" href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num}">上一章</a>
|
||||
{/if}
|
||||
<span>|</span>
|
||||
<a id="j_chapterNext" href='/pc/xiaoshuo/name-1/zhang-1'>下一章</a>
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
<a id="j_chapterNext" href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrNextChapter.c_sort_num}">下一章</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -181,7 +189,7 @@
|
||||
<div class="left-bar-list" id="j_leftBarList" style="top: 119px;">
|
||||
<dl>
|
||||
<dd id="j_navCatalogBtn">
|
||||
<a href="javascript:">
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng/1">
|
||||
<i><em class="iconfont"></em><span>目录</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
@@ -201,17 +209,16 @@
|
||||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href='/pc/xiaoshuo/name-1' target="_blank">
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' target="_blank">
|
||||
<i><em class="iconfont"></em><span>详情</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<!-- start 手机阅读面板浮层 -->
|
||||
<div class="panel-wrap cellphone" id="j_cellphone" style="display: none;">
|
||||
<!-- <div class="panel-wrap cellphone" id="j_cellphone" style="display: none;">
|
||||
<a class="iconfont close-panel" href="javascript:"></a>
|
||||
<div class="panel-box">
|
||||
<h4 class="lang">手机阅读</h4>
|
||||
<!-- start 二维码 -->
|
||||
<div class="qr-code-wrap">
|
||||
<h5>手机扫码阅读</h5>
|
||||
<div id="code"></div>
|
||||
@@ -221,19 +228,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 二维码 -->
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- end 手机阅读面板浮层 -->
|
||||
<!-- start 目录面板浮层 -->
|
||||
<div class="panel-wrap catalog" id="j_catalog" style="display: none;">
|
||||
<!-- <div class="panel-wrap catalog" id="j_catalog" style="display: none;">
|
||||
<a class="iconfont close-panel" href="javascript:"></a>
|
||||
<div class="panel-box">
|
||||
<div class="catalog-tab dib-wrap" id="j_catalogTab">
|
||||
<span class="lang act">目录</span>
|
||||
</div>
|
||||
<div id="j_catalogTabWrap">
|
||||
<!-- start 目录列表 -->
|
||||
<div class="panel-list-wrap catalog-scroll-wrap" id="j_catalogListWrap"
|
||||
style="max-height: 695px;">
|
||||
<div class="catalog-list-wrap">
|
||||
@@ -244,10 +249,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 目录列表 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- end 目录面板浮层 -->
|
||||
<!-- start 设置面板浮层 -->
|
||||
<div class="panel-wrap setting" id="j_setting" style="display: none;">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="content">
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
@@ -15,19 +16,19 @@
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="/pc/shuku/all" itemprop="item">
|
||||
<span itemprop="name">书库</span>
|
||||
<a href="/pc/shuku/all/{arrNovel.category_pinyin}/all/page1" itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.og_novel_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="/pc/book-name-1" itemprop="item">
|
||||
<span itemprop="name">斗破苍穹</span>
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['og_novel_book_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<span itemprop="name">第45章</span>
|
||||
<span itemprop="name">目录</span>
|
||||
<meta itemprop="position" content="4" />
|
||||
</li>
|
||||
</ol>
|
||||
@@ -36,18 +37,40 @@
|
||||
<div class="con_box">
|
||||
|
||||
<div class="top">
|
||||
<h3><a href='/pc/xiaoshuo/name-1' target="_blank">落魄千金美食发家日常</a></h3>
|
||||
<p>作者:鱼昆子</p>
|
||||
<h3><a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' target="_blank">{$arrNovel['og_novel_book_name']}</a></h3>
|
||||
<p>作者:{$arrNovel.og_novel_author}</p>
|
||||
</div>
|
||||
<div class="fenlei">
|
||||
|
||||
<div class="tit" btn="toggle_chapter_list"><span></span>章节列表</div>
|
||||
<div class="page_num"><a href="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/1" class="z">上一页</a><select
|
||||
onchange="self.location.href=options[selectedIndex].value">
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/1">第1-100章</option>
|
||||
<option selected="selected" value="/index/47010/1/">第101-200章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/2">第201-300章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/3">第301-400章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/4">第401-500章</option>
|
||||
</select><a href="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/2" class="y">下一页</a>
|
||||
</div>
|
||||
<div class="fL_con">
|
||||
<ul>
|
||||
{foreach $arrNovelChapterAll as $category}
|
||||
<li><a href="/pc/xiaoshuo/name-1/zhang-1" target="_blank">1 穿越</a></li>
|
||||
{foreach $arrChapter as $Chapter}
|
||||
<li>
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank">{$Chapter.created_at}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="page_num"><a href="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/1" class="z">上一页</a><select
|
||||
onchange="self.location.href=options[selectedIndex].value">
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/1">第1-100章</option>
|
||||
<option selected="selected" value="/index/47010/1/">第101-200章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/2">第201-300章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/3">第301-400章</option>
|
||||
<option value="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/4">第401-500章</option>
|
||||
</select><a href="/pc/xiaoshuo/gui-zu-nong-min-106/mulu/zheng/2" class="y">下一页</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -129,8 +129,8 @@
|
||||
</div>
|
||||
<div class="pl_con">
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
|
||||
<a href="#" target="_blank" class="red">打发十分</a>
|
||||
<!-- n_forge_id -->
|
||||
<a href='/pc/kan/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}' target="_blank" class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>
|
||||
<a href='{site:nurl n_id="Novel.n_id" n_py="Novel.og_novel_pin_yin"/}'>
|
||||
<img class="lazy lazyload-img" data-encrypted="false" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''}" />
|
||||
<span>{$Novel.og_novel_book_name ?? ''}</span>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
|
||||
<link rel="stylesheet" href="/template/kuangyu/home/new_wap/css/style.css" />
|
||||
<link rel="stylesheet" href="/template/kuangyu/public/css/common.css" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="/template/kuangyu/public/css/mulu.css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" />
|
||||
{block name="head-css"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<title>{$strTitle??''}</title>
|
||||
<link rel="stylesheet" href="/template/kuangyu/home/bai_web/css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/template/kuangyu/public/css/common.css" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="/template/kuangyu/public/css/mulu.css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
|
||||
{block name="head-css"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
@@ -37,7 +37,7 @@ class Scheduler
|
||||
$arrFilter = [];
|
||||
// for ($intNId = 1; $intNId <= 531208; $intNId++) {
|
||||
// for ($intNId = 1; $intNId <= 10000; $intNId++) {
|
||||
for ($intNId = 1; $intNId <= 200; $intNId++) {
|
||||
for ($intNId = 1; $intNId <= 20000; $intNId++) {
|
||||
$arrFilter[] = [
|
||||
'n_source_id' => $intNId,
|
||||
'page' => 0,
|
||||
|
||||
88
code/public/template/kuangyu/public/css/mulu.css
Normal file
88
code/public/template/kuangyu/public/css/mulu.css
Normal file
@@ -0,0 +1,88 @@
|
||||
.page_num {
|
||||
/* 基本容器样式 */
|
||||
width: 100%;
|
||||
max-width: 1200px; /* 最大宽度限制 */
|
||||
margin: 20px auto; /* 居中并添加外边距 */
|
||||
padding: 0 15px; /* 左右内边距 */
|
||||
box-sizing: border-box;
|
||||
|
||||
/* flex布局实现自适应 */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 15px; /* 元素间距 */
|
||||
}
|
||||
|
||||
/* 上一页和下一页链接样式 */
|
||||
.z, .y {
|
||||
text-decoration: none;
|
||||
padding: 8px 15px;
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* hover效果 */
|
||||
.z:hover, .y:hover {
|
||||
background-color: #e0e0e0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* select下拉框样式 */
|
||||
.page_num select {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
background-color: white;
|
||||
font-size: 14px;
|
||||
min-width: 120px;
|
||||
cursor: pointer;
|
||||
appearance: none; /* 移除默认箭头 */
|
||||
background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 8px center;
|
||||
background-size: 16px;
|
||||
}
|
||||
|
||||
/* 焦点状态 */
|
||||
.page_num select:focus {
|
||||
outline: none;
|
||||
border-color: #666;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media screen and (max-width: 768px) {
|
||||
.page_num {
|
||||
gap: 10px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.z, .y {
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.page_num select {
|
||||
font-size: 13px;
|
||||
min-width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.page_num {
|
||||
flex-wrap: wrap; /* 小屏幕时允许换行 */
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.z, .y {
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.page_num select {
|
||||
font-size: 12px;
|
||||
min-width: 90px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user