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.
1251 lines
34 KiB
1251 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>
|
|
/* ============================================================
|
|
* 发布者活动管理页 - Traework 设计系统规范
|
|
* 浅色/深色双主题
|
|
* ============================================================ */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
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;
|
|
transition: background 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
/* 页面容器 */
|
|
.page-container {
|
|
width: 375px;
|
|
min-height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
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 4px;
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-left,
|
|
.nav-right {
|
|
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-bg-hover);
|
|
}
|
|
|
|
.nav-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.nav-more {
|
|
position: relative;
|
|
}
|
|
|
|
.more-dropdown {
|
|
position: absolute;
|
|
top: 40px;
|
|
right: 0;
|
|
width: 140px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
z-index: 50;
|
|
overflow: hidden;
|
|
display: none;
|
|
}
|
|
|
|
.more-dropdown.show {
|
|
display: block;
|
|
}
|
|
|
|
.more-item {
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
color: var(--youth-text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.more-item:active {
|
|
background: var(--youth-bg-hover);
|
|
}
|
|
|
|
.more-item.danger {
|
|
color: var(--youth-danger-500, #F5222D);
|
|
}
|
|
|
|
.more-item svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* ============================================================
|
|
* 内容区
|
|
* ============================================================ */
|
|
.scroll-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 4px 16px 90px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.scroll-content::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 活动概览卡片 */
|
|
.activity-overview {
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
box-shadow: 0 2px 12px var(--youth-shadow-card, rgba(0, 0, 0, 0.04));
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
}
|
|
|
|
.overview-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.overview-title {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
line-height: 1.3;
|
|
flex: 1;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.status-badge {
|
|
flex-shrink: 0;
|
|
padding: 4px 10px;
|
|
border-radius: 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: var(--youth-primary-bg, #E6F7F6);
|
|
color: var(--youth-primary, #26C2BB);
|
|
}
|
|
|
|
.overview-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--youth-border-lighter, #F5F6F8);
|
|
}
|
|
|
|
.info-line {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
.info-line svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-line .label {
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-line .value {
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.progress-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.progress-num {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.progress-num strong {
|
|
color: var(--youth-primary, #26C2BB);
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.progress-track {
|
|
flex: 1;
|
|
height: 6px;
|
|
background: var(--youth-gray-200, #F0F0F0);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
width: 60%;
|
|
border-radius: 4px;
|
|
background: var(--youth-gradient-primary);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
/* 管理标签区 */
|
|
.manage-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
overflow-x: auto;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
padding: 4px;
|
|
box-shadow: 0 2px 8px var(--youth-shadow-card, rgba(0, 0, 0, 0.03));
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.manage-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.tab-item {
|
|
flex-shrink: 0;
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-secondary);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tab-item.active {
|
|
background: var(--youth-primary, #26C2BB);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
.tab-item .badge {
|
|
min-width: 16px;
|
|
height: 16px;
|
|
padding: 0 5px;
|
|
border-radius: 8px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-bg-disabled, #F0F0F0);
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.tab-item.active .badge {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
color: #fff;
|
|
}
|
|
|
|
/* 批量操作栏 */
|
|
.batch-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
.batch-count {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.batch-count strong {
|
|
color: var(--youth-primary, #26C2BB);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.batch-btn {
|
|
padding: 6px 14px;
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
background: var(--youth-primary-bg, #E6F7F6);
|
|
color: var(--youth-primary, #26C2BB);
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.batch-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.batch-btn svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* 报名列表 */
|
|
.member-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.member-card {
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
box-shadow: 0 2px 8px var(--youth-shadow-card, rgba(0, 0, 0, 0.03));
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.member-card:active {
|
|
transform: scale(0.99);
|
|
}
|
|
|
|
.member-avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.member-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.member-name-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.member-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.real-name-tag {
|
|
flex-shrink: 0;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
background: var(--youth-primary-bg, #E6F7F6);
|
|
color: var(--youth-primary, #26C2BB);
|
|
}
|
|
|
|
.member-meta {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.member-meta .sep {
|
|
color: var(--youth-divider, #E8E8E8);
|
|
}
|
|
|
|
.status-tag {
|
|
flex-shrink: 0;
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-tag.pending {
|
|
background: rgba(250, 173, 20, 0.12);
|
|
color: var(--youth-warning, #FAAD14);
|
|
}
|
|
|
|
.status-tag.approved {
|
|
background: rgba(82, 196, 26, 0.12);
|
|
color: var(--youth-success-500, #52C41A);
|
|
}
|
|
|
|
.status-tag.rejected {
|
|
background: rgba(245, 34, 45, 0.1);
|
|
color: var(--youth-danger-500, #F5222D);
|
|
}
|
|
|
|
.action-btns {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 6px 12px;
|
|
border-radius: 14px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.action-btn:active {
|
|
transform: scale(0.93);
|
|
}
|
|
|
|
.action-btn.approve {
|
|
background: var(--youth-primary, #26C2BB);
|
|
color: #fff;
|
|
box-shadow: 0 1px 4px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
.action-btn.reject {
|
|
background: transparent;
|
|
color: var(--youth-text-tertiary);
|
|
border: 1px solid var(--youth-border-light, #E8E8E8);
|
|
}
|
|
|
|
.action-btn.kick {
|
|
background: transparent;
|
|
color: var(--youth-danger-500, #F5222D);
|
|
border: 1px solid rgba(245, 34, 45, 0.3);
|
|
}
|
|
|
|
/* 底部操作区 */
|
|
.bottom-action {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12px 16px 20px;
|
|
background: var(--youth-bg-glass, rgba(255, 255, 255, 0.72));
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-top: 1px solid var(--youth-border-light, rgba(232, 232, 232, 0.5));
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-danger-outline {
|
|
flex: 1;
|
|
height: 44px;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--youth-danger-500, #F5222D);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
border: 1px solid rgba(245, 34, 45, 0.3);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-danger-outline:active {
|
|
background: rgba(245, 34, 45, 0.06);
|
|
}
|
|
|
|
.btn-danger-outline svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.btn-primary {
|
|
flex: 2;
|
|
height: 44px;
|
|
border-radius: 8px;
|
|
background: var(--youth-gradient-primary);
|
|
color: #FFFFFF;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 1px 4px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
.btn-primary svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* ============================================================
|
|
* 确认弹窗
|
|
* ============================================================ */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 375px;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.modal-overlay.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-dialog {
|
|
width: 300px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 16px;
|
|
padding: 24px 20px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: scale(0.9) translateY(20px);
|
|
opacity: 0;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.modal-overlay.show .modal-dialog {
|
|
transform: scale(1) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(245, 34, 45, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 14px;
|
|
}
|
|
|
|
.modal-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
stroke: var(--youth-danger-500, #F5222D);
|
|
fill: none;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
text-align: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.modal-desc {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.modal-input-wrapper {
|
|
background: var(--youth-bg-input, #F5F6F8);
|
|
border-radius: 8px;
|
|
padding: 2px 12px;
|
|
margin-bottom: 16px;
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-input-wrapper:focus-within {
|
|
border-color: var(--youth-primary, #26C2BB);
|
|
}
|
|
|
|
.modal-input-wrapper input {
|
|
width: 100%;
|
|
height: 38px;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.modal-input-wrapper input::placeholder {
|
|
color: var(--youth-text-placeholder, #B0B0B0);
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.modal-btn-cancel {
|
|
flex: 1;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: var(--youth-bg-hover, #F0F1F3);
|
|
color: var(--youth-text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-btn-cancel:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modal-btn-danger {
|
|
flex: 1;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: var(--youth-danger-500, #F5222D);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-btn-danger:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
/* ============================================================
|
|
* 深色主题
|
|
* ============================================================ */
|
|
[data-theme="dark"] .activity-overview,
|
|
[data-theme="dark"] .manage-tabs,
|
|
[data-theme="dark"] .member-card,
|
|
[data-theme="dark"] .more-dropdown,
|
|
[data-theme="dark"] .modal-dialog,
|
|
[data-theme="dark"] .modal-input-wrapper {
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
[data-theme="dark"] .overview-info {
|
|
border-top-color: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
[data-theme="dark"] .status-badge {
|
|
background: rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
[data-theme="dark"] .real-name-tag {
|
|
background: rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
[data-theme="dark"] .batch-btn {
|
|
background: rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
[data-theme="dark"] .action-btn.reject {
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .bottom-action {
|
|
background: rgba(26, 26, 26, 0.75);
|
|
border-top-color: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
[data-theme="dark"] .btn-danger-outline {
|
|
border-color: rgba(245, 34, 45, 0.3);
|
|
}
|
|
|
|
[data-theme="dark"] .btn-danger-outline:active {
|
|
background: rgba(245, 34, 45, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .progress-track {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .modal-icon {
|
|
background: rgba(245, 34, 45, 0.2);
|
|
}
|
|
|
|
[data-theme="dark"] .modal-btn-cancel {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
[data-theme="dark"] .member-meta .sep {
|
|
color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* 主题切换按钮(演示用) */
|
|
.theme-toggle {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border-light, #F0F1F3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
box-shadow: 0 2px 8px var(--youth-shadow-card, rgba(0, 0, 0, 0.04));
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.theme-toggle:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke: var(--youth-text-secondary);
|
|
fill: none;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body data-theme="light">
|
|
<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="top-nav">
|
|
<div class="nav-left">
|
|
<button class="nav-btn" id="btn-back" aria-label="返回">
|
|
<svg viewBox="0 0 24 24">
|
|
<path d="M15 18 9 12l6-6"></path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div class="nav-title">活动管理</div>
|
|
<div class="nav-right">
|
|
<div class="nav-more">
|
|
<button class="nav-btn" id="btn-more" aria-label="更多">
|
|
<svg viewBox="0 0 24 24">
|
|
<circle cx="12" cy="12" r="1"></circle>
|
|
<circle cx="19" cy="12" r="1"></circle>
|
|
<circle cx="5" cy="12" r="1"></circle>
|
|
</svg>
|
|
</button>
|
|
<div class="more-dropdown" id="more-dropdown">
|
|
<div class="more-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M12 20h9"></path>
|
|
<path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"></path>
|
|
</svg>
|
|
编辑活动
|
|
</div>
|
|
<div class="more-item">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
|
<polyline points="17 8 12 3 7 8"></polyline>
|
|
<line x1="12" y1="3" x2="12" y2="15"></line>
|
|
</svg>
|
|
分享活动
|
|
</div>
|
|
<div class="more-item danger">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<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>
|
|
取消活动
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 内容区 -->
|
|
<div class="scroll-content">
|
|
<!-- 活动概览卡片 -->
|
|
<div class="activity-overview">
|
|
<div class="overview-header">
|
|
<div class="overview-title">周六羽毛球组队</div>
|
|
<span class="status-badge">报名中</span>
|
|
</div>
|
|
<div class="overview-info">
|
|
<div class="info-line">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
<span class="label">时间</span>
|
|
<span class="value">6月15日 14:00 - 17:00</span>
|
|
</div>
|
|
<div class="info-line">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"></path>
|
|
<circle cx="12" cy="10" r="3"></circle>
|
|
</svg>
|
|
<span class="label">地点</span>
|
|
<span class="value">学校体育馆 A 馆</span>
|
|
</div>
|
|
<div class="progress-row">
|
|
<div class="progress-num"><strong>12</strong> / 20 人</div>
|
|
<div class="progress-track">
|
|
<div class="progress-fill" style="width: 60%;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 管理标签区 -->
|
|
<div class="manage-tabs">
|
|
<div class="tab-item" data-tab="list">报名列表</div>
|
|
<div class="tab-item active" data-tab="pending">
|
|
待审核
|
|
<span class="badge">5</span>
|
|
</div>
|
|
<div class="tab-item" data-tab="approved">已通过</div>
|
|
<div class="tab-item" data-tab="notice">活动通知</div>
|
|
<div class="tab-item" data-tab="checkin">签到管理</div>
|
|
</div>
|
|
|
|
<!-- 批量操作栏 -->
|
|
<div class="batch-bar">
|
|
<div class="batch-count">待审核 <strong>5</strong> 人</div>
|
|
<button class="batch-btn" id="btn-batch-approve">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
全部通过
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 报名列表 -->
|
|
<div class="member-list">
|
|
<!-- 成员1 -->
|
|
<div class="member-card">
|
|
<div class="member-avatar" style="background: linear-gradient(135deg, #E6F7F6, #7ED6D2);">
|
|
</div>
|
|
<div class="member-info">
|
|
<div class="member-name-row">
|
|
<span class="member-name">李明轩</span>
|
|
<span class="real-name-tag">实名</span>
|
|
</div>
|
|
<div class="member-meta">
|
|
<span>10分钟前</span>
|
|
<span class="sep">·</span>
|
|
<span>报名1人</span>
|
|
</div>
|
|
</div>
|
|
<span class="status-tag pending">待审核</span>
|
|
</div>
|
|
|
|
<!-- 成员2 -->
|
|
<div class="member-card">
|
|
<div class="member-avatar" style="background: linear-gradient(135deg, #FFEEDD, #FFB980);">
|
|
</div>
|
|
<div class="member-info">
|
|
<div class="member-name-row">
|
|
<span class="member-name">王思琪</span>
|
|
<span class="real-name-tag">实名</span>
|
|
</div>
|
|
<div class="member-meta">
|
|
<span>25分钟前</span>
|
|
<span class="sep">·</span>
|
|
<span>报名2人</span>
|
|
</div>
|
|
</div>
|
|
<span class="status-tag pending">待审核</span>
|
|
</div>
|
|
|
|
<!-- 成员3 -->
|
|
<div class="member-card">
|
|
<div class="member-avatar" style="background: linear-gradient(135deg, #E8F5E9, #81C784);">
|
|
</div>
|
|
<div class="member-info">
|
|
<div class="member-name-row">
|
|
<span class="member-name">张浩然</span>
|
|
<span class="real-name-tag">实名</span>
|
|
</div>
|
|
<div class="member-meta">
|
|
<span>1小时前</span>
|
|
<span class="sep">·</span>
|
|
<span>报名1人</span>
|
|
</div>
|
|
</div>
|
|
<div class="action-btns">
|
|
<button class="action-btn approve">通过</button>
|
|
<button class="action-btn reject" data-action="reject">拒绝</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 成员4 -->
|
|
<div class="member-card">
|
|
<div class="member-avatar" style="background: linear-gradient(135deg, #E8EAF6, #9FA8DA);">
|
|
</div>
|
|
<div class="member-info">
|
|
<div class="member-name-row">
|
|
<span class="member-name">陈雨桐</span>
|
|
<span class="real-name-tag">实名</span>
|
|
</div>
|
|
<div class="member-meta">
|
|
<span>2小时前</span>
|
|
<span class="sep">·</span>
|
|
<span>报名1人</span>
|
|
</div>
|
|
</div>
|
|
<div class="action-btns">
|
|
<button class="action-btn approve">通过</button>
|
|
<button class="action-btn reject" data-action="reject">拒绝</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 成员5 -->
|
|
<div class="member-card">
|
|
<div class="member-avatar" style="background: linear-gradient(135deg, #FFF3E0, #FFB74D);">
|
|
</div>
|
|
<div class="member-info">
|
|
<div class="member-name-row">
|
|
<span class="member-name">刘子豪</span>
|
|
<span class="real-name-tag">实名</span>
|
|
</div>
|
|
<div class="member-meta">
|
|
<span>3小时前</span>
|
|
<span class="sep">·</span>
|
|
<span>报名3人</span>
|
|
</div>
|
|
</div>
|
|
<div class="action-btns">
|
|
<button class="action-btn approve">通过</button>
|
|
<button class="action-btn reject" data-action="reject">拒绝</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部操作区 -->
|
|
<div class="bottom-action">
|
|
<button class="btn-danger-outline" id="btn-cancel-activity">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<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>
|
|
<button class="btn-primary">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<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>
|
|
发布通知
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 取消活动确认弹窗 -->
|
|
<div class="modal-overlay" id="cancel-modal">
|
|
<div class="modal-dialog">
|
|
<div class="modal-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M10.29 3.86 1.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>
|
|
<div class="modal-title">确认取消活动?</div>
|
|
<div class="modal-desc">取消后将通知所有已报名用户,且无法恢复</div>
|
|
<div class="modal-input-wrapper">
|
|
<input type="text" placeholder="请填写取消原因(选填)">
|
|
</div>
|
|
<div class="modal-actions">
|
|
<button class="modal-btn-cancel" id="modal-cancel-btn">再想想</button>
|
|
<button class="modal-btn-danger" id="modal-confirm-btn">确认取消</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 拒绝原因弹窗 -->
|
|
<div class="modal-overlay" id="reject-modal">
|
|
<div class="modal-dialog">
|
|
<div class="modal-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<line x1="15" y1="9" x2="9" y2="15"></line>
|
|
<line x1="9" y1="9" x2="15" y2="15"></line>
|
|
</svg>
|
|
</div>
|
|
<div class="modal-title">拒绝报名</div>
|
|
<div class="modal-desc">请填写拒绝原因,用户将会收到通知</div>
|
|
<div class="modal-input-wrapper">
|
|
<input type="text" placeholder="例如:名额已满 / 不符合条件">
|
|
</div>
|
|
<div class="modal-actions">
|
|
<button class="modal-btn-cancel" onclick="closeRejectModal()">取消</button>
|
|
<button class="modal-btn-danger" onclick="closeRejectModal()">确认拒绝</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 返回按钮
|
|
document.getElementById('btn-back').addEventListener('click', function() {
|
|
if (window.history.length > 1) {
|
|
window.history.back();
|
|
}
|
|
});
|
|
|
|
// 更多下拉
|
|
const btnMore = document.getElementById('btn-more');
|
|
const moreDropdown = document.getElementById('more-dropdown');
|
|
btnMore.addEventListener('click', function(e) {
|
|
e.stopPropagation();
|
|
moreDropdown.classList.toggle('show');
|
|
});
|
|
document.addEventListener('click', function() {
|
|
moreDropdown.classList.remove('show');
|
|
});
|
|
|
|
// 标签切换
|
|
const tabItems = document.querySelectorAll('.tab-item');
|
|
tabItems.forEach(tab => {
|
|
tab.addEventListener('click', function() {
|
|
tabItems.forEach(t => t.classList.remove('active'));
|
|
this.classList.add('active');
|
|
});
|
|
});
|
|
|
|
// 取消活动弹窗
|
|
const cancelModal = document.getElementById('cancel-modal');
|
|
const btnCancelActivity = document.getElementById('btn-cancel-activity');
|
|
const modalCancelBtn = document.getElementById('modal-cancel-btn');
|
|
const modalConfirmBtn = document.getElementById('modal-confirm-btn');
|
|
|
|
btnCancelActivity.addEventListener('click', function() {
|
|
cancelModal.classList.add('show');
|
|
});
|
|
|
|
modalCancelBtn.addEventListener('click', function() {
|
|
cancelModal.classList.remove('show');
|
|
});
|
|
|
|
modalConfirmBtn.addEventListener('click', function() {
|
|
cancelModal.classList.remove('show');
|
|
console.log('活动已取消');
|
|
});
|
|
|
|
cancelModal.addEventListener('click', function(e) {
|
|
if (e.target === cancelModal) {
|
|
cancelModal.classList.remove('show');
|
|
}
|
|
});
|
|
|
|
// 拒绝弹窗
|
|
const rejectModal = document.getElementById('reject-modal');
|
|
document.querySelectorAll('[data-action="reject"]').forEach(btn => {
|
|
btn.addEventListener('click', function(e) {
|
|
e.stopPropagation();
|
|
rejectModal.classList.add('show');
|
|
});
|
|
});
|
|
|
|
function closeRejectModal() {
|
|
rejectModal.classList.remove('show');
|
|
}
|
|
window.closeRejectModal = closeRejectModal;
|
|
|
|
rejectModal.addEventListener('click', function(e) {
|
|
if (e.target === rejectModal) {
|
|
rejectModal.classList.remove('show');
|
|
}
|
|
});
|
|
|
|
// 主题切换(演示用)
|
|
const themeToggle = document.getElementById('themeToggle');
|
|
themeToggle.addEventListener('click', function() {
|
|
const body = document.body;
|
|
const current = body.getAttribute('data-theme');
|
|
const next = current === 'light' ? 'dark' : 'light';
|
|
body.setAttribute('data-theme', next);
|
|
|
|
const sunIcon = this.querySelector('.icon-sun');
|
|
if (next === 'dark') {
|
|
sunIcon.innerHTML = `
|
|
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
|
`;
|
|
} else {
|
|
sunIcon.innerHTML = `
|
|
<circle cx="12" cy="12" r="4"></circle>
|
|
<path d="M12 2v2"></path>
|
|
<path d="M12 20v2"></path>
|
|
<path d="m4.93 4.93 1.41 1.41"></path>
|
|
<path d="m17.66 17.66 1.41 1.41"></path>
|
|
<path d="M2 12h2"></path>
|
|
<path d="M20 12h2"></path>
|
|
<path d="m6.34 17.66-1.41 1.41"></path>
|
|
<path d="m19.07 4.93-1.41 1.41"></path>
|
|
`;
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|