modify for not support

This commit is contained in:
Jerry Yan 2023-02-25 10:37:22 +08:00
parent 74e0b91845
commit 5f56e651a2
3 changed files with 6 additions and 6 deletions

View File

@ -17,9 +17,9 @@
</div>
<div class="hidden sm:ml-6 md:block">
<div class="flex space-x-4">
<a class="{{ (request()->is('comments', 'video/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/comments">节目单查询</a>
<a class="{{ (request()->is('comments', '/', 'video/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/comments">节目单查询</a>
<a class="{{ (request()->is('danmakus', 'danmakus/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/danmakus">稿件查询</a>
<a class="{{ (request()->is('programs', '/', 'programs/*/video')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/programs" title="数据不全,待补充">节目查询</a>
<a class="{{ (request()->is('programs', 'programs/*/video')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/programs" title="数据不全,待补充">节目查询</a>
@auth("web")
<a class="{{ (request()->is('construct/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} px-3 py-2 rounded-md text-sm font-medium" href="/construct/programs">节目建设</a>
@endauth
@ -46,9 +46,9 @@
<div class="md:hidden" id="_mobile_menu" style="display: none">
<div class="space-y-1 px-2 pt-2 pb-3">
<a class="{{ (request()->is('comments', 'video/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/comments">节目单查询</a>
<a class="{{ (request()->is('comments', '/', 'video/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/comments">节目单查询</a>
<a class="{{ (request()->is('danmakus', 'danmakus/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/danmakus">稿件查询</a>
<a class="{{ (request()->is('programs', '/', 'programs/*/video')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/programs" title="数据不全,待补充">节目查询</a>
<a class="{{ (request()->is('programs', 'programs/*/video')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/programs" title="数据不全,待补充">节目查询</a>
@auth("web")
<a class="{{ (request()->is('construct/*')) ? 'bg-gray-900 text-white' : 'text-gray-700 hover:bg-gray-700 hover:text-white' }} block px-3 py-2 rounded-md text-base font-medium" href="/construct/programs">节目建设</a>
@endauth

View File

@ -7,7 +7,7 @@
</head>
<body>
@include("common.header")
<div class="w-full text-white bg-blue-500" id="_notice">
<div class="w-full text-white bg-red-500" id="_notice">
<div class="container flex items-center justify-between px-2 sm:px-6 lg:px-8 py-4 mx-auto">
<div class="flex">
<svg viewBox="0 0 40 40" class="w-6 h-6 fill-current">

View File

@ -14,7 +14,7 @@ use Illuminate\Routing\Router;
|
*/
// 对外列表
Route::get('/', ["\\App\\Http\\Controllers\\ProgramQueryController","index"]);
Route::get('/', ["\\App\\Http\\Controllers\\CommentQueryController","index"]);
Route::get('/comments', ["\\App\\Http\\Controllers\\CommentQueryController","index"]);
Route::get('/video/{video}', ["\\App\\Http\\Controllers\\VideoQueryController","info"]);
Route::get('/programs', ["\\App\\Http\\Controllers\\ProgramQueryController","index"]);