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 %} +