You've already forked lubo_comment_query
组件抽象
This commit is contained in:
19
resources/views/components/append.blade.php
Normal file
19
resources/views/components/append.blade.php
Normal file
@ -0,0 +1,19 @@
|
||||
@if($append->is_original)
|
||||
<div>
|
||||
<x-links.user_link :name="$append->from" :plt-id="$append->platform_id" :mid="$append->from_mid"></x-links.user_link>
|
||||
老板点播
|
||||
<span title="一分10块">{{$append->price}}分</span>
|
||||
@if($append->append)
|
||||
<span>({{$append->append}})</span>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<div class="my-2">
|
||||
<x-links.user_link :name="$append->from" :plt-id="$append->platform_id" :mid="$append->from_mid"></x-links.user_link>
|
||||
老板追加@if($append->broadcast!=0)常驻留言@endif:{{$append->name}}
|
||||
<span title="一分10块">{{$append->price}}分</span>
|
||||
@if($append->append)
|
||||
<span>({{$append->append}})</span>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
27
resources/views/components/links/user_link.blade.php
Normal file
27
resources/views/components/links/user_link.blade.php
Normal file
@ -0,0 +1,27 @@
|
||||
<span>
|
||||
@switch($plt_id)
|
||||
@case(1)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站">
|
||||
@isset($mid)
|
||||
<a class="underline" href="https://space.bilibili.com/{{$mid}}" target="_blank">{{$name}}</a>
|
||||
@else
|
||||
{{$name}}
|
||||
@endisset
|
||||
@break
|
||||
@case(2)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/ixigua.ico" alt="西瓜视频">
|
||||
@isset($mid)
|
||||
<a class="underline" href="https://www.ixigua.com/home/{{$mid}}/" target="_blank">{{$name}}</a>
|
||||
@else
|
||||
{{$name}}
|
||||
@endisset
|
||||
@break
|
||||
@case(3)
|
||||
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/douyin.ico" alt="抖音">
|
||||
{{$name}}
|
||||
@break
|
||||
@default
|
||||
{{$name}}
|
||||
@break
|
||||
@endswitch
|
||||
</span>
|
7
resources/views/components/links/video_link.blade.php
Normal file
7
resources/views/components/links/video_link.blade.php
Normal file
@ -0,0 +1,7 @@
|
||||
<a class="block"
|
||||
target="_blank"
|
||||
href="https://www.bilibili.com/video/{{$bvid}}?p={{$part}}@if($time)&t={{$sec}}@endif"
|
||||
title="P{{$part}}@if($time)#{{$time}}@endif"
|
||||
>
|
||||
{{ $slot }}
|
||||
</a>
|
Reference in New Issue
Block a user