Skip to content

Commit

Permalink
更新:优化个人主页视图
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Jun 11, 2023
1 parent 34e3611 commit 21d7942
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/Plugins/User/resources/views/data.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ class="card-cover card-cover-blurred"
</svg>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" user-click="user_follow"
user-id="{{ $user->id }}">
<span>关注</span>
</a>
@if((int)$user->id!==auth()->id())
@if((int)$user->id===auth()->id())
<a class="dropdown-item" href="/user/setting">
个人设置
</a>
@else
<a class="dropdown-item" href="/users/pm/{{$user->id}}">
私信
</a>
<a class="dropdown-item" user-click="user_follow"
user-id="{{ $user->id }}">
<span>关注</span>
</a>
@endif
</div>
</div>
Expand Down

0 comments on commit 21d7942

Please sign in to comment.