{% extends "base.html" %} {% block title %}个人设置{% endblock %} {% block content %}

个人设置

管理您的个人信息和账户设置

👤 用户信息

用户名: {{ session.username }}
权限级别: {{ '管理员' if session.permission == 0 else '普通用户' }}

🔒 修改密码

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
密码长度至少6位
{% endblock %} .permission-admin { background: #e3f2fd; color: #1976d2; } .permission-user { background: #f3e5f5; color: #7b1fa2; } .password-form { background: white; border: 2px solid #e9ecef; border-radius: 12px; padding: 25px; } .password-form h3 { color: #333; margin-bottom: 20px; font-size: 18px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; color: #555; font-weight: 500; } .form-group input { width: 100%; padding: 12px 16px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 16px; transition: all 0.3s ease; background: #f8f9fa; } .form-group input:focus { outline: none; border-color: #667eea; background: white; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .btn { width: 100%; padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); } .btn-secondary { background: #6c757d; color: white; margin-top: 15px; } .btn-secondary:hover { background: #5a6268; transform: translateY(-2px); } .flash-messages { margin-bottom: 20px; } .flash-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; font-weight: 500; } .flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } .navigation-links { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e9ecef; } .nav-link { display: inline-block; margin: 0 15px; color: #667eea; text-decoration: none; font-weight: 500; transition: color 0.3s ease; } .nav-link:hover { color: #764ba2; text-decoration: underline; } @media (max-width: 600px) { .profile-container { padding: 30px 20px; margin: 10px; } .profile-header h1 { font-size: 24px; } .info-item { flex-direction: column; align-items: flex-start; gap: 5px; } }
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}

个人设置

管理您的账户信息和密码

账户信息

用户名: {{ session.user_id }}
权限级别: {{ '管理员' if session.permission == 0 else '普通用户' }}

修改密码