新增朋友圈作者筛选;新增前台登入登出;深度优化

This commit is contained in:
anian
2026-03-15 18:05:44 +08:00
parent b387ea885c
commit e716097e07
19 changed files with 2632 additions and 1633 deletions
+27 -4
View File
@@ -13,6 +13,29 @@
<div class="blog_list">
<div class="blog_list_inner" uk-height-viewport="offset-top: true">
<!-- 作者姓名导航栏(参照图库风格新增) -->
<div class="friends_cat_nav">
<ul id="cat_nav_items">
<li>
<!-- 全部按钮 -->
<a th:attr="data-href=@{/friends}"
th:classappend="${#lists.isEmpty(param.author) ? 'active' : ''}" class="cat-link">
全部<span></span>
</a>
</li>
<!-- 遍历所有作者 -->
<th:block th:each="author : ${authors}">
<li>
<a th:attr="data-href=@{|/friends?author=${author}|}"
th:classappend="${#strings.equals(param.author, author) ? 'active' : ''}"
th:text="${author}" class="cat-link">
<span></span>
</a>
</li>
</th:block>
</ul>
</div>
<div id="post_item" class="moment_list">
<div th:each="postInfo, iterstat: ${friends.items}"
@@ -66,9 +89,9 @@
<th:block th:if="${friends.totalPages>1}">
<div id="t_pagination">
<div class="post-paging"
th:if="${friends.hasNext()}"
th:with="_page = ${friends.page+1}">
<a th:data="${'/friends/page/'+_page}"
th:if="${friends.hasNext()}">
<!-- 直接使用后端生成的完整 nextUrl -->
<a th:data="${friends.nextUrl}"
th:text="${theme.config.base_set.site_page}">
</a>
</div>
@@ -87,4 +110,4 @@
</div>
</th:block>
</html>
</html>