debug
This commit is contained in:
@@ -169,6 +169,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
break;
|
||||
|
||||
case 'chapter':
|
||||
//章节
|
||||
$strView = 'pc/getNovelChapter.html';
|
||||
@@ -192,6 +193,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
break;
|
||||
|
||||
case 'novel':
|
||||
//小说详情
|
||||
$strView = 'pc/getNovelInfo.html';
|
||||
@@ -247,16 +249,41 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
break;
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
case 'search':
|
||||
//搜素
|
||||
$strView = 'pc/getSearchNovel.html';
|
||||
@@ -270,16 +297,37 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
case 'index':
|
||||
// 首页
|
||||
if ($platform == 'h5') {
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
{block name="main"}
|
||||
|
||||
<div class="wrap-box">
|
||||
<h1><span>{$strSearchKeywords}</span>搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
<!-- <h3 class="wrap-title"><span>搜索:</span><span style="color: red;">{$strSearchKeywords}</span>结果</h3> -->
|
||||
<h1><span>{$Request.get.keyword}</span>搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
<!-- <h3 class="wrap-title"><span>搜索:</span><span style="color: red;">{$Request.get.keyword}</span>结果</h3> -->
|
||||
{if empty($arrPage.data)}
|
||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user