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.
 
 

825 lines
24 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">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 我的公告</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html, body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-primary);
min-height: 100vh;
overflow-x: hidden;
}
/* ===== 页面容器 ===== */
.app-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}
@media (max-width: 375px) {
.app-container { width: 100%; height: 100vh; }
}
/* ===== 状态栏 ===== */
.status-bar {
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
position: relative;
z-index: 10;
flex-shrink: 0;
}
.status-bar .right-icons {
display: flex;
align-items: center;
gap: 6px;
}
.status-bar svg {
width: 16px;
height: 16px;
}
/* ===== 导航栏 ===== */
.nav-bar {
height: 56px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 16px;
position: relative;
flex-shrink: 0;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--youth-radius-md);
background: var(--youth-gradient-matte-card);
border: 1px solid var(--youth-border-light);
box-shadow:
0 2px 8px rgba(0, 0, 0, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
cursor: pointer;
transition: all 0.2s ease;
color: var(--youth-text-primary);
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
}
.nav-btn:active {
transform: translateY(-50%) scale(0.95);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.nav-btn svg {
width: 20px;
height: 20px;
stroke-width: 2.5px;
}
.nav-title {
font-size: 17px;
font-weight: 600;
color: var(--youth-text-primary);
letter-spacing: -0.01em;
}
.publish-btn {
height: 34px;
padding: 0 16px;
border-radius: var(--youth-radius-full);
background: linear-gradient(135deg, #3FCFCA 0%, #26C2BB 100%);
border: none;
color: white;
font-size: 13px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
display: flex;
align-items: center;
gap: 4px;
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
transition: all 0.2s ease;
}
.publish-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
pointer-events: none;
border-radius: inherit;
}
.publish-btn:active {
transform: translateY(-50%) scale(0.96);
}
.publish-btn svg {
width: 14px;
height: 14px;
stroke-width: 2.5px;
position: relative;
z-index: 1;
}
.publish-btn span {
position: relative;
z-index: 1;
}
/* ===== Tab 切换 ===== */
.tabs-bar {
display: flex;
padding: 0 16px;
gap: 4px;
flex-shrink: 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar {
display: none;
}
.tab-item {
padding: 8px 14px;
font-size: 14px;
color: var(--youth-text-tertiary);
font-weight: 500;
cursor: pointer;
position: relative;
flex-shrink: 0;
transition: all 0.2s ease;
border-radius: var(--youth-radius-sm);
display: flex;
align-items: center;
gap: 4px;
}
.tab-item.active {
color: var(--youth-primary);
font-weight: 600;
background: var(--youth-primary-bg);
}
.tab-count {
font-size: 12px;
font-weight: 500;
opacity: 0.6;
}
.tab-item.active .tab-count {
opacity: 0.8;
}
/* ===== 统计卡片 ===== */
.stats-card {
margin: 12px 16px;
background: var(--youth-bg-card);
border-radius: var(--youth-radius-md);
padding: 16px;
display: flex;
box-shadow:
0 2px 12px rgba(0, 0, 0, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
border: 1px solid var(--youth-border-light);
flex-shrink: 0;
}
.stat-item {
flex: 1;
text-align: center;
position: relative;
}
.stat-item + .stat-item::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 28px;
background: var(--youth-border-light);
}
.stat-num {
font-size: 20px;
font-weight: 700;
color: var(--youth-text-primary);
line-height: 1.2;
margin-bottom: 4px;
}
.stat-num.warning { color: var(--youth-warning-500); }
.stat-num.success { color: var(--youth-success-500); }
.stat-num.danger { color: var(--youth-danger-500); }
.stat-label {
font-size: 11px;
color: var(--youth-text-tertiary);
}
/* ===== 滚动区域 ===== */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 24px;
}
.scroll-area::-webkit-scrollbar {
width: 0;
}
.list-content {
padding: 0 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
/* ===== 公告卡片 ===== */
.announce-card {
background: var(--youth-bg-card);
border-radius: var(--youth-radius-md);
padding: 14px;
box-shadow:
0 2px 12px rgba(0, 0, 0, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
border: 1px solid var(--youth-border-light);
transition: all 0.2s ease;
}
.card-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
/* 分类标签 */
.cat-tag {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: var(--youth-radius-full);
font-size: 11px;
font-weight: 600;
}
.cat-tag.job {
background: var(--youth-primary-bg);
color: var(--youth-primary-dark);
}
.cat-tag.lecture {
background: var(--youth-orange-50);
color: var(--youth-orange-600);
}
.cat-tag.show {
background: var(--youth-mint-50);
color: var(--youth-mint-600);
}
/* 状态徽章 */
.status-badge {
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: var(--youth-radius-sm);
}
.status-pending {
background: var(--youth-warning-50);
color: var(--youth-warning-600);
}
.status-approved {
background: var(--youth-success-50);
color: var(--youth-success-600);
}
.status-rejected {
background: var(--youth-danger-50);
color: var(--youth-danger-600);
}
/* 标题 */
.card-title {
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
line-height: 1.4;
margin-bottom: 8px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 元信息 */
.card-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 12px;
}
.meta-item {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--youth-text-tertiary);
}
.meta-item svg {
width: 13px;
height: 13px;
flex-shrink: 0;
color: var(--youth-text-tertiary);
}
/* 数据行 */
.card-data {
display: flex;
gap: 20px;
padding-top: 10px;
border-top: 1px solid var(--youth-border-light);
margin-bottom: 12px;
}
.data-item {
font-size: 12px;
color: var(--youth-text-tertiary);
display: flex;
align-items: center;
gap: 4px;
}
.data-item svg {
width: 13px;
height: 13px;
flex-shrink: 0;
}
.data-item strong {
color: var(--youth-text-primary);
font-weight: 600;
}
/* 打回原因 */
.reject-box {
background: var(--youth-danger-50);
border-radius: var(--youth-radius-sm);
padding: 10px 12px;
font-size: 12px;
color: var(--youth-danger-600);
margin-bottom: 12px;
line-height: 1.5;
border: 1px solid var(--youth-danger-100);
}
.reject-box strong {
font-weight: 600;
}
/* 操作按钮 */
.card-actions {
display: flex;
gap: 10px;
}
.action-btn {
flex: 1;
height: 36px;
border-radius: var(--youth-radius-sm);
border: none;
font-size: 13px;
font-weight: 500;
cursor: pointer;
font-family: inherit;
transition: all 0.2s ease;
}
.action-btn:active {
transform: scale(0.97);
}
.action-btn.primary {
background: linear-gradient(135deg, #3FCFCA 0%, #26C2BB 100%);
color: #fff;
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.2);
position: relative;
overflow: hidden;
font-weight: 600;
}
.action-btn.primary::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
pointer-events: none;
}
.action-btn.outline {
background: var(--youth-gradient-matte-card);
border: 1px solid var(--youth-border);
color: var(--youth-text-secondary);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.action-btn.danger {
background: var(--youth-danger-50);
border: 1px solid var(--youth-danger-100);
color: var(--youth-danger-600);
}
/* 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="app-container" data-dom-id="app-container">
<!-- 状态栏 -->
<div class="status-bar">
<span>9:41</span>
<div class="right-icons">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"></path>
</svg>
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"></path>
</svg>
</div>
</div>
<!-- 导航栏 -->
<div class="nav-bar">
<button class="nav-btn" data-dom-id="btn-back" onclick="goBack()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<span class="nav-title">我的公告</span>
<button class="publish-btn" data-dom-id="btn-publish" onclick="goPublish()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" 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>
<span>发布</span>
</button>
</div>
<!-- Tab 切换 -->
<div class="tabs-bar">
<div class="tab-item active" data-dom-id="tab-all" data-tab="all" onclick="switchTab(this)">
全部 <span class="tab-count">(8)</span>
</div>
<div class="tab-item" data-dom-id="tab-pending" data-tab="pending" onclick="switchTab(this)">
待审核 <span class="tab-count">(2)</span>
</div>
<div class="tab-item" data-dom-id="tab-approved" data-tab="approved" onclick="switchTab(this)">
已通过 <span class="tab-count">(5)</span>
</div>
<div class="tab-item" data-dom-id="tab-rejected" data-tab="rejected" onclick="switchTab(this)">
已打回 <span class="tab-count">(1)</span>
</div>
</div>
<!-- 统计卡片 -->
<div class="stats-card">
<div class="stat-item">
<div class="stat-num">8</div>
<div class="stat-label">全部公告</div>
</div>
<div class="stat-item">
<div class="stat-num warning">2</div>
<div class="stat-label">待审核</div>
</div>
<div class="stat-item">
<div class="stat-num success">5</div>
<div class="stat-label">已通过</div>
</div>
<div class="stat-item">
<div class="stat-num danger">1</div>
<div class="stat-label">已打回</div>
</div>
</div>
<!-- 滚动列表 -->
<div class="scroll-area">
<div class="list-content">
<!-- 卡片1:待审核 - 招聘会 -->
<div class="announce-card" data-dom-id="card-1">
<div class="card-top">
<span class="cat-tag job">招聘会</span>
<span class="status-badge status-pending">审核中</span>
</div>
<div class="card-title">2024秋季校园招聘会 · 互联网大厂专场</div>
<div class="card-meta">
<span class="meta-item">
<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"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
</svg>
10月28日
</span>
<span class="meta-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
体育馆
</span>
</div>
<div class="card-data">
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
浏览 <strong>1,234</strong>
</div>
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
</svg>
报名 <strong>328</strong>
</div>
</div>
<div class="card-actions">
<button class="action-btn outline" onclick="viewDetail(1)">查看详情</button>
<button class="action-btn primary" onclick="withdrawAnnounce(1)">撤回</button>
</div>
</div>
<!-- 卡片2:待审核 - 讲座 -->
<div class="announce-card" data-dom-id="card-2">
<div class="card-top">
<span class="cat-tag lecture">讲座</span>
<span class="status-badge status-pending">审核中</span>
</div>
<div class="card-title">「人工智能前沿技术」主题讲座</div>
<div class="card-meta">
<span class="meta-item">
<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"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
</svg>
11月02日
</span>
<span class="meta-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
学术报告厅
</span>
</div>
<div class="card-data">
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
浏览 <strong>567</strong>
</div>
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
</svg>
报名 <strong>156</strong>
</div>
</div>
<div class="card-actions">
<button class="action-btn outline" onclick="viewDetail(2)">查看详情</button>
<button class="action-btn primary" onclick="withdrawAnnounce(2)">撤回</button>
</div>
</div>
<!-- 卡片3:已打回 - 演出 -->
<div class="announce-card" data-dom-id="card-3">
<div class="card-top">
<span class="cat-tag show">演出</span>
<span class="status-badge status-rejected">已打回</span>
</div>
<div class="card-title">校园歌手大赛决赛之夜</div>
<div class="card-meta">
<span class="meta-item">
<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"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
</svg>
10月25日
</span>
<span class="meta-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
大礼堂
</span>
</div>
<div class="reject-box">
<strong>打回原因:</strong>缺少主办方官方授权文件,请补充相关资质材料后重新提交。
</div>
<div class="card-data">
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
浏览 <strong>892</strong>
</div>
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
</svg>
报名 <strong>0</strong>
</div>
</div>
<div class="card-actions">
<button class="action-btn danger" onclick="deleteAnnounce(3)">删除</button>
<button class="action-btn primary" onclick="editAnnounce(3)">重新编辑</button>
</div>
</div>
<!-- 卡片4:已通过 - 招聘会 -->
<div class="announce-card" data-dom-id="card-4">
<div class="card-top">
<span class="cat-tag job">招聘会</span>
<span class="status-badge status-approved">已通过</span>
</div>
<div class="card-title">2024秋季校园招聘会</div>
<div class="card-meta">
<span class="meta-item">
<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"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
</svg>
10月25日
</span>
<span class="meta-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
体育馆
</span>
</div>
<div class="card-data">
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
浏览 <strong>2.3k</strong>
</div>
<div class="data-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
</svg>
报名 <strong>1,024</strong>
</div>
</div>
<div class="card-actions">
<button class="action-btn outline" onclick="viewDetail(4)">查看详情</button>
<button class="action-btn primary" onclick="shareAnnounce(4)">分享</button>
</div>
</div>
</div>
</div>
</div>
<script>
// 返回
function goBack() {
window.history.back();
}
// 发布公告
function goPublish() {
alert('跳转发布公告页');
}
// Tab 切换
function switchTab(el) {
document.querySelectorAll('.tab-item').forEach(function(t) {
t.classList.remove('active');
});
el.classList.add('active');
}
// 查看详情
function viewDetail(id) {
alert('查看公告详情 #' + id);
}
// 撤回
function withdrawAnnounce(id) {
alert('撤回公告 #' + id);
}
// 删除
function deleteAnnounce(id) {
if (confirm('确定删除该公告吗?')) {
alert('已删除 #' + id);
}
}
// 重新编辑
function editAnnounce(id) {
alert('重新编辑公告 #' + id);
}
// 分享
function shareAnnounce(id) {
alert('分享公告 #' + id);
}
</script>
</body>
</html>