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.
1371 lines
50 KiB
1371 lines
50 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>草稿箱 - 青核 Youthome</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
background: #FAFAFA;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--primary-hover);
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: none;
|
|
background: none;
|
|
}
|
|
|
|
svg {
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* ===== 页面容器 ===== */
|
|
.page {
|
|
width: 1920px
|
|
max-width: 100%;
|
|
overflow: hidden;;
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
background: #FAFAFA;
|
|
display: flex;
|
|
}
|
|
|
|
/* ===== 设计系统变量 ===== */
|
|
:root {
|
|
--primary: #17B0CF;
|
|
--primary-hover: #1298B3;
|
|
--primary-light: #73D3E6;
|
|
--primary-bg: rgba(23, 176, 207, 0.1);
|
|
--primary-lighter: rgba(23, 176, 207, 0.08);
|
|
|
|
--bg-page: #FAFAFA;
|
|
--bg-card: #FFFFFF;
|
|
--bg-hover: #F5F5F5;
|
|
--bg-active: var(--primary-bg);
|
|
|
|
--text-primary: #333333;
|
|
--text-secondary: #666666;
|
|
--text-tertiary: #999999;
|
|
--text-placeholder: #CCCCCC;
|
|
|
|
--border: #F0F0F0;
|
|
--border-light: #F5F5F5;
|
|
--border-focus: var(--primary);
|
|
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
|
|
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-full: 9999px;
|
|
|
|
--sidebar-width: 240px;
|
|
--topbar-height: 56px;
|
|
--control-height: 44px;
|
|
--page-width: 1920px;
|
|
|
|
--transition-fast: 0.15s ease;
|
|
--transition-base: 0.2s ease;
|
|
}
|
|
|
|
.sidebar { width: var(--sidebar-width); height: 100vh; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 20; position: sticky; top: 0; }
|
|
.sidebar-logo { padding: 24px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-light); cursor: pointer; flex-shrink: 0; }
|
|
.sidebar-logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 12px rgba(23,176,207,0.25); }
|
|
.sidebar-logo-text .main { font-size: 16px; font-weight: 700; color: var(--text-primary); }
|
|
.sidebar-logo-text .sub { font-size: 11px; color: var(--text-tertiary); }
|
|
.sidebar-publish { padding: 12px 12px 8px; flex-shrink: 0; }
|
|
.publish-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; background: var(--primary); color: #fff; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s ease; box-shadow: 0 4px 12px rgba(23, 176, 207, 0.25); }
|
|
.publish-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 176, 207, 0.35); }
|
|
.publish-btn svg { width: 20px; height: 20px; }
|
|
.publish-btn .publish-arrow { width: 16px; height: 16px; opacity: 0.8; transition: transform .2s; }
|
|
.publish-btn:hover .publish-arrow { transform: translateY(1px); }
|
|
.publish-dropdown { display: none; margin-top: 6px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
|
|
.sidebar-publish:hover .publish-dropdown { display: block; }
|
|
.publish-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background .15s; }
|
|
.publish-option:hover { background: var(--bg-hover); }
|
|
.publish-option svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
|
|
.publish-option-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
|
|
.publish-option-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
|
|
.sidebar-nav { flex: 1; padding: 16px 12px 24px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
|
|
.nav-section-title { font-size: 11px; font-weight: 600; color: var(--text-tertiary); padding: 12px 12px 8px; letter-spacing: 0.05em; }
|
|
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all .15s ease; }
|
|
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
.nav-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
|
|
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
|
|
.nav-item-label { display: flex; align-items: center; justify-content: space-between; flex: 1; }
|
|
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; background: #FF4D4F; color: #fff; font-size: 11px; font-weight: 600; border-radius: 9px; display: flex; align-items: center; justify-content: center; line-height: 1; }
|
|
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-light); flex-shrink: 0; }
|
|
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
|
|
.sidebar-user:hover { background: var(--bg-hover); }
|
|
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; }
|
|
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
|
|
.sidebar-user-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
|
|
.sidebar-user-arrow { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; margin-left: auto; }
|
|
|
|
/* ===== 主内容区 ===== */
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 24px 40px 40px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ===== 页面头部 ===== */
|
|
.page-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* ===== Tab 栏 ===== */
|
|
.tab-bar {
|
|
display: flex;
|
|
gap: 4px;
|
|
background: var(--bg-card);
|
|
border-radius: 14px;
|
|
padding: 6px;
|
|
margin-bottom: 24px;
|
|
border: 1px solid #F0F0F0;
|
|
width: fit-content;
|
|
}
|
|
|
|
.tab-item {
|
|
padding: 10px 28px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-radius: 10px;
|
|
transition: all 0.15s ease;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tab-item:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tab-item.active {
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
background: rgba(23, 176, 207, 0.1);
|
|
}
|
|
|
|
.tab-count {
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
background: #F0F0F0;
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tab-item.active .tab-count {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ===== 操作栏 ===== */
|
|
.action-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.action-bar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.action-bar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* 自定义复选框 */
|
|
.checkbox-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.checkbox-custom {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 1.5px solid #D9D9D9;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.15s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.checkbox-wrap:hover .checkbox-custom {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.checkbox-wrap.checked .checkbox-custom {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.checkbox-custom svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
color: #fff;
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.checkbox-wrap.checked .checkbox-custom svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 按钮 */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
height: 38px;
|
|
padding: 0 18px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
border: 1px solid transparent;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
box-shadow: 0 2px 8px rgba(23, 176, 207, 0.2);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-hover);
|
|
box-shadow: 0 4px 12px rgba(23, 176, 207, 0.3);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: #BCEAF3;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--bg-card);
|
|
color: #FF6B6B;
|
|
border-color: #FFD4D4;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #FFF1F1;
|
|
border-color: #FF6B6B;
|
|
}
|
|
|
|
.btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* ===== 草稿列表 ===== */
|
|
.drafts-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ===== 草稿卡片 ===== */
|
|
.draft-card {
|
|
background: var(--bg-card);
|
|
border-radius: 14px;
|
|
border: 1px solid #F0F0F0;
|
|
padding: 20px 24px;
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 20px;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.draft-card:hover {
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
|
|
border-color: #E5E5E5;
|
|
}
|
|
|
|
.draft-card.selected {
|
|
border-color: var(--primary);
|
|
background: rgba(23, 176, 207, 0.02);
|
|
}
|
|
|
|
/* 卡片左侧复选框 */
|
|
.draft-checkbox {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding-top: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 卡片内容区 */
|
|
.draft-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.draft-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* 类型标签 */
|
|
.draft-type-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.draft-type-badge svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.draft-type-post {
|
|
background: rgba(23, 176, 207, 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.draft-type-video {
|
|
background: rgba(255, 159, 69, 0.12);
|
|
color: #FF9F45;
|
|
}
|
|
|
|
.draft-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.draft-title:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.draft-preview {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.draft-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.draft-meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.draft-meta-item svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* 图片预览区 */
|
|
.draft-thumb {
|
|
flex-shrink: 0;
|
|
width: 120px;
|
|
height: 90px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.draft-thumb-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.draft-thumb-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.draft-thumb-placeholder svg {
|
|
width: 28px;
|
|
height: 28px;
|
|
color: #CCC;
|
|
}
|
|
|
|
/* 视频缩略图播放按钮 */
|
|
.draft-thumb.video::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 36px;
|
|
height: 36px;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.draft-thumb.video::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-40%, -50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 10px solid #fff;
|
|
border-top: 7px solid transparent;
|
|
border-bottom: 7px solid transparent;
|
|
z-index: 1;
|
|
}
|
|
|
|
.draft-thumb-count {
|
|
position: absolute;
|
|
bottom: 6px;
|
|
right: 6px;
|
|
padding: 2px 6px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
border-radius: 4px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* 图片网格缩略图 */
|
|
.draft-thumb-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
gap: 2px;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.draft-thumb-grid-item {
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
/* 渐变色占位图 */
|
|
.thumb-gradient-1 { background: linear-gradient(135deg, #BCEAF3, var(--primary)); }
|
|
.thumb-gradient-2 { background: linear-gradient(135deg, #FED7AA, #FB923C); }
|
|
.thumb-gradient-3 { background: linear-gradient(135deg, #FECACA, #F87171); }
|
|
.thumb-gradient-4 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
|
|
.thumb-gradient-5 { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
|
|
.thumb-gradient-6 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
|
|
.thumb-gradient-7 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
|
|
.thumb-gradient-8 { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
|
|
|
|
/* 卡片操作区 */
|
|
.draft-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
padding-left: 8px;
|
|
border-left: 1px solid #F5F5F5;
|
|
}
|
|
|
|
.draft-action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
height: 32px;
|
|
padding: 0 14px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
border: 1px solid transparent;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.draft-action-btn:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.draft-action-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.draft-action-edit {
|
|
color: var(--text-secondary);
|
|
border-color: var(--border);
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
.draft-action-edit:hover {
|
|
color: var(--primary);
|
|
border-color: var(--primary);
|
|
background: rgba(23, 176, 207, 0.05);
|
|
}
|
|
|
|
.draft-action-publish {
|
|
color: #fff;
|
|
background: var(--primary);
|
|
box-shadow: 0 2px 6px rgba(23, 176, 207, 0.25);
|
|
}
|
|
|
|
.draft-action-publish:hover {
|
|
background: var(--primary-hover);
|
|
box-shadow: 0 3px 10px rgba(23, 176, 207, 0.3);
|
|
}
|
|
|
|
.draft-action-delete {
|
|
color: var(--text-tertiary);
|
|
border-color: #F0F0F0;
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
.draft-action-delete:hover {
|
|
color: #FF6B6B;
|
|
border-color: #FFD4D4;
|
|
background: #FFF1F1;
|
|
}
|
|
|
|
/* ===== 空状态 ===== */
|
|
.empty-state {
|
|
display: none;
|
|
padding: 80px 40px;
|
|
text-align: center;
|
|
background: var(--bg-card);
|
|
border-radius: 14px;
|
|
border: 1px solid #F0F0F0;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 20px;
|
|
background: var(--bg-hover);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.empty-state-icon svg {
|
|
width: 40px;
|
|
height: 40px;
|
|
color: #CCC;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state-desc {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* ===== 滚动条 ===== */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #D9D9D9;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #BFBFBF;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="../css/web-refresh.css?v=20261020-brand-color">
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
<aside class="sidebar">
|
|
<div class="sidebar-logo" onclick="location.href='feed.html'">
|
|
<div class="sidebar-logo-icon">青</div>
|
|
<div class="sidebar-logo-text">
|
|
<div class="main">青核 Youthome</div>
|
|
<div class="sub">校园实名社交</div>
|
|
</div>
|
|
</div>
|
|
<div class="sidebar-publish">
|
|
<div class="publish-btn">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
|
|
发布
|
|
<svg class="publish-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
|
|
</div>
|
|
<div class="publish-dropdown">
|
|
<div class="publish-option" onclick="location.href='publish-post.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
|
|
<div>
|
|
<div class="publish-option-title">发布动态</div>
|
|
<div class="publish-option-desc">分享文字、图片、视频</div>
|
|
</div>
|
|
</div>
|
|
<div class="publish-option" onclick="location.href='publish-video.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>
|
|
<div>
|
|
<div class="publish-option-title">发布视频</div>
|
|
<div class="publish-option-desc">上传和分享你的视频</div>
|
|
</div>
|
|
</div>
|
|
<div class="publish-option" onclick="location.href='activity-create.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
|
|
<div>
|
|
<div class="publish-option-title">发起活动</div>
|
|
<div class="publish-option-desc">组织线下或线上活动</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<nav class="sidebar-nav">
|
|
<div class="nav-section-title">探索</div>
|
|
|
|
<div class="nav-item" onclick="location.href='feed.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
|
|
动态广场
|
|
</div>
|
|
<div class="nav-item" onclick="location.href='video.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>
|
|
视频广场
|
|
</div>
|
|
<div class="nav-item" onclick="location.href='activities.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
|
|
活动组局
|
|
</div>
|
|
<div class="nav-item" onclick="location.href='topic-detail.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>
|
|
话题广场
|
|
</div>
|
|
<div class="nav-section-title">我的</div>
|
|
<div class="nav-item" onclick="location.href='chat.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
|
|
聊天消息
|
|
</div>
|
|
<div class="nav-item" onclick="location.href='notification.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
|
|
<div class="nav-item-label">
|
|
<span>消息通知</span>
|
|
<span class="nav-badge">5</span>
|
|
</div>
|
|
</div>
|
|
<div class="nav-item active">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
|
|
个人中心
|
|
</div>
|
|
<div class="nav-item" onclick="location.href='settings.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
|
|
设置
|
|
</div>
|
|
</nav>
|
|
<div class="sidebar-footer">
|
|
<div class="sidebar-user" onclick="location.href='me.html'">
|
|
<div class="sidebar-avatar">林</div>
|
|
<div class="sidebar-user-info">
|
|
<div class="sidebar-user-name">林小夏</div>
|
|
<div class="sidebar-user-desc">清华大学</div>
|
|
</div>
|
|
<svg class="sidebar-user-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- ===== 主内容区 ===== -->
|
|
<main class="main-content">
|
|
<!-- 页面头部 -->
|
|
<div class="page-header">
|
|
<h1 class="page-title">草稿箱</h1>
|
|
<p class="page-subtitle">未完成发布的内容都在这里,随时可以继续编辑</p>
|
|
</div>
|
|
|
|
<!-- Tab 栏 -->
|
|
<div class="tab-bar">
|
|
<div class="tab-item active">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:16px;height:16px;">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
<line x1="16" y1="13" x2="8" y2="13"></line>
|
|
<line x1="16" y1="17" x2="8" y2="17"></line>
|
|
</svg>
|
|
草稿箱
|
|
<span class="tab-count">6</span>
|
|
</div>
|
|
<div class="tab-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:16px;height:16px;">
|
|
<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>
|
|
<line x1="10" y1="11" x2="10" y2="17"></line>
|
|
<line x1="14" y1="11" x2="14" y2="17"></line>
|
|
</svg>
|
|
回收站
|
|
<span class="tab-count">0</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 操作栏 -->
|
|
<div class="action-bar">
|
|
<div class="action-bar-left">
|
|
<div class="checkbox-wrap" id="selectAll" onclick="toggleSelectAll()">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
<span>全部选择</span>
|
|
</div>
|
|
</div>
|
|
<div class="action-bar-right">
|
|
<button class="btn btn-primary" disabled>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="btn btn-danger">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿列表 -->
|
|
<div class="drafts-list" id="draftsList">
|
|
|
|
<!-- 草稿 1:动态 - 3张图 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-post">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
动态
|
|
</span>
|
|
<div class="draft-title">期末复习方法分享</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
期末复习周开始啦,分享几个亲测有效的复习方法!费曼学习法真的yyds,还有艾宾浩斯遗忘曲线记忆法…希望大家都能取得好成绩,一起加油冲鸭!
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
昨天 14:30 保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
<circle cx="8.5" cy="8.5" r="1.5"></circle>
|
|
<polyline points="21 15 16 10 5 21"></polyline>
|
|
</svg>
|
|
3 张图片
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb">
|
|
<div class="draft-thumb-grid">
|
|
<div class="draft-thumb-grid-item thumb-gradient-1"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-2"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-3"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-4"></div>
|
|
</div>
|
|
<div class="draft-thumb-count">3</div>
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-post.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿 2:视频 - 缩略图 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-video">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<polygon points="23 7 16 12 23 17 23 7"></polygon>
|
|
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
|
|
</svg>
|
|
视频
|
|
</span>
|
|
<div class="draft-title">校园美食探店vlog</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
今天带大家探索清华周边的宝藏美食店!从西门外的奶茶店到东门的烧烤摊,还有食堂隐藏菜单大揭秘~保证看完你会流口水!
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
2小时前保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<polygon points="23 7 16 12 23 17 23 7"></polygon>
|
|
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
|
|
</svg>
|
|
03:42 时长
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb video thumb-gradient-5">
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-video.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿 3:动态 - 1张图 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-post">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
动态
|
|
</span>
|
|
<div class="draft-title">今天的晚霞好美啊</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
下课后从教学楼出来,刚好赶上了绝美的晚霞!天空被染成了粉紫色,整个校园都变得好温柔~随手一拍都是壁纸级别的画面 🌅
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
3天前保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
<circle cx="8.5" cy="8.5" r="1.5"></circle>
|
|
<polyline points="21 15 16 10 5 21"></polyline>
|
|
</svg>
|
|
1 张图片
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb thumb-gradient-6">
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-post.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿 4:动态 - 纯文字 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-post">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
动态
|
|
</span>
|
|
<div class="draft-title">社团招新通知</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
🎉 摄影社秋季招新开始啦!无论你是摄影小白还是资深发烧友,都欢迎加入我们!每周有外拍活动,每月有摄影讲座,还有暗房体验课等你解锁~感兴趣的同学评论区扣1!
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
上周保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
纯文字
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb">
|
|
<div class="draft-thumb-placeholder">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
<line x1="16" y1="13" x2="8" y2="13"></line>
|
|
<line x1="16" y1="17" x2="8" y2="17"></line>
|
|
</svg>
|
|
<span>纯文字</span>
|
|
</div>
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-post.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿 5:视频 - 实验室日常 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-video">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<polygon points="23 7 16 12 23 17 23 7"></polygon>
|
|
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
|
|
</svg>
|
|
视频
|
|
</span>
|
|
<div class="draft-title">实验室日常记录</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
带大家看看我们实验室的日常~从早上9点到晚上10点,科研狗的一天是怎么度过的?还有实验室趣事大爆料,结尾有惊喜哦!
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
5天前保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<polygon points="23 7 16 12 23 17 23 7"></polygon>
|
|
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
|
|
</svg>
|
|
05:18 时长
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb video thumb-gradient-7">
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-video.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
<!-- 草稿 6:动态 - 4张图 -->
|
|
<div class="draft-card">
|
|
<div class="draft-checkbox">
|
|
<div class="checkbox-wrap" onclick="toggleDraftSelect(this)">
|
|
<div class="checkbox-custom">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-content">
|
|
<div class="draft-header">
|
|
<span class="draft-type-badge draft-type-post">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
动态
|
|
</span>
|
|
<div class="draft-title">新生攻略合集</div>
|
|
</div>
|
|
<div class="draft-preview">
|
|
给新入学的学弟学妹们整理了一份超全攻略!包括报到流程、宿舍指南、食堂测评、选课建议、校园地图…一共整理了4篇,希望能帮到你们!有问题欢迎评论区提问~
|
|
</div>
|
|
<div class="draft-meta">
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
2周前保存
|
|
</div>
|
|
<div class="draft-meta-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
<circle cx="8.5" cy="8.5" r="1.5"></circle>
|
|
<polyline points="21 15 16 10 5 21"></polyline>
|
|
</svg>
|
|
4 张图片
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="draft-thumb">
|
|
<div class="draft-thumb-grid">
|
|
<div class="draft-thumb-grid-item thumb-gradient-8"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-1"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-2"></div>
|
|
<div class="draft-thumb-grid-item thumb-gradient-3"></div>
|
|
</div>
|
|
<div class="draft-thumb-count">4</div>
|
|
</div>
|
|
<div class="draft-actions">
|
|
<button class="draft-action-btn draft-action-edit" onclick="location.href='publish-post.html'">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
|
|
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
|
|
</svg>
|
|
编辑
|
|
</button>
|
|
<button class="draft-action-btn draft-action-publish">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
发布
|
|
</button>
|
|
<button class="draft-action-btn draft-action-delete">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<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>
|
|
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
// 切换单条草稿选中状态
|
|
function toggleDraftSelect(el) {
|
|
el.classList.toggle('checked');
|
|
const card = el.closest('.draft-card');
|
|
card.classList.toggle('selected');
|
|
updateSelectAllState();
|
|
updateActionButtons();
|
|
event.stopPropagation();
|
|
}
|
|
|
|
// 切换全选
|
|
let allSelected = false;
|
|
function toggleSelectAll() {
|
|
allSelected = !allSelected;
|
|
const selectAllEl = document.getElementById('selectAll');
|
|
const checkboxes = document.querySelectorAll('.draft-checkbox .checkbox-wrap');
|
|
const cards = document.querySelectorAll('.draft-card');
|
|
|
|
if (allSelected) {
|
|
selectAllEl.classList.add('checked');
|
|
checkboxes.forEach(cb => cb.classList.add('checked'));
|
|
cards.forEach(card => card.classList.add('selected'));
|
|
} else {
|
|
selectAllEl.classList.remove('checked');
|
|
checkboxes.forEach(cb => cb.classList.remove('checked'));
|
|
cards.forEach(card => card.classList.remove('selected'));
|
|
}
|
|
updateActionButtons();
|
|
}
|
|
|
|
// 更新全选状态
|
|
function updateSelectAllState() {
|
|
const total = document.querySelectorAll('.draft-checkbox .checkbox-wrap').length;
|
|
const checked = document.querySelectorAll('.draft-checkbox .checkbox-wrap.checked').length;
|
|
const selectAllEl = document.getElementById('selectAll');
|
|
|
|
if (checked === total && total > 0) {
|
|
allSelected = true;
|
|
selectAllEl.classList.add('checked');
|
|
} else {
|
|
allSelected = false;
|
|
selectAllEl.classList.remove('checked');
|
|
}
|
|
}
|
|
|
|
// 更新操作按钮状态
|
|
function updateActionButtons() {
|
|
const checked = document.querySelectorAll('.draft-checkbox .checkbox-wrap.checked').length;
|
|
const publishBtn = document.querySelectorAll('.action-bar-right .btn')[0];
|
|
const deleteBtn = document.querySelectorAll('.action-bar-right .btn')[1];
|
|
|
|
if (checked > 0) {
|
|
publishBtn.disabled = false;
|
|
} else {
|
|
publishBtn.disabled = true;
|
|
}
|
|
}
|
|
</script>
|
|
<script src="../js/web-local-data.js?v=20261016-local" defer></script>
|
|
<script src="../js/web-api.js?v=20261020-api" defer></script>
|
|
<script src="../js/web-shell.js?v=20261013-publish" defer></script>
|
|
<script src="../js/web-publishing.js?v=20261016-local" defer></script>
|
|
</body>
|
|
</html>
|
|
|
|
|