debug
This commit is contained in:
@@ -169,6 +169,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
|||||||
})
|
})
|
||||||
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'chapter':
|
case 'chapter':
|
||||||
//章节
|
//章节
|
||||||
$strView = 'pc/getNovelChapter.html';
|
$strView = 'pc/getNovelChapter.html';
|
||||||
@@ -192,6 +193,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
|||||||
})
|
})
|
||||||
->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'novel':
|
case 'novel':
|
||||||
//小说详情
|
//小说详情
|
||||||
$strView = 'pc/getNovelInfo.html';
|
$strView = 'pc/getNovelInfo.html';
|
||||||
@@ -247,16 +249,41 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
|||||||
break;
|
break;
|
||||||
case 'rank':
|
case 'rank':
|
||||||
//排行榜
|
//排行榜
|
||||||
Route::get($strRoute, [Novel::class, 'getNovelRank']);
|
$strView = 'pc/getNovelRank.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'novel/getNovelRank.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'boys':
|
case 'boys':
|
||||||
//男生
|
//男生
|
||||||
Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'boys']);
|
$strView = 'pc/getNovelChannel.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'novel/getNovelChannel.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
})->append(['strChannel' => 'boys']);
|
||||||
|
|
||||||
|
//Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'boys']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'girls':
|
case 'girls':
|
||||||
//女生
|
//女生
|
||||||
Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'girls']);
|
$strView = 'pc/getNovelChannel.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'novel/getNovelChannel.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
})->append(['strChannel' => 'girls']);
|
||||||
|
|
||||||
|
//Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'girls']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'search':
|
case 'search':
|
||||||
//搜素
|
//搜素
|
||||||
$strView = 'pc/getSearchNovel.html';
|
$strView = 'pc/getSearchNovel.html';
|
||||||
@@ -267,19 +294,40 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
|||||||
return view($strView);
|
return view($strView);
|
||||||
})->ext('html');
|
})->ext('html');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'user':
|
case 'user':
|
||||||
//用户中心
|
//用户中心
|
||||||
Route::get($strRoute, [User::class, 'Index']);
|
$strView = 'pc/user/index.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'user/index.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'bookshelf':
|
case 'bookshelf':
|
||||||
//书架
|
//书架
|
||||||
Route::get($strRoute, [User::class, 'getBookShelf']);
|
$strView = 'pc/user/getBookShelf.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'user/getBookShelf.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'history':
|
case 'history':
|
||||||
//历史记录
|
//历史记录
|
||||||
Route::get($strRoute, [User::class, 'getHistory']);
|
$strView = 'pc/user/getHistory.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'user/getHistory.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'index':
|
case 'index':
|
||||||
// 首页
|
// 首页
|
||||||
if ($platform == 'h5') {
|
if ($platform == 'h5') {
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
{block name="main"}
|
{block name="main"}
|
||||||
|
|
||||||
<div class="wrap-box">
|
<div class="wrap-box">
|
||||||
<h1><span>{$strSearchKeywords}</span>搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
<h1><span>{$Request.get.keyword}</span>搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||||
<!-- <h3 class="wrap-title"><span>搜索:</span><span style="color: red;">{$strSearchKeywords}</span>结果</h3> -->
|
<!-- <h3 class="wrap-title"><span>搜索:</span><span style="color: red;">{$Request.get.keyword}</span>结果</h3> -->
|
||||||
{if empty($arrPage.data)}
|
{if empty($arrPage.data)}
|
||||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||||
{else}
|
{else}
|
||||||
|
|||||||
Reference in New Issue
Block a user