From 20670f45e19b7dda2db7c8b7d9a49768383aa9d6 Mon Sep 17 00:00:00 2001 From: zhongjy001 Date: Tue, 10 Mar 2026 10:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/tool_index.css | 6 +-- .../components/portal/tool-grid.blade.php | 51 ++++++++++--------- resources/views/public/tools/index.blade.php | 50 ++---------------- 3 files changed, 33 insertions(+), 74 deletions(-) diff --git a/resources/css/tool_index.css b/resources/css/tool_index.css index f3c6b33..eaf9d1c 100644 --- a/resources/css/tool_index.css +++ b/resources/css/tool_index.css @@ -336,7 +336,7 @@ body { background: #ffffff !important; } .tool-card { border: 1px solid #e5e7eb; - border-radius: 10px; + border-radius: 4px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: .7rem .75rem; @@ -350,9 +350,7 @@ body { background: #ffffff !important; } } .tool-card:hover { - transform: translateY(-3px); - box-shadow: 0 8px 20px rgba(0,0,0,0.12); - border-color: #d1d5db; + border-color: #306AF1; } .tool-card-icon { diff --git a/resources/views/components/portal/tool-grid.blade.php b/resources/views/components/portal/tool-grid.blade.php index 5185d17..1c0239d 100644 --- a/resources/views/components/portal/tool-grid.blade.php +++ b/resources/views/components/portal/tool-grid.blade.php @@ -1,29 +1,34 @@ @props([ - 'tools' => [], - 'cardClass' => 'tool-card', - 'nameClass' => 'tool-card-name', - 'metaClass' => 'tool-card-meta', - 'tagClass' => 'tool-card-tag', +'tools' => [], +'cardClass' => 'tool-card', +'nameClass' => 'tool-card-name', +'metaClass' => 'tool-card-meta', +'tagClass' => 'tool-card-tag', +'showMeta' => 'true', +'showFooter' => 'true', ])
@foreach($tools as $tool) - - @if($tool->logo_url) -
- {{ $tool->name }} -
- @endif -
{{ $tool->name }}
-
{{ $tool->category?->name ?? '未分类' }} · {{ $tool->pricing_type }}
- @if($tool->summary) -

{{ $tool->summary }}

- @endif - -
+ + @if($tool->logo_url) +
+ {{ $tool->name }} +
+ @endif +
{{ $tool->name }}
+ @if($showMeta) +
{{ $tool->category?->name ?? '未分类' }} · {{ $tool->pricing_type }}
+ @endif + @if($tool->summary) +

{{ $tool->summary }}

+ @endif + @if($showFooter) + + @endif +
@endforeach -
- + \ No newline at end of file diff --git a/resources/views/public/tools/index.blade.php b/resources/views/public/tools/index.blade.php index 458f71a..e75c3cb 100644 --- a/resources/views/public/tools/index.blade.php +++ b/resources/views/public/tools/index.blade.php @@ -90,51 +90,7 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge - @if(data_get($channelModule, 'enabled', true) === true) -
-
-

{{ data_get($channelModule, 'title', '频道卡片') }}

-
- -
- - @forelse($channelItems as $channel) - - {{ $channel['title'] ?: '频道入口' }} - - @empty -
频道入口
- @endforelse -
-
- @endif - @foreach($moduleOrder as $moduleKey) - @if($moduleKey === 'promo_banners' && data_get($bannerModule, 'enabled', true) === true) -
-
-

{{ data_get($bannerModule, 'title', '横幅推荐') }}

- 查看更多 -
- -
- @forelse($bannerItems as $banner) - - {{ $banner['title'] ?: '精选推荐' }} - {{ $banner['subtitle'] ?: '查看详情' }} - - @empty -
暂无横幅推荐请在后台配置
- @endforelse -
-
- @endif @if($moduleKey === 'hot_tools' && data_get($hotModule, 'enabled', true) === true)
@@ -143,7 +99,7 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge @php($hotMore = data_get($hotModule, 'more_url') ?: route('tools.list', ['tab' => 'recommended'])) 查看更多 - +
@endif @@ -154,7 +110,7 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge @php($latestMore = data_get($latestModule, 'more_url') ?: route('tools.list', ['tab' => 'latest'])) 查看更多 - + @endif @@ -167,7 +123,7 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge @if($section['tools']->isNotEmpty()) - + @else

该分类暂未收录工具

@endif