From 06c8f549d37f87b1228cdad33405f88e70d1c4c3 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Tue, 8 Jul 2025 09:31:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=94=B6=E8=97=8F=E5=8A=9F=E8=83=BD):=20?= =?UTF-8?q?=E4=B8=BA=E5=BA=94=E7=94=A8=E5=92=8C=E7=89=88=E6=9C=AC=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=94=B6=E8=97=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在应用列表、详情页和版本列表中添加收藏按钮 - 使用localStorage存储用户收藏的应用数据 - 添加收藏/取消收藏的交互提示 - 统一调整搜索按钮的样式尺寸 --- developer_apps.php | 1 + index.php | 3 ++- tags.php | 2 +- version_list.php | 18 ++++++++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/developer_apps.php b/developer_apps.php index 679ce33..a500e0c 100644 --- a/developer_apps.php +++ b/developer_apps.php @@ -119,6 +119,7 @@ $resultApps = $conn->query($sqlApps);

查看详情 + diff --git a/index.php b/index.php index a0ccfd7..d029bf9 100644 --- a/index.php +++ b/index.php @@ -120,7 +120,7 @@ if (!isset($conn) || !$conn instanceof mysqli) {
- +
@@ -201,6 +201,7 @@ if (!isset($conn) || !$conn instanceof mysqli) { echo '

'. substr(htmlspecialchars($row['description']), 0, 100) . '...

'; echo '

评分: '. round($row['avg_rating'] ?? 0, 1) . '/5

'; echo '查看详情'; + echo ''; echo ''; } } else { diff --git a/tags.php b/tags.php index 78726f0..2b135f4 100644 --- a/tags.php +++ b/tags.php @@ -129,7 +129,7 @@ $tagResult = $conn->query("SELECT id, name FROM tags ORDER BY name");
- +
diff --git a/version_list.php b/version_list.php index 3096d04..45b746b 100644 --- a/version_list.php +++ b/version_list.php @@ -121,6 +121,7 @@ while ($row = $result->fetch_assoc()) {
版本
发布日期:

+ @@ -130,6 +131,23 @@ while ($row = $result->fetch_assoc()) { + + +