You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

719 lines
21 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>青核 Youthome - 注销账号</title>
<link rel="stylesheet" href="../colors_and_type.css">
<script src="https://cdn.tailwindcss.com"></script>
<style>
:root {
--youth-primary: #26C2BB;
--youth-primary-light: #54CAC5;
--primary-bg: #E6F7F6;
--primary-border: #B3E8E4;
--bg-page: #F7F8FA;
--bg-card: #FFFFFF;
--text-title: #1F1F1F;
--text-body: #595959;
--text-muted: #8C8C8C;
--youth-border-light: #E8E8E8;
--tag-bg: #F0F1F3;
--danger: #F5222D;
--danger-bg: #FFE8E8;
--danger-light: #FF7875;
--btn-gradient: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
/* =====================================================
* Traework 设计系统 - 组件规范
* 圆角 / 间距 / 阴影 / 高度
* ===================================================== */
--radius-xs: 4px;
--radius-sm: 8px; /* 按钮、输入框 */
--radius-md: 12px; /* 卡片 */
--radius-lg: 16px; /* 标签、弹窗 */
--radius-xl: 20px;
--radius-full: 9999px;
/* 组件高度 */
--height-btn: 44px;
--height-input: 44px;
--height-nav-bottom: 64px;
/* 间距(4px 基础栅格) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-page-x: 16px;
--space-card: 16px;
/* 柔和弥散阴影 */
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
--shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
--shadow-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
/* 内阴影浮雕(输入框) */
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
/* 毛玻璃 */
--glass-bg: rgba(255, 255, 255, 0.72);
--glass-blur: blur(20px);
--glass-border: rgba(255, 255, 255, 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
min-height: 100vh;
overflow-x: hidden;
}
.page-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* 状态栏 */
.status-bar {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
flex-shrink: 0;
}
.status-bar .right-icons {
display: flex;
align-items: center;
gap: 6px;
}
/* 顶部导航 */
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
height: 44px;
flex-shrink: 0;
}
.nav-left {
display: flex;
align-items: center;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--youth-text-primary);
cursor: pointer;
transition: background 0.2s ease;
border: none;
background: transparent;
}
.nav-btn:active {
background: var(--youth-border-light);
}
.nav-title {
font-size: 17px;
font-weight: 700;
color: var(--youth-text-primary);
}
/* 步骤指示器 */
.step-indicator {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 16px 8px;
flex-shrink: 0;
}
.step-dot {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
background: var(--tag-bg);
color: var(--youth-text-tertiary);
transition: all 0.3s ease;
}
.step-dot.active {
background: var(--youth-primary);
color: #FFFFFF;
}
.step-dot.done {
background: var(--youth-primary-bg);
color: var(--youth-primary);
}
.step-line {
width: 32px;
height: 2px;
background: var(--youth-border-light);
border-radius: 1px;
}
.step-line.done {
background: var(--youth-primary);
}
.step-labels {
display: flex;
justify-content: center;
gap: 40px;
padding: 0 16px 12px;
font-size: 11px;
color: var(--youth-text-tertiary);
flex-shrink: 0;
}
.step-labels .active {
color: var(--youth-primary);
font-weight: 500;
}
/* 内容区 */
.content-area {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
padding: 8px 16px 0;
}
.content-area::-webkit-scrollbar {
display: none;
}
/* 警告横幅 */
.warning-banner {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 14px;
background: var(--youth-danger-50);
border-radius: 12px;
margin-bottom: 14px;
}
.warning-banner svg {
color: var(--youth-danger-500);
margin-top: 1px;
flex-shrink: 0;
}
.warning-text {
flex: 1;
}
.warning-title {
font-size: 14px;
font-weight: 700;
color: var(--youth-danger-500);
margin-bottom: 4px;
}
.warning-desc {
font-size: 12px;
color: var(--youth-text-secondary);
line-height: 1.5;
}
/* 须知卡片 */
.notice-card {
background: var(--youth-bg-card);
border-radius: 12px;
padding: 16px;
margin-bottom: 14px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.notice-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 6px;
}
.notice-title::before {
content: '';
width: 3px;
height: 14px;
border-radius: 2px;
background: var(--youth-primary);
}
.notice-list {
list-style: none;
}
.notice-item {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 0;
font-size: 13px;
color: var(--youth-text-secondary);
line-height: 1.55;
}
.notice-item .dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--youth-primary);
margin-top: 7px;
flex-shrink: 0;
}
.notice-item strong {
color: var(--youth-text-primary);
font-weight: 600;
}
/* 冷静期提示 */
.cooling-card {
display: flex;
align-items: center;
gap: 12px;
padding: 14px;
background: var(--youth-bg-card);
border-radius: 12px;
margin-bottom: 14px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.cooling-icon {
width: 40px;
height: 40px;
border-radius: 10px;
background: var(--youth-primary-bg);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-primary);
flex-shrink: 0;
}
.cooling-text {
flex: 1;
}
.cooling-title {
font-size: 13px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.cooling-desc {
font-size: 12px;
color: var(--youth-text-tertiary);
line-height: 1.4;
}
/* 确认区 */
.confirm-section {
background: var(--youth-bg-card);
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 14px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.confirm-item {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 0;
cursor: pointer;
}
.confirm-item + .confirm-item {
border-top: 1px solid var(--youth-border-light);
padding-top: 10px;
}
.checkbox {
width: 18px;
height: 18px;
border-radius: 4px;
border: 1.5px solid var(--youth-border-light);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 1px;
transition: all 0.2s ease;
}
.checkbox.checked {
background: var(--youth-primary);
border-color: var(--youth-primary);
}
.checkbox svg {
color: #FFFFFF;
opacity: 0;
transition: opacity 0.2s ease;
}
.checkbox.checked svg {
opacity: 1;
}
.confirm-text {
font-size: 13px;
color: var(--youth-text-secondary);
line-height: 1.5;
flex: 1;
}
.confirm-text strong {
color: var(--youth-danger-500);
font-weight: 600;
}
/* 底部按钮区 */
.action-section {
padding: 12px 16px 28px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.cancel-btn {
width: 100%;
height: 48px;
border: none;
border-radius: 8px;
background: var(--youth-gradient-primary);
color: #FFFFFF;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.25);
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
order: 1;
}
.cancel-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
pointer-events: none;
}
.cancel-btn:active {
transform: scale(0.98);
}
.delete-btn {
width: 100%;
height: 48px;
border: 1px solid var(--youth-danger-500);
border-radius: 10px;
background: transparent;
color: var(--youth-danger-500);
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
order: 2;
}
.delete-btn:active {
background: var(--youth-danger-50);
}
.delete-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
border-color: var(--youth-text-tertiary);
color: var(--youth-text-tertiary);
}
/* SVG 图标统一尺寸 */
.icon-svg {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1em;
height: 1em;
vertical-align: middle;
line-height: 1;
}
.icon-svg svg {
width: 100%;
height: 100%;
stroke: currentColor;
}
/* 侧栏图标 */
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
/* 社团logo图标 */
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
/* 头图大图标 */
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
/* meta 小图标 */
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
/* 分类选择网格图标 */
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
/* logo预览图标 */
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
/* 提示图标 */
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
</style>
</head>
<body>
<div class="page-container" data-dom-id="page-container">
<!-- 状态栏 -->
<div class="status-bar">
<span>9:41</span>
<div class="right-icons">
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
<rect x="0" y="7" width="3" height="4" rx="0.5"/>
<rect x="4.5" y="5" width="3" height="6" rx="0.5"/>
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"/>
<rect x="13.5" y="0" width="3" height="11" rx="0.5"/>
</svg>
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"/>
<path d="M7.5 4.5C6 4.5 4.5 5 3.4 6.2C2.3 7.4 2 9 2.4 10.4C2.5 10.8 2.8 11 3.2 11C3.5 11 3.8 10.8 3.9 10.5C4.2 9.5 4.8 8.6 5.7 8C6.6 7.4 7.6 7.1 8.6 7.2C9.8 7.3 10.9 7.8 11.6 8.7C12.3 9.6 12.6 10.7 12.4 11.8L12.4 12C12.3 12.4 12.6 12.7 13 12.8C13.4 12.9 13.7 12.6 13.8 12.2C14.1 10.5 13.5 8.8 12.4 7.5C11.3 6.2 9.6 5.3 7.8 4.9L7.5 4.5Z"/>
</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="currentColor" opacity="0.5"/>
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"/>
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"/>
</svg>
</div>
</div>
<!-- 顶部导航 -->
<div class="top-nav">
<div class="nav-left">
<button class="nav-btn" data-dom-id="btn-back" onclick="goBack()">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
</div>
<div class="nav-title">注销账号</div>
<div style="width: 36px;"></div>
</div>
<!-- 步骤指示器 -->
<div class="step-indicator">
<div class="step-dot active">1</div>
<div class="step-line"></div>
<div class="step-dot">2</div>
<div class="step-line"></div>
<div class="step-dot">3</div>
</div>
<div class="step-labels">
<span class="active">注销须知</span>
<span>冷静期</span>
<span>完成</span>
</div>
<!-- 内容区 -->
<div class="content-area">
<!-- 警告横幅 -->
<div class="warning-banner">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>
<line x1="12" y1="9" x2="12" y2="13"></line>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
<div class="warning-text">
<div class="warning-title">重要提醒</div>
<div class="warning-desc">账号注销后将无法恢复,请谨慎操作。你的所有动态、关注、积分等数据将被永久清除。</div>
</div>
</div>
<!-- 注销须知 -->
<div class="notice-card">
<div class="notice-title">注销须知</div>
<ul class="notice-list">
<li class="notice-item">
<span class="dot"></span>
<span>账号注销后,你的 <strong>所有动态、评论、点赞</strong> 将被永久删除,无法恢复。</span>
</li>
<li class="notice-item">
<span class="dot"></span>
<span>你的 <strong>实名认证信息、关注关系、好友关系</strong> 将被解除。</span>
</li>
<li class="notice-item">
<span class="dot"></span>
<span>账户内剩余 <strong>青核积分将被清零</strong>,不支持折现或退还。</span>
</li>
<li class="notice-item">
<span class="dot"></span>
<span>已发起的活动将自动取消,已报名的活动将自动退出。</span>
</li>
</ul>
</div>
<!-- 冷静期提示 -->
<div class="cooling-card">
<div class="cooling-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
</div>
<div class="cooling-text">
<div class="cooling-title">7 天冷静期</div>
<div class="cooling-desc">提交注销申请后,有 7 天冷静期,期间登录可撤回注销申请。</div>
</div>
</div>
<!-- 确认勾选 -->
<div class="confirm-section">
<div class="confirm-item" onclick="toggleCheck(0)">
<div class="checkbox" id="check-0">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="confirm-text">我已充分了解账号注销的后果,自愿放弃账号内所有资产及权益。</div>
</div>
<div class="confirm-item" onclick="toggleCheck(1)">
<div class="checkbox" id="check-1">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="confirm-text">我确认已知晓 <strong>7 天冷静期</strong>规则,注销申请提交后 7 天内可撤回。</div>
</div>
</div>
</div>
<!-- 底部按钮 -->
<div class="action-section">
<button class="cancel-btn" data-dom-id="btn-cancel" onclick="cancelDelete()">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
再想想,返回
</button>
<button class="delete-btn" data-dom-id="btn-delete" id="btn-delete" disabled onclick="confirmDelete()">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
</svg>
确认注销账号
</button>
</div>
</div>
<script>// 主题切换
icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
}
}
// 返回
function goBack() {
window.history.back();
}
// 勾选状态
const checks = [false, false];
function toggleCheck(index) {
checks[index] = !checks[index];
const el = document.getElementById('check-' + index);
if (checks[index]) {
el.classList.add('checked');
} else {
el.classList.remove('checked');
}
updateButton();
}
function updateButton() {
const btn = document.getElementById('btn-delete');
const allChecked = checks.every(function(c) { return c; });
btn.disabled = !allChecked;
}
// 取消
function cancelDelete() {
window.history.back();
}
// 确认注销
function confirmDelete() {
if (!confirm('请再次确认:你确定要注销青核账号吗?\n\n注销后有 7 天冷静期可撤回,7 天后数据将被永久清除。')) {
return;
}
alert('注销申请已提交\n\n你有 7 天冷静期,期间登录账号可撤回注销申请。');
// 跳转登录页
window.location.href = 'login.html';
}</script>
</body>
</html>