You've already forked lubo_comment_query
弹幕查询修改
This commit is contained in:
@ -1,51 +1,57 @@
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>录播弹幕查询</title>
|
||||
<title>稿件查询</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ mix('/css/app.css') }}" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
@include("common.header")
|
||||
<table class="table-auto border-collapse w-full lg:border lg:border-black">
|
||||
<thead>
|
||||
<tr class="border border-black sticky bg-white lg:static top-0 left-0 right-0">
|
||||
<th class="border border-black">视频标题</th>
|
||||
<th class="border border-black">弹幕条数</th>
|
||||
<th class="border border-black hidden lg:table-cell">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($video_list as $video)
|
||||
<tr>
|
||||
<td class="border text-sm lg:text-current">
|
||||
@if($video->danmakus_count > 0)
|
||||
<a class="text-blue-600 lg:text-current underline lg:no-underline break-all" href="/danmakus/{{$video->bvid}}">{{$video->title}}</a>
|
||||
@if($video->bilibili_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站" title="包含B站直播弹幕">
|
||||
@endif
|
||||
@if($video->ixigua_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/ixigua.ico" alt="西瓜视频" title="包含西瓜视频直播弹幕">
|
||||
@endif
|
||||
@if($video->douyin_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/douyin.ico" alt="抖音" title="包含抖音直播弹幕">
|
||||
@endif
|
||||
@else
|
||||
{{$video->title}}
|
||||
@foreach($video_list as $video)
|
||||
<div class="max-w xl:max-w-5xl lg:max-w-2xl md:max-w-lg mx-2 md:mx-auto px-2 md:px-4 py-4 bg-white border border-gray-200 rounded-lg shadow-md my-4 dark:bg-gray-800">
|
||||
<div>
|
||||
<a href="/video/{{$video->id}}" class="text-2xl font-bold text-gray-700 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 hover:underline" tabindex="0" role="link">{{$video->title}}</a>
|
||||
<div class="px-2 md:px-4 lg:px-8 mt-2 flex items-center justify-between">
|
||||
<span class="text-sm font-light text-gray-600 dark:text-gray-400 hidden md:block">投稿时间:{{$video->created_at}}</span>
|
||||
</div>
|
||||
<p class="px-2 md:px-4 lg:px-8 mt-2 text-gray-600 dark:text-gray-300">视频时长:{{$video->total_duration}}</p>
|
||||
@if($video->danmakus_count > 0)
|
||||
<p class="px-2 md:px-4 lg:px-8 mt-2 text-gray-600 dark:text-gray-300">
|
||||
弹幕数量:{{$video->danmakus_count}}
|
||||
@if($video->bilibili_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站" title="包含B站直播弹幕">
|
||||
@endif
|
||||
</td>
|
||||
<td class="border">{{$video->danmakus_count}}</td>
|
||||
<td class="border hidden lg:table-cell">
|
||||
@if($video->danmakus_count > 0)
|
||||
<a class="text-blue-600 underline" href="/danmakus/{{$video->bvid}}">详情</a>
|
||||
@else
|
||||
无弹幕
|
||||
@if($video->ixigua_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/ixigua.ico" alt="西瓜视频" title="包含西瓜视频直播弹幕">
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@if($video->douyin_danmakus_count > 0)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/douyin.ico" alt="抖音" title="包含抖音直播弹幕">
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
@if($video->programs_count > 0)
|
||||
<p class="px-2 md:px-4 lg:px-8 mt-2 text-gray-600 dark:text-gray-300">节目数量:{{$video->programs_count}}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4 mt-4">
|
||||
<a href="https://www.bilibili.com/video/{{$video->bvid}}" target="_blank" class="inline-flex text-blue-600 dark:text-blue-400 hover:underline" tabindex="0" role="link">
|
||||
去B站浏览
|
||||
<svg class="w-5 h-5 ml-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"></path><path d="M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"></path></svg>
|
||||
</a>
|
||||
@if($video->danmakus_count > 0)
|
||||
<a href="/danmakus/{{$video->bvid}}" class="inline-flex text-blue-600 dark:text-blue-400 hover:underline" tabindex="0" role="link">
|
||||
直播弹幕明细
|
||||
</a>
|
||||
@endif
|
||||
@if($video->programs_count > 0)
|
||||
<a href="/video/{{$video->id}}" class="inline-flex text-blue-600 dark:text-blue-400 hover:underline" tabindex="0" role="link">
|
||||
节目列表
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
{{$video_list->links()}}
|
||||
@include("common.footer")
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user