debug
This commit is contained in:
@@ -66,7 +66,7 @@ Route::get('/pc/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile
|
||||
*/
|
||||
Route::get('/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
|
||||
->append(['boolIsMobile' => true, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'intChapterId' => '\d+', 'intChapterPage' => '\d+']);
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+','intChapterSort' => '\d+', 'intChapterPage' => '\d+']);
|
||||
|
||||
Route::get('/pc/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 1])
|
||||
|
||||
@@ -536,7 +536,6 @@ class Novel extends BaseController
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
|
||||
// 小说详情
|
||||
$NovelModel = new NovelModel;
|
||||
$intNId = $intNovelId;
|
||||
@@ -552,6 +551,7 @@ 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']);
|
||||
|
||||
|
||||
// 缺少数据
|
||||
// 分类:男生和女生所对应的分类,看导航展示
|
||||
// 这个小说的 分类拼音
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
<div class="module module-merge">
|
||||
<div id="catelogX" class="chapter-tab-x active">
|
||||
<ol id="volumes" class="chapter-ol chapter-ol-catalog">
|
||||
{foreach $arrNewsNovel as $category}
|
||||
{include file="Public/chapterTableAll" /}
|
||||
{/foreach}
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,29 +36,47 @@
|
||||
</div>
|
||||
|
||||
<div id="readLoadNext" class="read-load-next">
|
||||
<a id="btnLoadPreChapter" href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
<a id="btnLoadNextChapter" href="javascript:" class="btn-normal red" data-size="14"
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<!-- <a id="j_chapterPrev" btnLoadNextChapter href="javascript:void(0);">上一章</a> -->
|
||||
<a href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{else}
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num}" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{/if}
|
||||
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrNextChapter.c_sort_num}" class="btn-normal red" data-size="14"
|
||||
role="button">下一章</a>
|
||||
<a id="aGotoBookEnd" href="#" class="btn-blank blue" style="display:none">已经是最后一章了 »</a>
|
||||
{/if}
|
||||
<a href="#" class="btn-blank blue" style="display:none">已经是最后一章了 »</a>
|
||||
</div>
|
||||
<article id="chapterContent" class="read-article" style="font-size: 1.125rem">
|
||||
<section class="read-section jsChapterWrapper" data-chapter-id="4b2d5aab58d71">
|
||||
<!-- <h3>01 天龙问世</h3> -->
|
||||
<p>“谁读的火焰风暴!”事已至此,秦渊只能依靠自己跟自己吐槽来安抚他生无可恋的内心了。</p>
|
||||
{$arrChapter.content|raw}
|
||||
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<div id="readLoadNext" class="read-load-next">
|
||||
<a id="btnLoadPreChapter" href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
<a id="btnLoadNextChapter" href="javascript:" class="btn-normal red" data-size="14"
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<!-- <a id="j_chapterPrev" href="javascript:void(0);">上一章</a> -->
|
||||
<a href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{else}
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num}" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{/if}
|
||||
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrNextChapter.c_sort_num}" class="btn-normal red" data-size="14"
|
||||
role="button">下一章</a>
|
||||
{/if}
|
||||
|
||||
|
||||
<a id="aGotoBookEnd" href="#" class="btn-blank blue" style="display:none">已经是最后一章了 »</a>
|
||||
</div>
|
||||
|
||||
</content>
|
||||
<div class="page-read-top">
|
||||
<h1 id="chapterTitle" class="read-book-name">01 天龙问世</h1>
|
||||
<h1 id="chapterTitle" class="read-book-name">{$arrChapter.name}</h1>
|
||||
</div>
|
||||
<mark id="readPageMark" class="read-page-mark">你刚刚阅读到这里</mark>
|
||||
<p id="pageNum" class="read-page-num">1/1</p>
|
||||
@@ -186,7 +202,7 @@
|
||||
</div>
|
||||
<footer class="read-opt-footer">
|
||||
<div class="btn-group">
|
||||
<a href="#&asideChapter" id="readBtnChapter" class="btn-group-cell" data-rel="asideChapter"
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng/1" id="readBtnChapter" class="btn-group-cell" data-rel="asideChapter"
|
||||
role="button" aria-haspopup="true">
|
||||
<i class="iconfont icon-mulu"></i>
|
||||
<h4 class="read-opt-footer-h">目录</h4>
|
||||
|
||||
Reference in New Issue
Block a user