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.
 
 

1190 lines
34 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">
<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', sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-primary);
min-height: 100vh;
overflow-x: hidden;
}
.page-container {
width: 375px;
margin: 0 auto;
min-height: 812px;
background: var(--youth-bg-page);
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* ===== 状态栏 ===== */
.status-bar {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
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;
}
/* ===== 导航栏 ===== */
.nav-bar {
height: 48px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
flex-shrink: 0;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #fff;
border: 1px solid var(--youth-border-light, #E8E8E8);
cursor: pointer;
transition: all 0.2s ease;
color: var(--youth-text-primary);
flex-shrink: 0;
}
.nav-btn:active {
transform: scale(0.92);
}
.nav-title {
font-size: 17px;
font-weight: 600;
color: var(--youth-text-primary);
position: absolute;
left: 50%;
transform: translateX(-50%);
}
/* ===== 数据统计卡片 ===== */
.stats-card {
margin: 4px 16px 16px;
background: #fff;
border-radius: 12px;
padding: 16px 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
flex-shrink: 0;
}
.stats-row {
display: flex;
align-items: center;
justify-content: space-around;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
flex: 1;
position: relative;
}
.stat-item:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 28px;
background: var(--youth-border-light, #E8E8E8);
}
.stat-number {
font-size: 22px;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.02em;
}
.stat-number.primary { color: var(--youth-primary, #26C2BB); }
.stat-number.warning { color: #FFB980; }
.stat-number.muted { color: var(--youth-text-tertiary, #8C8C8C); }
.stat-label {
font-size: 12px;
color: var(--youth-text-tertiary, #8C8C8C);
font-weight: 500;
}
.stats-footer {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--youth-border-light, #E8E8E8);
text-align: center;
font-size: 12px;
color: var(--youth-text-tertiary, #8C8C8C);
}
/* ===== 搜索+标签+筛选 区域 ===== */
.search-filter-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 0 16px 12px;
flex-shrink: 0;
}
.search-box {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
padding: 0 14px;
height: 38px;
background: #fff;
border-radius: 20px;
border: 1px solid var(--youth-border-light, #E8E8E8);
cursor: pointer;
transition: all 0.2s ease;
}
.search-box:active {
border-color: var(--youth-primary, #26C2BB);
}
.search-box svg {
width: 16px;
height: 16px;
color: var(--youth-text-tertiary, #8C8C8C);
flex-shrink: 0;
}
.search-box span {
font-size: 13px;
color: var(--youth-text-placeholder, #B0B0B0);
}
.filter-btn {
width: 38px;
height: 38px;
border-radius: 50%;
background: #fff;
border: 1px solid var(--youth-border-light, #E8E8E8);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
color: var(--youth-text-primary);
transition: all 0.2s ease;
}
.filter-btn:active {
transform: scale(0.92);
}
.filter-btn svg {
width: 18px;
height: 18px;
}
/* ===== 分类标签栏 ===== */
.category-bar {
display: flex;
gap: 8px;
padding: 0 16px 16px;
overflow-x: auto;
flex-shrink: 0;
scrollbar-width: none;
-ms-overflow-style: none;
}
.category-bar::-webkit-scrollbar {
display: none;
}
.cat-tag {
flex-shrink: 0;
padding: 7px 18px;
border-radius: 16px;
font-size: 13px;
font-weight: 500;
color: var(--youth-text-secondary, #595959);
background: #fff;
border: 1px solid var(--youth-border-light, #E8E8E8);
cursor: pointer;
transition: all 0.2s ease;
}
.cat-tag:active {
transform: scale(0.96);
}
.cat-tag.active {
background: #FFF1DE;
color: #FF9F45;
border-color: #FFD4A3;
font-weight: 600;
}
/* ===== Tab内容区 ===== */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
/* ===== 活动列表 ===== */
.activity-list {
padding: 0 16px;
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
min-height: 0;
padding-bottom: 100px;
}
/* ===== 活动卡片 ===== */
.activity-card {
background: #fff;
border-radius: 12px;
padding: 16px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.activity-card:active {
transform: scale(0.99);
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
/* 状态标签 */
.status-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 8px;
font-size: 11px;
font-weight: 600;
}
.status-tag svg {
width: 11px;
height: 11px;
}
.status-tag.pending {
background: rgba(255, 185, 128, 0.12);
color: #FF9F45;
}
.status-tag.approved {
background: rgba(38, 194, 187, 0.12);
color: var(--youth-primary, #26C2BB);
}
.status-tag.rejected {
background: rgba(245, 34, 45, 0.1);
color: #F5222D;
}
.status-tag.ended {
background: rgba(140, 140, 140, 0.12);
color: var(--youth-text-tertiary, #8C8C8C);
}
.submit-time {
font-size: 11px;
color: var(--youth-text-tertiary, #8C8C8C);
}
/* 活动主体 */
.activity-body {
display: flex;
gap: 12px;
margin-bottom: 12px;
}
.activity-cover {
width: 64px;
height: 64px;
border-radius: 10px;
flex-shrink: 0;
overflow: hidden;
position: relative;
}
.activity-cover.sports {
background: linear-gradient(135deg, #7ED6D2 0%, #26C2BB 100%);
}
.activity-cover.boardgame {
background: linear-gradient(135deg, #FFD4A3 0%, #FF9F0A 100%);
}
.activity-cover.study {
background: linear-gradient(135deg, #A5E3E0 0%, #26C2BB 100%);
}
.activity-cover.movie {
background: linear-gradient(135deg, #FFB3B3 0%, #FF6B6B 100%);
}
.activity-cover.food {
background: linear-gradient(135deg, #B3E5FC 0%, #4FC3F7 100%);
}
.activity-cover.travel {
background: linear-gradient(135deg, #C8E6C9 0%, #66BB6A 100%);
}
.activity-cover-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 26px;
opacity: 0.95;
}
.activity-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
}
.activity-title {
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 8px;
}
.activity-meta {
display: flex;
flex-direction: column;
gap: 5px;
}
.meta-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--youth-text-tertiary, #8C8C8C);
}
.meta-item svg {
width: 13px;
height: 13px;
flex-shrink: 0;
}
.meta-item .people-count {
color: var(--youth-primary, #26C2BB);
font-weight: 600;
}
/* 审核信息条 */
.review-info {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--youth-text-tertiary, #8C8C8C);
padding: 8px 12px;
background: var(--youth-bg-page, #F7F8FA);
border-radius: 8px;
margin-bottom: 12px;
}
.review-info svg {
width: 14px;
height: 14px;
color: #FFB980;
flex-shrink: 0;
}
.review-info.success svg {
color: var(--youth-primary, #26C2BB);
}
/* 数据统计行 */
.activity-stats {
display: flex;
align-items: center;
gap: 16px;
padding: 8px 12px;
background: var(--youth-bg-page, #F7F8FA);
border-radius: 8px;
margin-bottom: 12px;
}
.stat-inline {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--youth-text-tertiary, #8C8C8C);
}
.stat-inline svg {
width: 13px;
height: 13px;
}
/* 驳回原因 */
.reject-reason {
margin-bottom: 12px;
padding: 12px;
background: rgba(245, 34, 45, 0.05);
border-radius: 8px;
border-left: 3px solid #F5222D;
}
.reject-title {
font-size: 13px;
font-weight: 600;
color: #F5222D;
margin-bottom: 6px;
}
.reject-text {
font-size: 12px;
line-height: 1.5;
color: var(--youth-text-secondary, #595959);
}
/* 底部操作区 */
.card-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
padding-top: 12px;
border-top: 1px solid var(--youth-border-light, #E8E8E8);
}
.action-btn {
padding: 7px 16px;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
border: none;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.action-btn:active {
transform: scale(0.96);
}
.action-btn.ghost {
background: transparent;
color: var(--youth-text-tertiary, #8C8C8C);
}
.action-btn.ghost:active {
color: var(--youth-text-primary);
}
.action-btn.secondary {
background: var(--youth-bg-page, #F7F8FA);
color: var(--youth-text-secondary, #595959);
border: 1px solid var(--youth-border-light, #E8E8E8);
}
.action-btn.outline {
background: #fff;
color: var(--youth-primary, #26C2BB);
border: 1px solid rgba(38, 194, 187, 0.4);
}
.action-btn.primary {
background: var(--youth-primary, #26C2BB);
color: #fff;
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
}
.action-btn.danger {
background: transparent;
color: #F5222D;
}
/* ===== 空数据状态 ===== */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 40px 120px;
text-align: center;
}
.empty-icon {
width: 100px;
height: 100px;
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: center;
background: #E6FAF9;
border-radius: 50%;
}
.empty-icon svg {
width: 48px;
height: 48px;
color: var(--youth-primary, #26C2BB);
}
.empty-text {
font-size: 14px;
color: var(--youth-text-tertiary, #8C8C8C);
line-height: 1.6;
margin-bottom: 24px;
}
.empty-action-btn {
padding: 10px 28px;
background: var(--youth-primary, #26C2BB);
color: #fff;
font-size: 14px;
font-weight: 600;
border-radius: 20px;
border: none;
cursor: pointer;
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.3);
transition: all 0.2s ease;
}
.empty-action-btn:active {
transform: scale(0.96);
}
/* ===== 浮动发布按钮 ===== */
.fab-btn {
position: absolute;
right: 16px;
bottom: 32px;
width: 52px;
height: 52px;
border-radius: 50%;
background: linear-gradient(135deg, #3FCFCA 0%, #26C2BB 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 6px 20px rgba(38, 194, 187, 0.35);
cursor: pointer;
z-index: 60;
transition: all 0.2s ease;
border: none;
}
.fab-btn:active {
transform: scale(0.9);
}
.fab-btn svg {
width: 24px;
height: 24px;
stroke-width: 2.5;
}
/* ===== 底部筛选弹窗 ===== */
.filter-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 998;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.filter-overlay.show {
opacity: 1;
visibility: visible;
}
.filter-sheet {
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: -100%;
width: 375px;
background: #fff;
border-radius: 20px 20px 0 0;
z-index: 999;
transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
padding-bottom: 34px;
}
.filter-sheet.show {
bottom: 0;
}
.filter-sheet-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--youth-border-light, #E8E8E8);
}
.filter-sheet-title {
font-size: 16px;
font-weight: 600;
color: var(--youth-text-primary);
}
.filter-close-btn {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--youth-bg-page, #F7F8FA);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--youth-text-tertiary, #8C8C8C);
}
.filter-close-btn svg {
width: 16px;
height: 16px;
}
.filter-options-list {
padding: 8px 0;
}
.filter-option {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
font-size: 14px;
color: var(--youth-text-primary);
cursor: pointer;
transition: background 0.2s ease;
}
.filter-option:active {
background: var(--youth-bg-page, #F7F8FA);
}
.filter-option.selected {
color: var(--youth-primary, #26C2BB);
font-weight: 600;
}
.filter-option .check-icon {
width: 18px;
height: 18px;
color: var(--youth-primary, #26C2BB);
opacity: 0;
}
.filter-option.selected .check-icon {
opacity: 1;
}
@media (min-width: 376px) {
.filter-sheet {
left: 50%;
transform: translateX(-50%);
}
.filter-overlay {
left: 50%;
transform: translateX(-50%);
width: 375px;
}
}
</style>
</head>
<body>
<div class="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>
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
</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>
</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>
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
</svg>
</div>
</div>
<!-- 导航栏 -->
<div class="nav-bar">
<button class="nav-btn" onclick="goBack()">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<span class="nav-title">我的组局</span>
</div>
<!-- 数据统计卡片 -->
<!-- 搜索+筛选 -->
<div class="search-filter-bar">
<div class="search-box">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<span>搜索活动</span>
</div>
<button class="filter-btn" id="btn-filter" onclick="openFilter()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 3H2l8 9.46V19l4 2v-8.54L22 3z"></path>
</svg>
</button>
</div>
<!-- 分类标签 -->
<div class="category-bar">
<div class="cat-tag active" data-tab="joined" onclick="switchTab('joined')">参与</div>
<div class="cat-tag" data-tab="managed" onclick="switchTab('managed')">管理</div>
</div>
<!-- ========== 参与 Tab ========== -->
<div class="tab-content active" id="tab-joined">
<div class="activity-list">
<!-- 卡片1:审核中 -->
<div class="activity-card">
<div class="card-header">
<span class="status-tag pending">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12a9 9 0 1 1-6.219-8.56"></path>
</svg>
审核中
</span>
<span class="submit-time">2小时前提交</span>
</div>
<div class="activity-body">
<div class="activity-cover sports">
</div>
<div class="activity-info">
<div class="activity-title">周末羽毛球双打约起来</div>
<div class="activity-meta">
<div 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" 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>
周六 14:00
</div>
<div 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>
校内羽毛球馆
</div>
<div class="meta-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>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<span class="people-count">2</span>/4 人
</div>
</div>
</div>
</div>
<div class="card-actions">
<button class="action-btn ghost" onclick="handleWithdraw(1)">撤回</button>
</div>
</div>
<!-- 卡片2:已通过 -->
<div class="activity-card">
<div class="card-header">
<span class="status-tag approved">
<svg 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>
已通过
</span>
<span class="submit-time">进行中 · 2天后开始</span>
</div>
<div class="activity-body">
<div class="activity-cover study">
</div>
<div class="activity-info">
<div class="activity-title">期末复习自习搭子,图书馆三楼一起冲!</div>
<div class="activity-meta">
<div 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" 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>
每天 09:00-21:00
</div>
<div 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>
图书馆三楼
</div>
<div class="meta-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>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<span class="people-count">5</span>/8 人
</div>
</div>
</div>
</div>
<div class="card-actions">
<button class="action-btn ghost">分享</button>
<button class="action-btn secondary">结束活动</button>
<button class="action-btn outline">编辑</button>
</div>
</div>
<!-- 卡片3:已打回 -->
<div class="activity-card">
<div class="card-header">
<span class="status-tag rejected">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
已打回
</span>
<span class="submit-time">今天 14:30</span>
</div>
<div class="activity-body">
<div class="activity-cover travel">
</div>
<div class="activity-info">
<div class="activity-title">周末户外露营徒步|后山星空露营</div>
<div class="activity-meta">
<div 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" 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>
周六 08:00 - 周日
</div>
<div 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>
后山营地
</div>
<div class="meta-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>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<span class="people-count">0</span>/10 人
</div>
</div>
</div>
</div>
<div class="reject-reason">
<div class="reject-title">驳回原因</div>
<div class="reject-text">活动描述不够清晰,请补充活动具体流程和注意事项。</div>
</div>
<div class="card-actions">
<button class="action-btn danger">删除</button>
<button class="action-btn primary">重新编辑</button>
</div>
</div>
<!-- 卡片4:已结束 -->
<div class="activity-card">
<div class="card-header">
<span class="status-tag ended">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
已结束
</span>
<span class="submit-time">3天前结束</span>
</div>
<div class="activity-body">
<div class="activity-cover sports" style="opacity: 0.7;">
</div>
<div class="activity-info">
<div class="activity-title">校园3v3篮球友谊赛</div>
<div class="activity-meta">
<div 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" 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>
上周六 15:00
</div>
<div 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>
篮球场
</div>
<div class="meta-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>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
12/12 人
</div>
</div>
</div>
</div>
<div class="card-actions">
<button class="action-btn ghost">分享</button>
<button class="action-btn outline">再来一局</button>
</div>
</div>
</div>
</div>
<!-- ========== 管理 Tab ========== -->
<div class="tab-content" id="tab-managed">
<div class="activity-list">
<div class="empty-state">
<div class="empty-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<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="9" y1="15" x2="15" y2="15"></line>
</svg>
</div>
<div class="empty-text">Emmmm…这里暂无数据,<br>逛逛其它吧!</div>
</div>
</div>
</div>
<!-- ========== 收藏 Tab ========== -->
<div class="tab-content" id="tab-collected">
<div class="activity-list">
<div class="empty-state">
<div class="empty-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>
</svg>
</div>
<div class="empty-text">Emmmm…这里暂无数据,<br>逛逛其它吧!</div>
</div>
</div>
</div>
<!-- 浮动发布按钮 -->
<!-- 筛选遮罩 -->
<div class="filter-overlay" id="filter-overlay" onclick="closeFilter()"></div>
<!-- 底部筛选弹窗 -->
<div class="filter-sheet" id="filter-sheet">
<div class="filter-sheet-header">
<span class="filter-sheet-title">筛选状态</span>
<button class="filter-close-btn" onclick="closeFilter()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<div class="filter-options-list">
<div class="filter-option selected" onclick="selectFilter(this, 'all')">
全部
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'planning')">
规划中
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'signing')">
报名中
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'waiting')">
等待中
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'ongoing')">
进行中
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'ended')">
已结束
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<div class="filter-option" onclick="selectFilter(this, 'finished')">
已完结
<svg class="check-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
</div>
</div>
</div>
<script>
// 返回
function goBack() {
window.location.href = 'activity-list.html';
}
// 创建组局
function goCreate() {
window.location.href = 'activity-create.html';
}
// Tab 切换
let currentTab = 'joined';
function switchTab(tabName) {
if (currentTab === tabName) return;
const tags = document.querySelectorAll('.cat-tag');
tags.forEach(t => t.classList.remove('active'));
event.target.classList.add('active');
const contents = document.querySelectorAll('.tab-content');
contents.forEach(c => c.classList.remove('active'));
document.getElementById('tab-' + tabName).classList.add('active');
currentTab = tabName;
}
// 撤回
function handleWithdraw(id) {
if (confirm('确定要撤回这个组局吗?撤回后可以重新编辑再提交。')) {
alert('已撤回');
}
}
// 筛选弹窗
function openFilter() {
document.getElementById('filter-overlay').classList.add('show');
document.getElementById('filter-sheet').classList.add('show');
document.body.style.overflow = 'hidden';
}
function closeFilter() {
document.getElementById('filter-overlay').classList.remove('show');
document.getElementById('filter-sheet').classList.remove('show');
document.body.style.overflow = '';
}
function selectFilter(el, value) {
const options = document.querySelectorAll('.filter-option');
options.forEach(o => o.classList.remove('selected'));
el.classList.add('selected');
setTimeout(closeFilter, 200);
}
</script>
</body>
</html>