diff --git a/code/app/home/BaseController.php b/code/app/home/BaseController.php index 33d2731..1ad634e 100644 --- a/code/app/home/BaseController.php +++ b/code/app/home/BaseController.php @@ -6,6 +6,7 @@ namespace app\home; use app\model\ConverterMovel; use app\model\GanRaoMaModel; +use app\model\CategoryModel; use think\App; use think\exception\ValidateException; use think\facade\View; @@ -118,10 +119,11 @@ abstract class BaseController switch ($strTemplatesModel) { case 'default': + // TODO 随机30个小说(有伪造小说的) $arrForgeNovel = []; - View::assign([ 'arrForgeNovel' => $arrForgeNovel, + 'arrCategoryAll' => CategoryModel::$arrCategoryAll, ]); break; case 'kuangYu': diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 7db3524..6765a55 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -76,6 +76,37 @@ $arrRoutes = [ // 书库 'library' => [ + /** + * 完整路由 + * 暂时不需要开放 + * 使用: {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" order="all" page="1"/} + */ + // '/shuku/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/books/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/library/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/fenlei/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/class/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/category/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + + /** + * default 模板 + * strGender 不需要 + * 使用 :gender 传空/或者不传,控制器会默认值是 all + * {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/} + */ + '/shuku/:strCategory/:strStatus/:strOrder/page:intPage', + '/books/:strCategory/:strStatus/:strOrder/page:intPage', + '/library/:strCategory/:strStatus/:strOrder/page:intPage', + '/fenlei/:strCategory/:strStatus/:strOrder/page:intPage', + '/class/:strCategory/:strStatus/:strOrder/page:intPage', + '/category/:strCategory/:strStatus/:strOrder/page:intPage', + + /** + * kuangyu 模板 + * strOrder 不需要 + * 使用 order 传空/或者不传,控制器会默认值是 all + * {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" page="1"/} + */ '/shuku/:strGender/:strCategory/:strStatus/page:intPage', '/books/:strGender/:strCategory/:strStatus/page:intPage', '/library/:strGender/:strCategory/:strStatus/page:intPage', @@ -85,12 +116,12 @@ $arrRoutes = [ ], // 书库首页 'library-index' => [ - '/shuku/all', - '/books/all', - '/library/all', - '/fenlei/all', - '/class/all', - '/category/all', + '/shuku/index', + '/books/index', + '/library/index', + '/fenlei/index', + '/class/index', + '/category/index', ], //排行榜 'rank' => ['/paihang/all', '/rank/all', '/paihang-quan', '/top/all', '/paihang-bang', '/ranks/all'], @@ -155,13 +186,15 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']); break; case 'library': - //书库/分类 + //书库/分类 /shuku/all/xuanhuan-xiuzhen/all/all/page1 Route::get($strRoute, [Novel::class, 'getLibrary']) ->append(['boolIsMobile' => $boolIsMobile]) ->pattern([ + //'strGender' => 'all|nansheng-xiaoshuo|boys-novel|nansheng-shu|man-read|nansheng-book|male-novels|nvsheng-xiaoshuo|girls-novel|nvsheng-shu|woman-read|nvsheng-book|female-novels', 'strGender' => '[a-z\-]+', 'strCategory' => '[a-z\-]+', 'strStatus' => 'all|lianzai|wanjie', + // 'strOrder' => '[a-z\-]+', 'intPage' => '\d+' ]); break; diff --git a/code/app/home/controller/Index.php b/code/app/home/controller/Index.php index a28af19..aa6b561 100644 --- a/code/app/home/controller/Index.php +++ b/code/app/home/controller/Index.php @@ -141,7 +141,6 @@ class Index extends BaseController switch ($strTemplatesModel) { case 'default': - // 默认模板 630zw // TODO 1.获取所有分类数据, // 2.然后 每个分类 随机获取 13个小说 , // 3.所有分类数据 放到一个数组里, 前端一个循环渲染,排版都是一样的 @@ -153,7 +152,7 @@ class Index extends BaseController View::assign([ 'arrAllCategoryNovel' => $arrAllCategoryNovel, 'arrNewsNovel' => $arrNewsNovel, - 'arrCategoryAll' => CategoryModel::$arrCategoryAll, + ]); break; @@ -164,7 +163,6 @@ class Index extends BaseController $strKey = sprintf('%s:PC:INDEX:ZUIJIAN:SEX:%s:%s', $Request->DomainModel->d_domain, 1, 5); $arrBoyNewsNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 5, 1, NULL, ['n_update_time' => -1]); - // 男生频道,周排行榜 随机10个小说 $strKey = sprintf('%s:PC:INDEX:RANK:%s:SEX:%s', $Request->DomainModel->d_domain, 'weekly', 1); $arrBoyWeekRankNovel = $NovelModel->getRankNovelOnCache($strKey, 5, 1, 'weekly'); @@ -210,8 +208,8 @@ class Index extends BaseController $arrRecommendSerializationNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, $intRecommendSerializationNovel, 0, NULL); // 推荐等级为9的完结的 随机12个小说 - $strKey = sprintf('%s:PC:INDEX:TUIJIAN:WANJIE:%s', $Request->DomainModel->d_domain, 12); - $arrRecommendEndNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 12, 0, "已完结"); + $strKey = sprintf('%s:PC:INDEX:TUIJIAN:WANJIE:%s', $Request->DomainModel->d_domain, $intRecommendEndNovel); + $arrRecommendEndNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, $intRecommendEndNovel, 0, "已完结"); // 最近更新-随机50 $strKey = sprintf('%s:PC:INDEX:ZUIJIAN:SEX:%s:%s', $Request->DomainModel->d_domain, 0, 50); diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 60ca360..db9353f 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -98,10 +98,11 @@ class Novel extends BaseController * @param string $strNovelChannel 男生/女生 -拼音 * @param string $strCategory 分类 -拼音 * @param string $strStatus 连载/完结 -拼音 + * @param string $strOrder 排序 -拼音 * @param integer $intPage 分页 * @return void */ - public function getLibrary(Request $Request, $strGender = 'all', $strCategory = 'all', $strStatus = 'all', $strSort = 'all',$intPage = 1) + public function getLibrary(Request $Request, $strGender = 'all', $strCategory = 'all', $strStatus = 'all', $strOrder = 'all', $intPage = 1) { $boolIsMobile = $Request->param('boolIsMobile'); $strChannel = $Request->param('strChannel') ?? 'all'; @@ -111,7 +112,6 @@ class Novel extends BaseController $strNanUrl = str_replace("/", "", $strNanUrlTemp); $strNvUrl = str_replace("/", "", $strNvUrlTemp); // 性别 - $arrSex = [ 'all' => 0, $strNanUrl => 1, @@ -160,37 +160,42 @@ class Novel extends BaseController $intLifeTime = 24 * 3600; $strTemplatesModel = $Request->TemplatesModel->t_code; - switch ($strTemplatesModel) { case 'default': - $arrSort = [ - - ['key'=>'all','name'=>'全部'], - ['key'=>10,'name'=>'日排行'], - ['key'=>11,'name'=>'周排行'], - ['key'=>2,'name'=>'月排行'], - ['key'=>3,'name'=>'总排行'], - // ['key'=>4,'name'=>'日推荐'], - // ['key'=>5,'name'=>'周推荐'], - // ['key'=>6,'name'=>'月推荐'], - // ['key' => 'shouchang', 'name' => '收藏'], - ['key' => 'tuijian', 'name' => '推荐'], - // ['key' => 'renqi', 'name' => '人气'], - ['key' => 'news', 'name' => '最新入库'], - ['key' => 'update', 'name' => '最新更新'], + $arrOrder = [ + 'all' => '全部排序', + 'day' => '日排行', + 'week' => '周排行', + 'mon' => '月排行', + 'click' => '总排行', + 'tuijian' => '推荐', + 'news' => '最新入库', + 'update' => '最新更新', ]; // TODO 当前筛选条件(除了分页),随机6条 $arrTopNovel = []; + if (!$boolIsMobile) { + // TODO 当前筛选条件(除了分页),最新 随机 $intLimit 条 + $arrNewsNovel = []; + View::assign([ + 'arrNewsNovel' => $arrNewsNovel, + ]); + } else { + } + + $strBaseUrl = app(NovelService::class)->getNovelCategoryUrl('', $strCategory, $strStatus, $strOrder, '{page}'); View::assign([ - 'arrSort' => $arrSort, - 'strSort' => $strSort, 'arrTopNovel' => $arrTopNovel, + 'arrOrder' => $arrOrder, + 'strOrder' => $strOrder, ]); break; case 'kuangYu': + $strBaseUrl = app(NovelService::class)->getNovelCategoryUrl($strGender, $strCategory, $strStatus, "", '{page}'); + break; } $strKey = sprintf("Novel:Library:%s:%s:%s:%s", $intGender, $strSearchCategory, $strSearchStatus, $intPage); @@ -205,7 +210,7 @@ class Novel extends BaseController $strTemplate = 'pc/getLibrary'; } - $strBaseUrl = app(NovelService::class)->getNovelCategoryUrl($strGender, $strCategory, $strStatus, '{page}'); + $strBaseUrl = app(NovelService::class)->getNovelCategoryUrl($strGender, $strCategory, $strStatus, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); // 更新值 @@ -216,7 +221,6 @@ class Novel extends BaseController 'strNovelStatus' => $strSearchStatus, ]); - // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS'); $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION'); @@ -226,7 +230,7 @@ class Novel extends BaseController $strDescription = ConverterMovel::convert($strDescriptionTemplate); View::assign([ - 'arrNovel' => $arrPage['data'], + 'arrNovel' => $arrPage['data'], // TODO default 模板需要加入 $strOrder 筛查数据 'strPageCode' => 'library', 'strGender' => $strGender, 'strCategory' => $strCategory, @@ -321,88 +325,7 @@ class Novel extends BaseController } /** - * 分类 - * - * @todo 第一版本不需要 - * @param Request $Request - * @param [type] $intCategoryId - * @param integer $intPage - * @return void - */ - // public function getNovelCategory(Request $Request, $intCategoryId = null, $intPage = 1) - // { - // $boolIsMobile = $Request->param('boolIsMobile'); - // $strChannel = $Request->param('strChannel'); // 区分男生 / 女生频道 - - // // 模拟数据-推荐等级为9的,连载的,男生频道/女生频道, 随机12个小说 - // $arrRecommendSerializationNovel = [ - // ['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'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 11, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 12, 'name' => '小说3', 'author' => '作者3'], - // ]; - // // 模拟数据-推荐等级为9的,完结的,男生频道/女生频道, 随机8个小说 - // $arrRecommendEndNovel = [ - // ['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'], - - // ]; - - // // 模拟数据-最近更新-随机50 - // $arrNewsUpdateNovel = [ - // ['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'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ['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'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ]; - - // View::assign([ - // 'arrNewsUpdateNovel' => $arrNewsUpdateNovel, - // 'arrRecommendSerializationNovel' => $arrRecommendSerializationNovel, - // 'arrRecommendEndNovel' => $arrRecommendEndNovel, - // 'arrAdBanner' => [], - // 'strPageCode' => 'category' - // ]); - // if ($boolIsMobile) { - // return View::fetch(); - // } else { - // return View::fetch('pc/getNovelCategory'); - // } - // } - - - /** - * 小说详情-kan + * 小说详情-伪造小说 * * @param Request $Request * @return void @@ -471,6 +394,23 @@ class Novel extends BaseController '$in' => $arrRelateveNId, ]], 10); + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, + ]); + break; + } + // 更新值 ConverterMovel::setVal([ 'intPage' => 1, @@ -495,6 +435,7 @@ class Novel extends BaseController unset($arrNovelJs['n_related_novel'], $arrNovelJs['n_forge_novel'], $arrNovelJs['n_description']); View::assign([ + 'intPage' => 1, 'arrRelateveNovel' => $arrRelateveNovel, 'arrNovel' => $arrNovel, 'arrNovelJs' => $arrNovelJs, @@ -503,13 +444,12 @@ class Novel extends BaseController 'arrNovelClicks' => $arrNovelClicks, 'strFocus' => $strFocus, 'intFirstChapterSort' => $intFirstChapterSort, - 'strPageCode' => 'boy', + 'strPageCode' => 'detail', 'strTitle' => $strTitle, 'strKeywords' => $strKeywords, 'strDescription' => $strDescription, ]); - $strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo'; $this->generateGrm(2, $intNId . '-' . $intForgeId, 50); return $this->rending($strView); @@ -575,6 +515,23 @@ class Novel extends BaseController '$in' => $arrRelateveNId, ]], 10); + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, + ]); + break; + } + // 更新值 ConverterMovel::setVal([ 'intPage' => 1, @@ -602,7 +559,7 @@ class Novel extends BaseController 'arrNovelClicks' => $arrNovelClicks, 'strFocus' => $strFocus, 'intFirstChapterSort' => $intFirstChapterSort, - 'strPageCode' => 'boy', + 'strPageCode' => 'detail', 'strTitle' => $strTitle, 'strKeywords' => $strKeywords, 'strDescription' => $strDescription, @@ -653,6 +610,29 @@ class Novel extends BaseController $arrChapter['c_content'] = base64_encode($arrChapter['c_content']); } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + 'arrEndNovel' => $arrEndNovel, + ]); + + break; + + case 'kuangYu': + } + + $arrCategoryAll = CategoryModel::$arrCategoryAll; // 更新值 @@ -694,11 +674,10 @@ class Novel extends BaseController ]); $strView = $boolIsMobile ? 'getNovelChapter' : 'pc/getNovelChapter'; - $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20); + $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 100); return $this->rending($strView); } - /** * 章节详情 * @@ -742,6 +721,28 @@ class Novel extends BaseController $arrChapter['c_content'] = base64_encode($arrChapter['c_content']); } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + 'arrEndNovel' => $arrEndNovel, + ]); + + break; + + case 'kuangYu': + } + $arrCategoryAll = CategoryModel::$arrCategoryAll; // 更新值 @@ -781,7 +782,7 @@ class Novel extends BaseController ]); $strView = $boolIsMobile ? '' : 'pc/getNovelChapter'; - $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20); + $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 100); return $this->rending($strView); } @@ -811,7 +812,7 @@ class Novel extends BaseController $strKey = sprintf('Nid:%s:Chapter-Page:%s:Order:%s', $intNId, $intPage, $strOrder); $arrFilter = ['n_id' => $intNId, 'c_page' => 0,]; - $intLimit = 100; + $intLimit = 10; $intLifeTime = 12 * 3600; if ($strOrder == 'zheng') { @@ -820,6 +821,39 @@ class Novel extends BaseController $arrSort = ['c_sort_num' => -1]; } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + // 第一章 + $arrFirstChapter = $ChapterModel->getFirstChapterByNId($intNId, false); + $intFirstChapterSort = null; + if ($arrFirstChapter) { + $intFirstChapterSort = $arrFirstChapter['c_sort_num']; + } + + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, + 'intFirstChapterSort' => $intFirstChapterSort, + 'arrRelateveNovel' => $arrRelateveNovel, + ]); + break; + + case 'kuangYu': + } + $arrPage = $ChapterModel->findPaginatedWithCache($arrFilter, $intPage, $intLimit, $arrSort, $strKey, $intLifeTime); $intButtomNum = 5; @@ -827,7 +861,7 @@ class Novel extends BaseController $intButtomNum = 10; } - $strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['n_name_pinyin'], $intNId, $strOrder); + $strBaseUrl = app(NovelService::class)->getNovelCatalogUrl($intNId, $arrNovel['n_name_pinyin'], $strOrder, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); // 更新值 @@ -910,8 +944,7 @@ class Novel extends BaseController $intButtomNum = 10; - // $strSearchInfoUrlTemp = $Request->DomainModel->getFomartSubject('SEARCH_INFO_URL','',false); - // $strBaseUrl = sprintf('/search.html?keyword=%s&page={page}', $strSearchKeywords); + $strBaseUrl = app(NovelService::class)->getNovelSearchUrl($strSearchKeywords, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); diff --git a/code/app/home/view/default/Novel/getLibrary.html b/code/app/home/view/default/Novel/getLibrary.html index 49b1e58..39f8da2 100644 --- a/code/app/home/view/default/Novel/getLibrary.html +++ b/code/app/home/view/default/Novel/getLibrary.html @@ -1,8 +1,11 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} + +{block name="head-js"}{/block} +{block name='nav-active-class'}home{/block} {block name="body-class"}novel_home{/block} {block name='head-name'}{$DomainModel->d_name}{/block} {block name='head-href'}/{/block} @@ -12,34 +15,34 @@ @@ -51,8 +54,8 @@
  • [{$Novel.n_category}] - + {$Novel.n_name} @@ -97,7 +100,7 @@ {foreach $arrTopNovel as $key=>$Novel }
    - + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 @@ -105,7 +108,7 @@

    - + {$Novel.n_name}

    diff --git a/code/app/home/view/default/Novel/getNovelCatalog.html b/code/app/home/view/default/Novel/getNovelCatalog.html new file mode 100644 index 0000000..901ac67 --- /dev/null +++ b/code/app/home/view/default/Novel/getNovelCatalog.html @@ -0,0 +1,225 @@ +{extend name="baseH5" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + +{/block} + +{block name="head-js"} +{/block} + +{block name="body-class"}novel_info{/block} + +{block name='head-name'}{$DomainModel->d_name}{/block} +{block name='head-href'}/{/block} + +{block name="main"} + +
    +
    +
    + {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
    +
    +
    +

    {$arrNovel.n_name}

    {$arrNovel.n_author} + 著 +
    +

    {$arrNovel.n_category}{$arrNovel.n_status} +

    +

    最近更新:{$arrLatestChapter->c_name + ?? ""}

    +

    更新时间:{$arrNovel.n_update_time}

    +
    +
    + +
    +
    +
    + {$arrNovel.n_description} +
    + +{if $strPageCode == 'detail'} +

    最新章节

    +
    + + 查看更多章节... +
    +
    +

    章节列表

    +
    + + 查看更多章节... +
    +{else} +

    章节列表(第{$intPage}页) + {if $strOrder == 'zheng'} + 点击切换倒序 + {else} + 点击切换正序 + {/if} +

    +
    + + + {include file="public/allChapterPage" start="1"/} + +
      + {volist name='arrPage.data' id='Chapter'} +
    • + {$arrGRM[$key]|raw} + {$Chapter.c_name} +
    • + + {/volist} +
    + + {include file="public/allChapterPage" /} + +
    +{/if} +
    +

    完结推荐

    +
    + {foreach $arrEndNovel as $key=>$Novel } +
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    +

    {$Novel.n_name} +

    +

    作者:{$Novel.n_author}

    +

    {$Novel.n_description}

    +
    +
    + {/foreach} +
    +
    + + +
    +

    相邻小说

    +
    + + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
    +
    + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
    +
    + + + + +{/block} + +{block name="customize"} + + +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelCategory.html b/code/app/home/view/default/Novel/getNovelCategory.html deleted file mode 100644 index 585b1ea..0000000 --- a/code/app/home/view/default/Novel/getNovelCategory.html +++ /dev/null @@ -1,45 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

    - 狂雨小说/{eq name="strPageCode" value="boy"}男生 {else/}女生{/eq} -

    -{/block} - -{block name="main"} - -
    - - -
    -
    -

    热门推荐

    -
    -
    -
      - {foreach $arrRecommendSerializationNovel as $category} - {include file="Public/novelListS" /} - {/foreach} -
    -
    -
    - - -
    -
    -

    最近更新

    -
    -
    -
      - {foreach $arrNewsUpdateNovel as $category} - {include file="Public/novelListH" /} - {/foreach} -
    -
    -
    - -
    -{/block} {block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelChannel.html b/code/app/home/view/default/Novel/getNovelChannel.html deleted file mode 100644 index 585b1ea..0000000 --- a/code/app/home/view/default/Novel/getNovelChannel.html +++ /dev/null @@ -1,45 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

    - 狂雨小说/{eq name="strPageCode" value="boy"}男生 {else/}女生{/eq} -

    -{/block} - -{block name="main"} - -
    - - -
    -
    -

    热门推荐

    -
    -
    -
      - {foreach $arrRecommendSerializationNovel as $category} - {include file="Public/novelListS" /} - {/foreach} -
    -
    -
    - - -
    -
    -

    最近更新

    -
    -
    -
      - {foreach $arrNewsUpdateNovel as $category} - {include file="Public/novelListH" /} - {/foreach} -
    -
    -
    - -
    -{/block} {block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelChapter.html b/code/app/home/view/default/Novel/getNovelChapter.html index b381b03..23b5a09 100644 --- a/code/app/home/view/default/Novel/getNovelChapter.html +++ b/code/app/home/view/default/Novel/getNovelChapter.html @@ -1,253 +1,170 @@ - - - - - - - - - 01 天龙问世_我真是一条龙-狂雨小说 - - - - +{extend name="baseH5" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + +{/block} - - +{block name="head-js"} + +{/block} -
    - -
    - -

    下拉阅读上一章

    -
    +{block name="body-class"}jjdfjkozd{/block} +{block name="body-id"}kkasdfei{/block} - -
    -
    - -

    “谁读的火焰风暴!”事已至此,秦渊只能依靠自己跟自己吐槽来安抚他生无可恋的内心了。

    +{block name='head-name'}{$arrNovel.n_name}{/block} +{block name='head-href'}{/block} -
    -
    +{block name="main"} - - -
    -
    -

    01 天龙问世

    -
    - 你刚刚阅读到这里 -

    1/1

    +
    +
    关灯
    +
    护眼
    +
    + 字体: + + +
    -
    -
    - - - 返回 - - -
    - - -
    -
    - 加入书架 - -
    - -
    - -
    -
    -
    - -
    -
      -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • -
    -
    -
    - +
    - +
    + +
    +
    + +
    +
    - - - - - - +
    +

    完结推荐

    +
    + {foreach $arrEndNovel as $key=>$Novel } +
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    +

    {$Novel.n_name} +

    +

    作者:{$Novel.n_author}

    +

    {$Novel.n_description}

    +
    +
    + {/foreach} +
    +
    - \ No newline at end of file +
    +

    相邻小说

    +
    + + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
    +
    + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
    +
    +{/block} + +{block name="customize"} + + +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelInfo.html b/code/app/home/view/default/Novel/getNovelInfo.html index 12de0cd..db92fe8 100644 --- a/code/app/home/view/default/Novel/getNovelInfo.html +++ b/code/app/home/view/default/Novel/getNovelInfo.html @@ -1,209 +1,219 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + {/block} +{block name="head-js"} +{/block} + +{block name="body-class"}novel_info{/block} + +n_name + {block name="main"} -
    - -
    +
    +
    +
    + {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
    -
    -
    - 我真是一条龙 - 已完结 -
    -
    -

    我真是一条龙

    -

    - 分类:耽美百合 - 作者:兔子很淡定 - 字数:54.20万字 - 阅读:0 -

    -
    -
    -
    - -
    -
    -
    -

    - 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦! -

    -
    +
    +

    {$arrNovel.n_name}

    {$arrNovel.n_author} + 著
    +

    {$arrNovel.n_category}{$arrNovel.n_status} +

    +

    最近更新:{$arrLatestChapter->c_name + ?? ""}

    +

    更新时间:{$arrNovel.n_update_time}

    -
    - - -
    -
    -
    -

    精简阅读

    -
    -
    -
    -

    - 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦! -

    -

    相邻推荐:逆天网游系统  穿越之血色主宰  我的史诗传说  随身带个英雄联盟  无终骨  和智能女神共事的日子  我是都市小蚂蚁  以太坊  祸乱星河  科魔多  和病娇大佬协议订婚后  混迹异界玩网游  共创和谐虚空  惊天犯案  永恒魔尊  楚谣  英灵游戏  梦里为王  绝美仙女老婆  夜半谈鬼  狼牙兵王曾经的老四txt  狼牙兵王大结局是什么  狼牙兵王虎和主角关系  狼牙兵王陈塘免费全文阅读  狼牙兵王苏扬在线阅读  狼牙兵王女主  狼牙狼王于枫  狼牙兵王全文免费阅读  狼牙兵王萧战全文阅读  狼牙兵王安安结局  狼牙兵王陈塘  狼牙兵王百科  狼牙兵王苏扬颖儿  狼牙兵王在线阅读  狼牙兵王为什么不更新  狼牙兵王百度百科  狼牙兵王陈塘笔趣阁  狼牙兵王 - 蝼蚁望天  狼牙兵王怎么不更新了  狼牙兵王蝼蚁望天  狼牙兵王阅读全文  丛林狼最强兵王罗铮  狼牙兵王怎么下架了  狼牙兵王蝼蚁望天怎么不更新了  狼牙兵王安安  狼牙兵王全本txt  狼牙兵王陈塘读集(沧海残阳)  狼牙兵王中寅虎和主角关系  狼牙兵王江一凡  狼牙兵王全文在线阅读  狼牙兵王曾经的老四  狼牙兵王怎么停更了  狼牙兵王女主角是谁  狼牙兵王 - 第1章  狼牙兵王陈塘怎么不更新了  狼牙兵王陈塘续集  狼牙兵王陈塘全文阅读  狼牙兵王辰南笔趣阁  狼牙兵王媚烟  狼牙兵王辰南  狼牙兵王在线观看  狼牙兵王苏扬  狼牙兵王叶谦全集  狼牙兵王林峰  狼牙兵王陈唐  狼牙兵王后续  狼牙兵王陈塘最新章节  狼牙兵王完结版  狼牙兵王免费阅读  狼牙兵王第二部  狼牙兵王寅虎和陈塘什么关系  狼牙兵王陈塘2  狼牙兵王辰南全本  狼牙兵王笔趣阁  狼牙兵王完整版  狼牙兵王人物介绍  狼牙兵王txt  狼牙兵王TXT  

    -
    -
    - - -
    -
    - - -
    -
    -

    目录

    -
    - - -
    -
    -

    同类作品

    -
    -
    -
      - {foreach $arrRecommendNovel as $category} - {include file="Public/novelListS" /} - {/foreach}
    +
    + {$arrNovel.n_description} +
    +{if $strPageCode == 'detail'} +

    最新章节

    +
    + + 查看更多章节... +
    +
    +

    章节列表

    +
    + + 查看更多章节... +
    +{else} +

    章节列表(第{$intPage}页) + {if $strOrder == 'zheng'} + 点击切换倒序 + {else} + 点击切换正序 + {/if} +

    +
    + + + {include file="public/allChapterPage" start="1"/} + +
      + {volist name='arrPage.data' id='Chapter'} +
    • + {$arrGRM[$key]|raw} + {$Chapter.c_name} +
    • + + {/volist} +
    + + {include file="public/allChapterPage" /} + +
    +{/if} +
    +

    完结推荐

    +
    + {foreach $arrEndNovel as $key=>$Novel } +
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    +

    {$Novel.n_name} +

    +

    作者:{$Novel.n_author}

    +

    {$Novel.n_description}

    +
    +
    + {/foreach} +
    +
    + +
    +

    相邻小说

    +
    + + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
    +
    + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
    +
    + + {/block} {block name="customize"} -
    -
    -
    -

    目录

    - 关闭 -
    -
    -
      - {foreach $arrRecommendNovel as $category} - {include file="Public/chapterTable" /} - {/foreach} -
    -
    -
    + {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelRank.html b/code/app/home/view/default/Novel/getNovelRank.html deleted file mode 100644 index 459a474..0000000 --- a/code/app/home/view/default/Novel/getNovelRank.html +++ /dev/null @@ -1,129 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

    - 狂雨小说/排行榜 -

    -{/block} - -{block name="main"} -
    - - -
    -
    -

    日点击榜

    -
    -
    -
      - {foreach $arrDayRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    周点击榜

    -
    -
    -
      - {foreach $arrWeekRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    月点击榜

    -
    -
    -
      - {foreach $arrMoonRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    总点击榜

    -
    -
    -
      - {foreach $arrTotalRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    - -
    -
    -

    新书榜

    -
    -
    -
      - {foreach $arrNewsNovelRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    - -
    -
    -

    完结榜

    -
    -
    -
      - {foreach $arrEdnNovelRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    -
    -{/block} - -{block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getSearchNovel.html b/code/app/home/view/default/Novel/getSearchNovel.html index c85ccd0..5f941ac 100644 --- a/code/app/home/view/default/Novel/getSearchNovel.html +++ b/code/app/home/view/default/Novel/getSearchNovel.html @@ -1,72 +1,74 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} -{block name="logo-html"} -

    - 狂雨小说 -

    -{/block} +{block name='nav-active-class'}home{/block} +{block name="body-class"}novel_so novel_search_page{/block} +{block name='head-name'}{$DomainModel->d_name}{/block} +{block name='head-href'}/{/block} {block name="main"} - -
    -