profile.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>我的</title>
  7. <link rel="icon" type="image/png" href="../../static/favicon.png">
  8. <link rel="stylesheet" href="../../css/profile/profile.css">
  9. <link rel="stylesheet" href="../../css/hint-view.css">
  10. </head>
  11. <body>
  12. <!-- 充值界面 iframe -->
  13. <iframe id="rechargeViewFrame" src="../recharge-view/recharge-view.html" frameborder="0" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000004; border: none; background: transparent;"></iframe>
  14. <div class="profile-container">
  15. <!-- 返回按钮 -->
  16. <div class="profile-header">
  17. <button class="back-btn" id="backBtn">
  18. <svg width="20" height="20" viewBox="0 0 20 20" fill="none">
  19. <path d="M12.5 15L7.5 10L12.5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  20. </svg>
  21. 返回
  22. </button>
  23. </div>
  24. <div class="profile-content">
  25. <h1 class="page-title">我的</h1>
  26. <div class="profile-layout">
  27. <!-- 左侧:用户信息区域 -->
  28. <div class="profile-left">
  29. <!-- 用户资料区域 -->
  30. <div class="profile-section">
  31. <h2 class="section-title">用户资料</h2>
  32. <div class="profile-info">
  33. <div class="avatar-section">
  34. <div class="avatar-preview" id="avatarPreview">
  35. <img id="avatarImage" src="" alt="头像">
  36. </div>
  37. </div>
  38. <div class="info-form">
  39. <div class="form-item">
  40. <label class="form-label">用户名</label>
  41. <input type="text" class="form-input" id="usernameInput" readonly>
  42. </div>
  43. <div class="form-item">
  44. <label class="form-label">手机号</label>
  45. <input type="text" class="form-input" id="phoneInput" readonly>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <!-- Ani币区域 -->
  51. <div class="profile-section">
  52. <h2 class="section-title">我的Ani币</h2>
  53. <div class="points-section">
  54. <div class="points-display">
  55. <span class="points-label">当前余额:</span>
  56. <span class="points-value" id="pointsValue">0</span>
  57. <span class="points-unit">Ani币</span>
  58. </div>
  59. <button class="recharge-btn" id="rechargeBtn">充值</button>
  60. </div>
  61. </div>
  62. <!-- 退出登录按钮 -->
  63. <button class="logout-btn" id="logoutBtn">退出登录</button>
  64. </div>
  65. <!-- 右侧:AI生图历史和购买记录 -->
  66. <div class="profile-right">
  67. <div class="profile-section history-section">
  68. <h2 class="section-title">AI生图历史</h2>
  69. <div class="ai-history-container" id="aiHistoryContainer">
  70. <div class="loading-state" id="historyLoading">加载中...</div>
  71. <div class="empty-state" id="historyEmpty" style="display: none;">暂无历史记录</div>
  72. <div class="history-grid" id="historyGrid"></div>
  73. </div>
  74. </div>
  75. <div class="profile-section purchase-section">
  76. <h2 class="section-title">素材购买记录</h2>
  77. <div class="purchase-container" id="purchaseContainer">
  78. <div class="loading-state" id="purchaseLoading">加载中...</div>
  79. <div class="empty-state" id="purchaseEmpty" style="display: none;">暂无购买记录</div>
  80. <div class="purchase-grid" id="purchaseGrid"></div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <script src="../../js/hint-view.js"></script>
  88. <script src="../../js/profile/profile.js"></script>
  89. </body>
  90. </html>