From ad4f86b507d907d610c830e0ed26997340199b1b Mon Sep 17 00:00:00 2001 From: coder Date: Tue, 14 Apr 2026 18:02:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E8=88=AA=E6=A0=8F=E4=B8=8B?= =?UTF-8?q?=E6=96=B9=E6=B7=BB=E5=8A=A0=E6=98=BE=E7=9C=BC=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - guest: 灰色提示登录注册 - free: 蓝色提示升级 - vip_basic: 绿色显示权益和到期 - vip_pro: 金色显示权益和升级提示 - vip_enterprise: 深色显示无限权益 - admin: 红色显示后台入口 --- templates/index.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/templates/index.html b/templates/index.html index 056eb74..a396373 100644 --- a/templates/index.html +++ b/templates/index.html @@ -37,6 +37,45 @@ + + {% if user %} + {% if user.user_type == 'vip_enterprise' %} +
+ 👑 企业会员 | + 无限翻译次数 | 到期:{{ user.membership_expire.strftime('%Y-%m-%d') if user.membership_expire else '永久' }} +
+ {% elif user.user_type == 'vip_pro' %} +
+ ⭐ 专业会员 | + 每日200次 · 最多500页 | 到期:{{ user.membership_expire.strftime('%Y-%m-%d') if user.membership_expire else '永久' }} + | 升级企业会员享无限 +
+ {% elif user.user_type == 'vip_basic' %} +
+ 💚 基础会员 | + 每日50次 · 最多100页 | 到期:{{ user.membership_expire.strftime('%Y-%m-%d') if user.membership_expire else '永久' }} + | 升级享更多权益 +
+ {% elif user.user_type == 'free' %} +
+ 👤 免费用户 | + 每日10次 · 最多50页 | 升级会员解锁更多功能 +
+ {% elif user.user_type == 'admin' %} +
+ 🔧 管理员 | + 完整权限 | 进入后台管理 +
+ {% endif %} + {% else %} +
+ 👁 访客模式 | + 每日仅3次 · 最多20页 · 功能受限 | + 登录获取更多权益 或 + 免费注册 +
+ {% endif %} +