Files
ai_wht_wechat/figma_html_page/profile.html
2026-01-06 19:36:42 +08:00

124 lines
6.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>个人中心</title>
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/profile.css">
</head>
<body>
<div class="container">
<div class="status-bar">
<span class="time">9:41</span>
<div class="icons">
<svg width="18" height="12" viewBox="0 0 18 12" fill="none">
<path d="M1 4C1 2.89543 1.89543 2 3 2H4C5.10457 2 6 2.89543 6 4V8C6 9.10457 5.10457 10 4 10H3C1.89543 10 1 9.10457 1 8V4Z" stroke="#000" stroke-width="1.5"/>
<path d="M7 3C7 2.44772 7.44772 2 8 2H9C9.55228 2 10 2.44772 10 3V9C10 9.55228 9.55228 10 9 10H8C7.44772 10 7 9.55228 7 9V3Z" stroke="#000" stroke-width="1.5"/>
<path d="M13 1C13 0.447715 13.4477 0 14 0H15C15.5523 0 16 0.447715 16 1V11C16 11.5523 15.5523 12 15 12H14C13.4477 12 13 11.5523 13 11V1Z" stroke="#000" stroke-width="1.5"/>
</svg>
<svg width="16" height="12" viewBox="0 0 16 12" fill="none">
<path d="M8 2.5C4.5 2.5 1.5 5 0 8C1.5 5.5 4.5 4 8 4C11.5 4 14.5 5.5 16 8C14.5 5 11.5 2.5 8 2.5Z" fill="#000"/>
</svg>
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#000"/>
<rect x="2" y="2" width="18" height="8" rx="1" fill="#000"/>
<path d="M23 4V8C24.1046 8 25 7.10457 25 6V6C25 4.89543 24.1046 4 23 4Z" fill="#000"/>
</svg>
</div>
</div>
<div class="nav-bar">
<div class="back-btn" onclick="history.back()">
<svg viewBox="0 0 10 18">
<path d="M9 1L1 9L9 17" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="nav-icons">
<div class="nav-icon">
<svg width="20" height="4" viewBox="0 0 20 4" fill="none">
<circle cx="2" cy="2" r="2" fill="#000"/>
<circle cx="10" cy="2" r="2" fill="#000"/>
<circle cx="18" cy="2" r="2" fill="#000"/>
</svg>
</div>
<div class="nav-icon">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
<circle cx="10" cy="10" r="9" stroke="#000" stroke-width="1.5"/>
<circle cx="10" cy="10" r="3" stroke="#000" stroke-width="1.5"/>
</svg>
</div>
</div>
</div>
<div class="profile-content">
<div class="user-info" id="userInfo">
<div class="avatar" id="userAvatar">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="8" r="4" stroke="#999" stroke-width="2"/>
<path d="M4 20C4 16.6863 7.58172 14 12 14C16.4183 14 20 16.6863 20 20" stroke="#999" stroke-width="2" stroke-linecap="round"/>
</svg>
</div>
<span class="user-name" id="userName">未登录</span>
</div>
<div class="account-row" id="accountRow" onclick="handleAccountClick()">
<span class="row-label">小红书账号</span>
<div class="row-right">
<span class="row-value" id="accountStatus">未绑定</span>
<svg width="8" height="14" viewBox="0 0 8 14" fill="none">
<path d="M1 1L7 7L1 13" stroke="#C0C0C0" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
<div class="section-title">发布记录</div>
<div class="empty-records" id="emptyRecords">
<span>暂无记录</span>
</div>
<div class="records-grid" id="recordsGrid" style="display: none;">
<div class="record-card">
<div class="record-image">
<img src="https://img.alicdn.com/imgextra/i1/O1CN01FH8C3f1VNpKrQq3hI_!!6000000002640-0-tps-800-800.jpg" alt="">
</div>
<p class="record-title">双十一卡诗精油买一波,哪个最好用?...</p>
</div>
<div class="record-card">
<div class="record-image">
<img src="https://img.alicdn.com/imgextra/i3/O1CN01Dz2yfS1DOGrNQZ4aF_!!2200724907121.jpg" alt="">
</div>
<p class="record-title">卡诗护发精油怎么选?山茶花/黑钻/玻尿酸...</p>
</div>
<div class="record-card">
<div class="record-image">
<img src="https://img.alicdn.com/imgextra/i2/O1CN01kpVlwu1HFkEwVXnKH_!!6000000000727-0-tps-800-800.jpg" alt="">
</div>
<p class="record-title">黑钻 VS 新版卡诗鎏金山茶花到底选哪个?</p>
</div>
<div class="record-card">
<div class="record-image">
<img src="https://img.alicdn.com/imgextra/i4/O1CN01JfaIrY1TfMPJC3nDO_!!2206686532579.jpg" alt="">
</div>
<p class="record-title">黑钻 VS 新版卡诗鎏金山茶花到底选哪个?</p>
</div>
</div>
</div>
<div class="bottom-indicator"></div>
</div>
<div class="modal-overlay" id="unbindModal">
<div class="modal">
<div class="modal-title">确定解绑</div>
<div class="modal-message">解绑账号后将无法继续使用它登录小红书账号</div>
<button class="modal-btn danger" onclick="confirmUnbind()">确定解绑</button>
<button class="modal-btn cancel" onclick="closeUnbindModal()">取 消</button>
</div>
</div>
<script src="js/profile.js"></script>
</body>
</html>