You've already forked lubo_comment_query
添加点播信息建设内容
This commit is contained in:
@ -0,0 +1,58 @@
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>录播节目点播信息修改</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
@include("common.header")
|
||||
<form class="w-full lg:w-1/2 lg:ml-6 border-2" action="" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="id" value="{{$append->id}}">
|
||||
<input type="hidden" name="program_id" value="{{$program->id}}">
|
||||
@if($program->video_pivots->last()->stop_image)
|
||||
<label class="block my-2">
|
||||
结束图像
|
||||
<img src="{{$program->video_pivots->last()->stop_image}}" alt="结束图片">
|
||||
</label>
|
||||
@endif
|
||||
<label class="block my-2">
|
||||
追加内容(点播可不填)
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="name" value="{{$append->name}}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
点播老板
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="from" value="{{$append->from}}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
是否点播(不是追加)
|
||||
<input class="form-checkbox" type="checkbox" name="is_original" value="1" @if($append->is_original == 1) checked @endif>
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
分
|
||||
<input class="form-input border-0 border-b-2 w-full" type="number" step="0.5" name="price" value="{{$append->price}}">
|
||||
</label>
|
||||
<label class="block my-2">
|
||||
补充说明
|
||||
<input class="form-input border-0 border-b-2 w-full" type="text" name="append" value="{{$append->append}}">
|
||||
</label>
|
||||
<div class="block my-2 text-center">
|
||||
<input class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" type="submit">
|
||||
</div>
|
||||
<div class="block my-2">
|
||||
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" target="_blank"
|
||||
href="https://www.bilibili.com/video/{{$program->video_pivots->first()->video_bvid}}?p={{$program->video_pivots->first()->start_part}}&t={{$program->video_pivots->first()->start_sec}}"
|
||||
title="P{{$program->video_pivots->first()->start_part}}#{{$program->video_pivots->first()->start_time}}"
|
||||
>打开至开始位置</a>
|
||||
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" target="_blank"
|
||||
href="https://www.bilibili.com/video/{{$program->video_pivots->last()->video_bvid}}?p={{$program->video_pivots->last()->stop_part}}&t={{$program->video_pivots->last()->stop_sec}}"
|
||||
title="P{{$program->video_pivots->last()->stop_part}}#{{$program->video_pivots->last()->stop_time}}"
|
||||
>打开至结束位置</a>
|
||||
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white"
|
||||
href="{{route('program.construct.append.list', ['program'=>$program->id])}}"
|
||||
>返回列表</a>
|
||||
</div>
|
||||
</form>
|
||||
@include("common.footer")
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,66 @@
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>录播节目点播信息维护</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
@include("common.header")
|
||||
<a href="{{route("program.construct.append.add", ["program"=>$program->id])}}">新增</a>
|
||||
<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">
|
||||
<td>老板</td>
|
||||
<td>类型</td>
|
||||
<td>要求</td>
|
||||
<td>分值</td>
|
||||
<td>补充说明</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($appends as $append)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{route("program.construct.append.edit", ["program"=>$append->program_id, "append"=>$append->id])}}">编辑</a>
|
||||
@switch($append->platform_id)
|
||||
@case(1)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站">
|
||||
<a class="underline" href="https://space.bilibili.com/{{$append->from_mid}}" target="_blank">{{$append->from}}</a>
|
||||
@break
|
||||
@case(2)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/ixigua.ico" alt="西瓜视频">
|
||||
<a class="underline" href="https://www.ixigua.com/home/{{$append->from_mid}}/" target="_blank">{{$append->from}}</a>
|
||||
@break
|
||||
@case(3)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/douyin.ico" alt="抖音">
|
||||
{{$append->from}}
|
||||
@break
|
||||
@default
|
||||
{{$append->from}}
|
||||
@break
|
||||
@endswitch
|
||||
</td>
|
||||
<td>
|
||||
@if($append->is_original)
|
||||
点播
|
||||
@else
|
||||
追加
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($append->is_original)
|
||||
点播
|
||||
@else
|
||||
{{$append->name}}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{$append->price}}</td>
|
||||
<td>{{$append->append}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@include("common.footer")
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user