From 63f13aec7376f0663cd8258e6dd4af59414419b4 Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Sat, 15 Jul 2023 21:41:51 +0800 Subject: [PATCH] =?UTF-8?q?Modify:=20=E4=BC=98=E5=8C=96=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=EF=BC=8C=E5=89=8D=E7=AB=AF=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加了分割线以及标题栏,加入邮件发送模板有关友链验证通过 添加: - link-console-verify.blade.php 修改: - check.blade.php - edit.blade.php - list.blade.php Signed-off-by: XiaoLFeng --- .../console/friends-link/check.blade.php | 73 ++++++++++--------- .../views/console/friends-link/edit.blade.php | 33 +++++++-- .../views/console/friends-link/list.blade.php | 24 ++++-- .../views/mail/link-console-verify.blade.php | 69 ++++++++++++++++++ 4 files changed, 155 insertions(+), 44 deletions(-) create mode 100644 resources/views/mail/link-console-verify.blade.php diff --git a/resources/views/console/friends-link/check.blade.php b/resources/views/console/friends-link/check.blade.php index b7713c2..522e7ee 100644 --- a/resources/views/console/friends-link/check.blade.php +++ b/resources/views/console/friends-link/check.blade.php @@ -35,32 +35,38 @@ class="inline-flex items-center p-2 mt-2 ml-3 text-sm text-gray-500 rounded-lg s
@if(!empty($blog))
+ + @endforeach @else -

暂无待审核用户

+

+ 暂无待审核用户

去去其他地方逛逛吧

@endif @@ -85,17 +91,18 @@ class="inline-flex items-center p-2 mt-2 ml-3 text-sm text-gray-500 rounded-lg s + diff --git a/resources/views/console/friends-link/edit.blade.php b/resources/views/console/friends-link/edit.blade.php index 7250fdd..14efcdd 100644 --- a/resources/views/console/friends-link/edit.blade.php +++ b/resources/views/console/friends-link/edit.blade.php @@ -28,7 +28,7 @@ class="inline-flex items-center p-2 mt-2 ml-3 text-sm text-gray-500 rounded-lg s
@include('console.modules.personal')
-
友链修改
+
{{ $subDescriptionForLine }}
@@ -194,7 +194,7 @@ class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus

-
+
@@ -248,6 +248,19 @@ class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus
+
+ +
+
+ +
+ +
+
@@ -258,12 +271,20 @@ class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-blue-800"> - 提交修改 + @if($subDescriptionForLine == '友链修改') + 提交修改 + @else + 审核通过 + @endif
@@ -397,11 +418,11 @@ function ajax() { async: true, method: "POST", data: $('#FormData').serialize(), - url: '{{ route('api.link.console.edit') }}', + url: '@if($subDescriptionForLine == '友链修改') {{ route('api.link.console.edit') }} @else {{ route('api.link.console.check') }} @endif', dataType: "json", success: function (returnData) { if (returnData.output === "Success") { - Toast.toggle('友链修改成功', ''); + Toast.toggle('操作成功', ''); setTimeout(function () { location.href = '{{ route('console.friends-link.list') }}'; }, 3000); diff --git a/resources/views/console/friends-link/list.blade.php b/resources/views/console/friends-link/list.blade.php index 24e11ef..57bcf80 100644 --- a/resources/views/console/friends-link/list.blade.php +++ b/resources/views/console/friends-link/list.blade.php @@ -163,14 +163,28 @@ class="w-10 h-10 p-1 rounded-full ring-2 {{ $blogColor[$blogValue->blogSetColor-
- - 查找 + + 查找 +
-

当前友链 {{ $blogFriendsTotal }}

-

超级友链 {{ $blogFriendsBest }}

-

待审友链 {{ $blogFriendsCheck }}

+

当前友链 {{ $blogFriendsTotal }}

+

超级友链 {{ $blogFriendsBest }}

+

待审友链 {{ $blogFriendsCheck }}

diff --git a/resources/views/mail/link-console-verify.blade.php b/resources/views/mail/link-console-verify.blade.php new file mode 100644 index 0000000..69ab50b --- /dev/null +++ b/resources/views/mail/link-console-verify.blade.php @@ -0,0 +1,69 @@ + + + + + Mail + + + + + + + + + + + + +
{{ env('APP_NAME') }}
+ + + + + + + + + + +
+ 时间: {{ date('Y-m-d H:i:s') }} +
+ Dear. {{ $userEmail }} +
+ 您好 {{ $userBlog }} + 的站长:{{ $userEmail }}
+ 您在本博客({{ env('APP_NAME') }})申请的友链已审核通过!
+
+ 欢迎一直交流哦~ +
+ 请在确认一次您的信息是否正确:
+
    +
  • 博主邮箱:{{ $userEmail }}
  • +
  • 贵站名字:{{ $userBlog }}
  • +
  • 贵站地址:{{ $userUrl }}
  • +
  • 图片地址:{{ $userIcon }}
  • +
  • 贵站介绍:{{ $userDescription }}
  • + @if(!empty($userRemark)) +
  • 备注内容:{{ $userRemark }}
  • + @endif + @if(!empty($checkRssJudge)) +
  • RSS地址:{{ $userRSS }}
  • + @endif +
+
+
+ + + + +
+ © 2022 - {{ date('Y') }}. {{ env('APP_NAME') }} All Rights Reserved.
+ 本邮件为自动发出,请勿直接回复 +
+
+ + + +