feat: 用户个人中心功能

- 账户余额显示和管理
- 充值功能(模拟模式)
- 退款申请功能(需管理员审核)
- 账户流水记录查看
- 会员购买记录查看
- 使用统计展示
- 新增模型:UserRecharge, UserRefund, MembershipPurchase, AccountTransaction
- User模型添加balance字段
- 导航栏添加个人中心入口
This commit is contained in:
2026-04-14 18:29:46 +08:00
parent 436ac2cb66
commit 4f33e92abf
5 changed files with 699 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
<li class="nav-item"><a class="nav-link" href="/pricing">会员套餐</a></li>
{% if user %}
<li class="nav-item"><a class="nav-link" href="/history">翻译历史</a></li>
<li class="nav-item"><a class="nav-link" href="/profile">个人中心</a></li>
{% endif %}
</ul>
<div class="navbar-nav">