You've already forked lubo_comment_query
组件抽象
This commit is contained in:
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