From 5a5ec0ee2cb57b461c0b9f73d266bb7e4ac03531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Wed, 29 Apr 2026 21:23:33 +0800 Subject: [PATCH] =?UTF-8?q?v0.1.1=20-=20=E8=AE=A4=E8=B4=AD=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96=EF=BC=88=E5=B7=B2=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E7=BE=A4=E7=81=B0=E8=89=B2=E6=98=BE=E7=A4=BA=E3=80=81=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=98=BE=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/VERSION.json | 51 ++++++--------------------------- frontend/src/pages/Purchase.jsx | 31 +++++++++++++------- 2 files changed, 29 insertions(+), 53 deletions(-) diff --git a/config/VERSION.json b/config/VERSION.json index e9f1fd4..6b8738e 100644 --- a/config/VERSION.json +++ b/config/VERSION.json @@ -1,55 +1,22 @@ { - "version": "0.0.12", - "updated": "2026-04-24", + "version": "0.1.1", + "updated": "2026-04-29", "modules": { "frontend": { - "version": "0.0.12", + "version": "0.1.1", "pages": { - "Add": "0.0.1", - "Admin": "0.0.1", - "Detail": "0.0.1", - "Edit": "0.0.1", - "Home": "0.0.7", - "List": "0.0.1", - "Login": "0.0.1", - "News": "0.0.8", - "News_YichensBoard": "0.0.1", - "Settings": "0.0.1", - "Stats": "0.0.1", - "YichensBoard": "0.0.3" - }, - "config": { - "version": "0.0.7" + "Home": "0.1.0", + "Purchase": "0.1.1" } }, "backend": { - "version": "0.0.12", + "version": "0.1.1", "routers": { - "auth": "0.0.1", - "collections": "0.0.1", - "deal": "0.0.1", - "information": "0.0.2", - "news": "0.0.1", - "ocr": "0.0.1", - "operations": "0.0.1", - "seek": "0.0.9", - "users": "0.0.1", - "yichens": "0.0.1" + "purchase": "0.1.0" }, - "app": { - "core": "0.0.1", - "models": "0.0.1", - "schemas": "0.0.1", - "services": "0.0.1", - "utils": "0.0.1" + "models": { + "purchase": "0.1.0" } } - }, - "changelog": { - "0.0.9": [ - "Home.jsx: 修复寻配号数据统计API", - "News.jsx: 寻配号功能稳定版(自有匹配+网络匹配缓存)", - "seek.py: 路由优化,留言功能迁移,缓存机制" - ] } } \ No newline at end of file diff --git a/frontend/src/pages/Purchase.jsx b/frontend/src/pages/Purchase.jsx index 3f28207..f0ec259 100644 --- a/frontend/src/pages/Purchase.jsx +++ b/frontend/src/pages/Purchase.jsx @@ -199,27 +199,35 @@ function Purchase() { } // 渲染认购群卡片 - const renderGroupCard = (group, showJoin = false) => ( + const renderGroupCard = (group, showJoin = false) => { + const isMyGroup = myGroups.some(g => g.id === group.id) + const isClosed = group.status === 'closed' + return (
viewGroupDetail(group.id)} style={{ - background: 'linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%)', + background: isClosed ? 'rgba(80,80,80,0.3)' : isMyGroup ? 'linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%)' : 'linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%)', borderRadius: '12px', padding: '16px', - border: '1px solid rgba(59,130,246,0.2)', + border: isClosed ? '1px solid rgba(100,100,100,0.3)' : isMyGroup ? '1px solid rgba(16,185,129,0.2)' : '1px solid rgba(59,130,246,0.2)', cursor: 'pointer', - marginBottom: '12px' + marginBottom: '12px', + opacity: isClosed ? 0.7 : 1 }} >
-
{group.name}
+
{group.name} {isClosed && '(已结束)'}
- 群主: {group.creator_name} · {group.total_members}人参与 + 编码:{group.group_code} · 群主:{group.creator_name} · {group.total_members}人参与
- {showJoin && ( + {isClosed ? ( +
已结束
+ ) : isMyGroup ? ( +
已加入
+ ) : showJoin && (
- ) + ) + } // 群详情弹窗 if (selectedGroup) { @@ -269,7 +278,7 @@ function Purchase() { ←
-
{selectedGroup.name}
+
{selectedGroup.name} {selectedGroup.status === 'closed' ? '(已结束)' : ''}
群主: {selectedGroup.creator_name} · {selectedGroup.status === 'active' ? '进行中' : '已结束'}
@@ -513,7 +522,7 @@ function Purchase() { cursor: 'pointer' }} > - 我参与的 ({myGroups.length}) + 我的认购 ({myGroups.length})