messages.html 1.7 KB

12345678910111213141516171819202122232425262728
  1. {% extends "base.html" %}
  2. {% set title = "消息通知" %}
  3. {% set page = "messages" %}
  4. {% block content %}
  5. <section class="page-header" style="background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); color: white; padding: 60px 20px; border-radius: 20px; text-align: center; margin-bottom: 32px; box-shadow: var(--shadow-lg);">
  6. <h1 style="font-size: 2.5rem; margin-bottom: 16px; color: white;"><i class="ri-notification-3-line" style="margin-right:8px; opacity:0.9;"></i>消息通知</h1>
  7. <p style="font-size: 1.1rem; opacity: 0.9; max-width: 720px; margin: 0 auto;">查看系统通知与会员变更提醒</p>
  8. </section>
  9. <div id="messageMsg" class="form-msg" style="display:none; margin-bottom: 24px;"></div>
  10. <div class="card" style="padding: 32px; border-radius: 16px; box-shadow: var(--shadow-md);">
  11. <div style="display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-bottom: 16px;">
  12. <h3 style="display: flex; align-items: center; gap: 8px; margin: 0;">
  13. <i class="ri-mail-open-line" style="color: var(--brand);"></i> 我的消息
  14. </h3>
  15. <div style="display:flex; align-items:center; gap: 8px;">
  16. <span id="messageUnreadBadge" class="badge badge-warning" style="display:none;"></span>
  17. <button id="messageUnreadOnlyBtn" type="button" class="btn btn-sm">仅未读</button>
  18. <button id="messageAllBtn" type="button" class="btn btn-sm btn-primary">全部</button>
  19. </div>
  20. </div>
  21. <div id="messageList" class="list" style="display: flex; flex-direction: column; gap: 12px;"></div>
  22. <div id="messagePager" class="toolbar" style="justify-content: space-between; margin-top: 16px;"></div>
  23. </div>
  24. {% endblock %}