diff --git a/ui/README.md b/ui/README.md index 9cad8a5..7126ad9 100644 --- a/ui/README.md +++ b/ui/README.md @@ -35,10 +35,10 @@ python3 -m http.server 8000 --directory ui 1. 仪表盘 Dashboard — 点数余额、本月用量、共享收益、最近交易 2. 模型市场 Marketplace — 模型浏览、搜索、厂商筛选、排序(按价格/上下文) 3. 共享管理 Sharing — 默认只显示统计 + 我的共享列表(key 脱敏展示,可暂停/恢复/重新上架/彻底删除);点击"+ 添加 / 上架新 key"展开上架表单(须填 API Key,平台加密托管;分享者只填声明额度,单价由平台按模型定价自动计算并展示参考价),提交成功或取消后自动收起 -4. 钱包 Wallet — 点数余额、充值/提现占位入口、收支明细(MRT 风格表格:列排序/列筛选/分页/每页行数切换) -5. 交易记录 Transactions — 消费/收益/充值/提现,Tab 筛选 + MRT 风格表格(列排序/列筛选/分页,与 Tab 叠加生效) -6. 设置 Settings — 账户、API Key 管理(可生成)、通知、偏好 -7. 管理视图 Admin(管理员角色专属)— Key 池管理(添加/撤销)、成员管理(配额调整)、用量报表(按模型/成员)、组织设置(含"关闭外部注册"企业部署开关) +4. 钱包 Wallet — 点数余额、充值/提现占位入口;收支明细已去重,统一到【交易记录】(页内提供跳转提示) +5. 交易记录 Transactions — 消费/收益/充值/提现唯一明细入口,Tab 筛选 + MRT 风格表格(列排序/列筛选/分页,与 Tab 叠加生效) +6. 设置 Settings — 账户、API Key 管理(完整增删改查:生成带名字、改名、删除需确认「删除后该 key 立即失效」、按名字搜索、一键复制完整 key——列表脱敏展示 atk_live_****xxxx,复制为完整值;file:// 下 clipboard API 受限时降级为选中+Ctrl/Cmd+C)、通知、偏好 +7. 管理视图 Admin(管理员角色专属)— Key 池管理(添加/撤销)、成员管理(改部门:下拉可选部门或"未分配";任意金额充值,正整数校验;新注册成员默认未分配部门)、用量报表(按模型/成员)、组织管理(部门列表 + 部门增删改查 + 每月点数分配,含部门汇总统计,未分配成员不计入任何部门;保留组织设置卡片,含"关闭外部注册"企业部署开关) ## 文件结构 diff --git a/ui/css/style.css b/ui/css/style.css index a114fa1..7336cc4 100644 --- a/ui/css/style.css +++ b/ui/css/style.css @@ -70,6 +70,7 @@ body { } .btn-danger:hover { background: rgba(229, 102, 106, 0.12); border-color: var(--danger); } .btn-block { width: 100%; } +.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; } .input, select.input { width: 100%; @@ -371,7 +372,9 @@ select.input option { background: var(--bg-card); } .wallet-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; } .balance-big { font-size: 42px; font-weight: 800; color: var(--accent-text); line-height: 1.2; } -.wallet-actions { display: flex; gap: 10px; } +.wallet-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } +.wallet-note { font-size: 12px; } +.wallet-hint { color: var(--text-mute); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); diff --git a/ui/index.html b/ui/index.html index 465331e..148d180 100644 --- a/ui/index.html +++ b/ui/index.html @@ -167,7 +167,7 @@

我的共享列表 My listings

@@ -190,7 +192,7 @@

收支明细 Ledger