profile.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. <!-- 导出下载 iframe -->
  15. <iframe id="exportViewFrame" src="../export/export-view.html" frameborder="0" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000005; border: none; pointer-events: none; visibility: hidden; background: transparent;"></iframe>
  16. <!-- 下载选择弹窗 -->
  17. <div class="download-confirm-overlay" id="downloadConfirmOverlay" style="display: none;">
  18. <div class="download-confirm-modal">
  19. <div class="download-confirm-header">
  20. <h3>选择下载方式</h3>
  21. <button class="download-confirm-close" id="downloadConfirmClose">
  22. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  23. <path d="M15 5L5 15M5 5l10 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  24. </svg>
  25. </button>
  26. </div>
  27. <div class="download-confirm-content">
  28. <div class="download-option" data-option="original">
  29. <div class="download-option-icon">
  30. <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  31. <path d="M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  32. <path d="M14 2V8H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  33. <path d="M16 13H8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  34. <path d="M16 17H8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  35. <path d="M10 9H9H8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  36. </svg>
  37. </div>
  38. <div class="download-option-info">
  39. <div class="download-option-title">源文件下载</div>
  40. <div class="download-option-desc">直接下载原始图片,不进行抠图处理</div>
  41. </div>
  42. </div>
  43. <div class="download-option" data-option="normal">
  44. <div class="download-option-icon">
  45. <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  46. <path d="M6 7C6 7 8 9 10 11C12 13 12 15 12 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  47. <path d="M18 7C18 7 16 9 14 11C12 13 12 15 12 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  48. <circle cx="6" cy="7" r="2" stroke="currentColor" stroke-width="2" fill="none"/>
  49. <circle cx="18" cy="7" r="2" stroke="currentColor" stroke-width="2" fill="none"/>
  50. <path d="M12 15L12 21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  51. </svg>
  52. </div>
  53. <div class="download-option-info">
  54. <div class="download-option-title">普通抠图下载</div>
  55. <div class="download-option-desc">使用 rembg 进行抠图处理</div>
  56. </div>
  57. </div>
  58. <div class="download-option" data-option="vip">
  59. <div class="download-option-icon">
  60. <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  61. <path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" fill-opacity="0.1"/>
  62. </svg>
  63. </div>
  64. <div class="download-option-info">
  65. <div class="download-option-title">VIP抠图下载</div>
  66. <div class="download-option-desc">使用 BiRefNet 进行高质量抠图处理</div>
  67. <div class="download-option-price" id="vipMattingPrice">-</div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="profile-container">
  74. <!-- 返回按钮 -->
  75. <div class="profile-header">
  76. <button class="back-btn" id="backBtn">
  77. <svg width="20" height="20" viewBox="0 0 20 20" fill="none">
  78. <path d="M12.5 15L7.5 10L12.5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  79. </svg>
  80. 返回
  81. </button>
  82. </div>
  83. <div class="profile-content">
  84. <h1 class="page-title">我的</h1>
  85. <div class="profile-layout">
  86. <!-- 左侧:用户信息区域 -->
  87. <div class="profile-left">
  88. <!-- 用户资料区域 -->
  89. <div class="profile-section">
  90. <h2 class="section-title">用户资料</h2>
  91. <div class="profile-info">
  92. <div class="avatar-section">
  93. <div class="avatar-preview" id="avatarPreview">
  94. <img id="avatarImage" src="" alt="头像">
  95. </div>
  96. </div>
  97. <div class="info-form">
  98. <div class="form-item">
  99. <label class="form-label">用户名</label>
  100. <input type="text" class="form-input" id="usernameInput" readonly>
  101. </div>
  102. <div class="form-item">
  103. <label class="form-label">手机号</label>
  104. <input type="text" class="form-input" id="phoneInput" readonly>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <!-- Ani币区域 -->
  110. <div class="profile-section points-card">
  111. <div class="points-section">
  112. <div class="points-display">
  113. <span class="points-label">账户余额</span>
  114. <div class="points-value-row">
  115. <span class="points-value" id="pointsValue">0</span>
  116. <span class="points-unit">Ani币</span>
  117. </div>
  118. </div>
  119. <button class="recharge-btn" id="rechargeBtn">
  120. <span>充值</span>
  121. </button>
  122. </div>
  123. </div>
  124. <!-- 退出登录按钮 -->
  125. <button class="logout-btn" id="logoutBtn">退出登录</button>
  126. </div>
  127. <!-- 右侧:AI生图历史和购买记录 -->
  128. <div class="profile-right">
  129. <div class="profile-section history-section">
  130. <h2 class="section-title">AI生图历史</h2>
  131. <div class="ai-history-container" id="aiHistoryContainer">
  132. <div class="loading-state" id="historyLoading">加载中...</div>
  133. <div class="empty-state" id="historyEmpty" style="display: none;">暂无历史记录</div>
  134. <div class="history-grid" id="historyGrid"></div>
  135. </div>
  136. </div>
  137. <div class="profile-section purchase-section">
  138. <h2 class="section-title">素材购买记录</h2>
  139. <div class="purchase-container" id="purchaseContainer">
  140. <div class="loading-state" id="purchaseLoading">加载中...</div>
  141. <div class="empty-state" id="purchaseEmpty" style="display: none;">暂无购买记录</div>
  142. <div class="purchase-grid" id="purchaseGrid"></div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <script src="../../js/hint-view.js"></script>
  150. <script src="../../js/profile/profile.js"></script>
  151. </body>
  152. </html>