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.
1459 lines
55 KiB
1459 lines
55 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN" style="height: 1051px;">
|
|
<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>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<style>
|
|
:root {
|
|
--youth-primary: #26C2BB;
|
|
--youth-primary-light: #54CAC5;
|
|
--primary-dark: #1DA9A3;
|
|
--primary-bg: #E6F7F6;
|
|
--primary-border: #B3E8E4;
|
|
--bg-page: #F7F8FA;
|
|
--bg-card: #FFFFFF;
|
|
--text-title: #1F1F1F;
|
|
--text-body: #595959;
|
|
--text-muted: #8C8C8C;
|
|
--youth-border-light: #E8E8E8;
|
|
--youth-success: #52C41A;
|
|
--youth-warning: #FAAD14;
|
|
--danger: #F5222D;
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-bottom: 0 -2px 12px rgba(0, 0, 0, 0.06);
|
|
--progress-bg: #F0F1F3;
|
|
--tag-bg: #F0F1F3;
|
|
--mint-light: #E8F8F5;
|
|
--orange-light: #FFF4E8;
|
|
--btn-gradient: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
|
|
/* =====================================================
|
|
* Traework 设计系统 - 组件规范
|
|
* 圆角 / 间距 / 阴影 / 高度
|
|
* ===================================================== */
|
|
--radius-xs: 4px;
|
|
--radius-sm: 8px; /* 按钮、输入框 */
|
|
--radius-md: 12px; /* 卡片 */
|
|
--radius-lg: 16px; /* 标签、弹窗 */
|
|
--radius-xl: 20px;
|
|
--radius-full: 9999px;
|
|
|
|
/* 组件高度 */
|
|
--height-btn: 44px;
|
|
--height-input: 44px;
|
|
--height-nav-bottom: 64px;
|
|
|
|
/* 间距(4px 基础栅格) */
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--space-page-x: 16px;
|
|
--space-card: 16px;
|
|
|
|
/* 柔和弥散阴影 */
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
|
|
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
--shadow-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
|
|
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
|
|
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
|
|
/* 内阴影浮雕(输入框) */
|
|
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
|
|
|
|
/* 毛玻璃 */
|
|
--glass-bg: rgba(255, 255, 255, 0.72);
|
|
--glass-blur: blur(20px);
|
|
--glass-border: rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
* {
|
|
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-secondary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.status-bar {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
z-index: 30;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* 顶部导航 - 悬浮在封面上 */
|
|
.top-nav {
|
|
position: absolute;
|
|
top: 44px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
z-index: 25;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
color: #FFFFFF;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-btn:active {
|
|
transform: scale(0.92);
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* 模板切换条 */
|
|
.template-switcher {
|
|
display: flex;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 10px;
|
|
padding: 3px;
|
|
margin: 0 16px 10px;
|
|
box-shadow: var(--youth-shadow-card);
|
|
flex-shrink: 0;
|
|
gap: 2px;
|
|
}
|
|
|
|
.template-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 7px 0;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.template-tab.active {
|
|
background: var(--youth-primary);
|
|
color: #FFFFFF;
|
|
font-weight: 600;
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
/* 内容区 */
|
|
.content-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding-bottom: 76px;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 活动封面 */
|
|
.activity-cover {
|
|
position: relative;
|
|
height: 170px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cover-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--youth-gradient-primary);
|
|
}
|
|
|
|
.cover-bg.werewolf {
|
|
background: linear-gradient(135deg, #6C5CE7 0%, #26C2BB 60%, #54CAC5 100%);
|
|
}
|
|
|
|
.cover-bg.jobfair {
|
|
background: linear-gradient(135deg, #0984E3 0%, #26C2BB 70%, #54CAC5 100%);
|
|
}
|
|
|
|
.cover-pattern {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0.1;
|
|
background-image:
|
|
radial-gradient(circle at 80% 20%, rgba(255,255,255,0.8) 0%, transparent 40%),
|
|
radial-gradient(circle at 20% 80%, rgba(255,255,255,0.5) 0%, transparent 35%);
|
|
}
|
|
|
|
.cover-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
padding: 0 16px 16px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.cover-tags {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.cover-category-tag {
|
|
padding: 3px 10px;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border-radius: 16px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.cover-heat-tag {
|
|
padding: 3px 10px;
|
|
background: rgba(255, 159, 69, 0.9);
|
|
border-radius: 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
|
|
.cover-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: #FFFFFF;
|
|
line-height: 1.3;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.cover-organizer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.cover-organizer-avatar {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border: 1.5px solid rgba(255, 255, 255, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.cover-organizer-name {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
/* 信息卡片 */
|
|
.info-card {
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
margin: 10px 16px 0;
|
|
padding: 14px 16px;
|
|
box-shadow: var(--youth-shadow-card);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.info-card:first-of-type {
|
|
margin-top: -10px;
|
|
position: relative;
|
|
z-index: 5;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.card-title::before {
|
|
content: '';
|
|
width: 3px;
|
|
height: 14px;
|
|
background: var(--youth-primary);
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* 信息行 */
|
|
.info-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 7px 0;
|
|
}
|
|
|
|
.info-item + .info-item {
|
|
border-top: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.info-item-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
background: var(--youth-primary-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-primary);
|
|
flex-shrink: 0;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.info-item-label {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-item-value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
/* 进度条 */
|
|
.progress-wrap {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.progress-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.progress-label {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.progress-count {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--youth-primary-bg);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: var(--youth-gradient-primary);
|
|
border-radius: 3px;
|
|
transition: width 0.4s ease;
|
|
}
|
|
|
|
/* 活动介绍 */
|
|
.desc-text {
|
|
font-size: 13px;
|
|
color: var(--youth-text-secondary);
|
|
line-height: 1.75;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.tag-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.detail-tag {
|
|
padding: 3px 10px;
|
|
background: var(--tag-bg);
|
|
border-radius: 16px;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.detail-tag.accent {
|
|
background: var(--youth-teal-50);
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
/* 流程列表 */
|
|
.flow-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.flow-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.flow-step {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.flow-content {
|
|
flex: 1;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.flow-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.flow-desc {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 发起人卡片 */
|
|
.organizer-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
background: var(--youth-bg-page);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.organizer-avatar-lg {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--youth-gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.organizer-detail {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.organizer-name-lg {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.organizer-badge {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.organizer-school {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.organizer-action {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 已报名成员 */
|
|
.members-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.members-title-text {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.members-title-text::before {
|
|
content: '';
|
|
width: 3px;
|
|
height: 14px;
|
|
background: var(--youth-primary);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.members-count {
|
|
font-size: 12px;
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.members-avatars {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.member-avatar-sm {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--youth-bg-card);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
margin-left: -6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.member-avatar-sm:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.view-all-btn {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 底部操作栏 */
|
|
.bottom-bar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 64px;
|
|
background: var(--youth-bg-card);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 16px;
|
|
gap: 10px;
|
|
box-shadow: var(--shadow-bottom);
|
|
z-index: 20;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.btn-group-chat {
|
|
height: 44px;
|
|
padding: 0 16px;
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: 8px;
|
|
background: var(--youth-bg-card);
|
|
color: var(--youth-text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-group-chat:active {
|
|
background: var(--tag-bg);
|
|
}
|
|
|
|
.btn-join {
|
|
flex: 1;
|
|
height: 44px;
|
|
border-radius: 8px;
|
|
background: var(--youth-gradient-primary);
|
|
color: #FFFFFF;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
.btn-join::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn-join:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
.btn-join.joined {
|
|
background: var(--youth-success-500);
|
|
box-shadow: 0 4px 12px rgba(82, 196, 26, 0.25);
|
|
}
|
|
|
|
.btn-join.disabled {
|
|
background: var(--youth-text-tertiary);
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.btn-join.disabled::before {
|
|
display: none;
|
|
}
|
|
|
|
/* 状态切换条(展示用) */
|
|
.state-switcher {
|
|
display: flex;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 10px;
|
|
padding: 3px;
|
|
margin: 10px 16px 0;
|
|
box-shadow: var(--youth-shadow-card);
|
|
flex-shrink: 0;
|
|
gap: 2px;
|
|
}
|
|
|
|
.state-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 5px 0;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.state-tab.active {
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
/* 弹窗 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
z-index: 998;
|
|
display: none;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.modal-overlay.show {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-sheet {
|
|
width: 100%;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 20px 20px 0 0;
|
|
padding: 16px 16px 24px;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s ease;
|
|
max-height: 65%;
|
|
overflow-y: auto;
|
|
z-index: 999;
|
|
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
|
|
position: relative;
|
|
}
|
|
|
|
.modal-overlay.show .modal-sheet {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.modal-title-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.modal-close {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 分享弹窗 */
|
|
.share-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px 8px;
|
|
padding: 4px 0 12px;
|
|
}
|
|
|
|
.share-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.share-icon-bg {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--tag-bg);
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
.share-item span {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 成员列表 */
|
|
.member-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.member-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.member-row-avatar {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.member-row-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.member-row-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.member-row-school {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.badge-host {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
border-radius: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 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" style="height: 1168px;">
|
|
<!-- 状态栏 -->
|
|
<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>
|
|
<path d="M7.5 4.5C6 4.5 4.5 5 3.4 6.2C2.3 7.4 2 9 2.4 10.4C2.5 10.8 2.8 11 3.2 11C3.5 11 3.8 10.8 3.9 10.5C4.2 9.5 4.8 8.6 5.7 8C6.6 7.4 7.6 7.1 8.6 7.2C9.8 7.3 10.9 7.8 11.6 8.7C12.3 9.6 12.6 10.7 12.4 11.8L12.4 12C12.3 12.4 12.6 12.7 13 12.8C13.4 12.9 13.7 12.6 13.8 12.2C14.1 10.5 13.5 8.8 12.4 7.5C11.3 6.2 9.6 5.3 7.8 4.9L7.5 4.5Z"></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">
|
|
<button class="nav-btn" data-dom-id="btn-back" aria-label="返回">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="15 18 9 12 15 6"></polyline>
|
|
</svg>
|
|
</button>
|
|
<div class="nav-right">
|
|
<button class="nav-btn" data-dom-id="btn-share" aria-label="分享" onclick="openShare()">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="18" cy="5" r="3"></circle>
|
|
<circle cx="6" cy="12" r="3"></circle>
|
|
<circle cx="18" cy="19" r="3"></circle>
|
|
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 活动封面 -->
|
|
<div class="activity-cover" data-dom-id="activity-cover">
|
|
<div class="cover-bg werewolf" id="cover-bg"></div>
|
|
<div class="cover-pattern"></div>
|
|
<div class="cover-content">
|
|
<div class="cover-tags">
|
|
<span class="cover-category-tag" id="cover-category">桌游组局</span>
|
|
<span class="cover-heat-tag">
|
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path>
|
|
</svg>
|
|
热门
|
|
</span>
|
|
</div>
|
|
<div class="cover-title" id="cover-title">周末狼人杀·新手友好局🐺</div>
|
|
<div class="cover-organizer" data-dom-id="organizer-info">
|
|
<div class="cover-organizer-avatar" id="cover-avatar">陈</div>
|
|
<span class="cover-organizer-name" id="cover-organizer-name">陈明轩 · 清华大学</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 模板切换(展示用) -->
|
|
|
|
|
|
<!-- 状态切换(展示用) -->
|
|
<div class="state-switcher">
|
|
<div class="state-tab active" data-state="available" onclick="switchState('available')">可报名</div>
|
|
<div class="state-tab" data-state="joined" onclick="switchState('joined')">已报名</div>
|
|
<div class="state-tab" data-state="full" onclick="switchState('full')">人数已满</div>
|
|
<div class="state-tab" data-state="ended" onclick="switchState('ended')">活动结束</div>
|
|
</div>
|
|
|
|
<!-- 内容区 -->
|
|
<div class="content-area">
|
|
<!-- 基本信息卡 --><div class="info-card">
|
|
<div class="card-title">活动流程</div>
|
|
<div class="flow-list" id="flow-list">
|
|
<div class="flow-item">
|
|
<div class="flow-step">1</div>
|
|
<div class="flow-content">
|
|
<div class="flow-title">签到入座</div>
|
|
<div class="flow-desc">19:00-19:15 签到、发号码牌、自我介绍</div>
|
|
</div>
|
|
</div>
|
|
<div class="flow-item">
|
|
<div class="flow-step">2</div>
|
|
<div class="flow-content">
|
|
<div class="flow-title">规则讲解</div>
|
|
<div class="flow-desc">19:15-19:30 法官讲解规则,新手教学</div>
|
|
</div>
|
|
</div>
|
|
<div class="flow-item">
|
|
<div class="flow-step">3</div>
|
|
<div class="flow-content">
|
|
<div class="flow-title">正式开局</div>
|
|
<div class="flow-desc">19:30-21:30 两局标准场,中场休息</div>
|
|
</div>
|
|
</div>
|
|
<div class="flow-item">
|
|
<div class="flow-step">4</div>
|
|
<div class="flow-content">
|
|
<div class="flow-title">自由交流</div>
|
|
<div class="flow-desc">21:30-22:00 复盘交流,加好友约下次</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="info-card">
|
|
<div class="info-item">
|
|
<div class="info-item-icon">
|
|
<svg width="16" height="16" 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>
|
|
<line x1="3" y1="10" x2="21" y2="10"></line>
|
|
</svg>
|
|
</div>
|
|
<span class="info-item-label">活动时间</span>
|
|
<span class="info-item-value" id="info-time">6月22日 周六 19:00-22:00</span>
|
|
</div>
|
|
<div class="info-item">
|
|
<div class="info-item-icon">
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<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>
|
|
</div>
|
|
<span class="info-item-label">活动地点</span>
|
|
<span class="info-item-value" id="info-location">三教 3101 教室</span>
|
|
</div>
|
|
<div class="progress-wrap" data-dom-id="progress-section">
|
|
<div class="progress-header">
|
|
<span class="progress-label">报名进度</span>
|
|
<span class="progress-count" id="progress-count">8/12 人</span>
|
|
</div>
|
|
<div class="progress-bar">
|
|
<div class="progress-fill" id="progress-fill" style="width: 67%;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 活动介绍 -->
|
|
<div class="info-card">
|
|
<div class="card-title">活动介绍</div>
|
|
<p class="desc-text" id="desc-text">
|
|
周末狼人杀新手局,12人标准板(预女猎白),新手友好,有大神带节奏!提供饮料零食,场地宽敞明亮。来认识同校有趣的小伙伴吧~
|
|
</p>
|
|
<div class="tag-group" id="tag-group">
|
|
<span class="detail-tag accent">狼人杀</span>
|
|
<span class="detail-tag">新手友好</span>
|
|
<span class="detail-tag">提供零食</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 活动流程 -->
|
|
|
|
|
|
<!-- 发起人 & 已报名成员 -->
|
|
<div class="info-card">
|
|
<div class="organizer-card" data-dom-id="organizer-card">
|
|
<div class="organizer-avatar-lg" id="organizer-avatar-lg">陈</div>
|
|
<div class="organizer-detail">
|
|
<div class="organizer-name-lg">
|
|
陈明轩
|
|
<span class="organizer-badge">发起人</span>
|
|
</div>
|
|
<div class="organizer-school">清华大学 · 计算机系</div>
|
|
</div>
|
|
<div class="organizer-action">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="9 18 15 12 9 6"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="members-header" style="margin-top: 14px;">
|
|
<div class="members-title-text">
|
|
已报名成员
|
|
</div>
|
|
<div class="view-all-btn" onclick="openMembers()">
|
|
查看全部
|
|
<svg width="14" height="14" 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>
|
|
<div class="members-avatars" id="members-avatars">
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #FFD93D, #FF9F45);">陈</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #7ED6E8, #26C2BB);">小</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #FFB0C7, #FF6B9D);">林</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #A29BFE, #6C5CE7);">王</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #55EFC4, #00B894);">李</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #FFEAA7, #FDCB6E);">张</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #74B9FF, #0984E3);">刘</div>
|
|
<div class="member-avatar-sm" style="background: linear-gradient(135deg, #FD79A8, #E84393);">赵</div>
|
|
<div class="member-avatar-sm" style="background: var(--tag-bg); color: var(--youth-text-tertiary); font-size: 10px; font-weight: 500;">+4</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="height: 16px;"></div>
|
|
</div>
|
|
|
|
<!-- 底部操作栏 -->
|
|
<div class="bottom-bar">
|
|
<button class="btn-group-chat" data-dom-id="btn-group-chat">
|
|
<svg width="18" height="18" 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>
|
|
群聊
|
|
</button>
|
|
<button class="btn-join" data-dom-id="btn-join" id="btn-join">立即报名</button>
|
|
</div>
|
|
|
|
<!-- 分享弹窗 -->
|
|
<div class="modal-overlay" id="share-modal">
|
|
<div class="modal-sheet">
|
|
<div class="modal-title-bar">
|
|
<div class="modal-title">分享到</div>
|
|
<div class="modal-close" onclick="closeShare()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
|
|
</div>
|
|
</div>
|
|
<div class="share-grid">
|
|
<div class="share-item">
|
|
<div class="share-icon-bg" style="color: #07C160; background: #E8F8EF;">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348z"></path>
|
|
</svg>
|
|
</div>
|
|
<span>微信</span>
|
|
</div>
|
|
<div class="share-item">
|
|
<div class="share-icon-bg" style="color: #07C160; background: #E8F8EF;">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z"></path>
|
|
</svg>
|
|
</div>
|
|
<span>朋友圈</span>
|
|
</div>
|
|
<div class="share-item">
|
|
<div class="share-icon-bg" style="color: #26C2BB; background: #E6F7F6;">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="9" y="9" width="13" height="13" rx="2"></rect>
|
|
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
</svg>
|
|
</div>
|
|
<span>复制链接</span>
|
|
</div>
|
|
<div class="share-item">
|
|
<div class="share-icon-bg">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="1"></circle>
|
|
<circle cx="19" cy="12" r="1"></circle>
|
|
<circle cx="5" cy="12" r="1"></circle>
|
|
</svg>
|
|
</div>
|
|
<span>更多</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 成员列表弹窗 -->
|
|
<div class="modal-overlay" id="members-modal">
|
|
<div class="modal-sheet">
|
|
<div class="modal-title-bar">
|
|
<div class="modal-title">已报名成员 <span style="color: var(--youth-primary); font-weight: 500; font-size: 14px;" id="modal-count">(8/12)</span></div>
|
|
<div class="modal-close" onclick="closeMembers()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #FFD93D, #FF9F45);">陈</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">陈明轩 <span class="badge-host">发起人</span></div>
|
|
<div class="member-row-school">清华大学 · 计算机系</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #7ED6E8, #26C2BB);">小</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">小青同学</div>
|
|
<div class="member-row-school">清华大学 · 中文系</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #FFB0C7, #FF6B9D);">林</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">林小雨</div>
|
|
<div class="member-row-school">北京大学 · 新闻学院</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #A29BFE, #6C5CE7);">王</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">王思远</div>
|
|
<div class="member-row-school">清华大学 · 经管学院</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #55EFC4, #00B894);">李</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">李子涵</div>
|
|
<div class="member-row-school">清华大学 · 建筑学院</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #FFEAA7, #FDCB6E);">张</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">张晓桐</div>
|
|
<div class="member-row-school">北京师范大学 · 心理系</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #74B9FF, #0984E3);">刘</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">刘宇航</div>
|
|
<div class="member-row-school">清华大学 · 自动化系</div>
|
|
</div>
|
|
</div>
|
|
<div class="member-row">
|
|
<div class="member-row-avatar" style="background: linear-gradient(135deg, #FD79A8, #E84393);">赵</div>
|
|
<div class="member-row-info">
|
|
<div class="member-row-name">赵雨萱</div>
|
|
<div class="member-row-school">北京大学 · 法学院</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>// 主题切换
|
|
icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
|
|
}
|
|
}
|
|
|
|
// 模板数据
|
|
const templates = {
|
|
werewolf: {
|
|
coverClass: 'werewolf',
|
|
category: '桌游组局',
|
|
title: '周末狼人杀·新手友好局🐺',
|
|
organizer: '陈明轩 · 清华大学',
|
|
avatar: '陈',
|
|
avatarBg: 'linear-gradient(135deg, #FFD93D, #FF9F45)',
|
|
time: '6月22日 周六 19:00-22:00',
|
|
location: '三教 3101 教室',
|
|
capacity: '8/12 人',
|
|
progress: 67,
|
|
desc: '周末狼人杀新手局,12人标准板(预女猎白),新手友好,有大神带节奏!提供饮料零食,场地宽敞明亮。来认识同校有趣的小伙伴吧~',
|
|
tags: [
|
|
{ text: '狼人杀', accent: true },
|
|
{ text: '新手友好', accent: false },
|
|
{ text: '提供零食', accent: false }
|
|
],
|
|
flow: [
|
|
{ step: 1, title: '签到入座', desc: '19:00-19:15 签到、发号码牌、自我介绍' },
|
|
{ step: 2, title: '规则讲解', desc: '19:15-19:30 法官讲解规则,新手教学' },
|
|
{ step: 3, title: '正式开局', desc: '19:30-21:30 两局标准场,中场休息' },
|
|
{ step: 4, title: '自由交流', desc: '21:30-22:00 复盘交流,加好友约下次' }
|
|
]
|
|
},
|
|
jobfair: {
|
|
coverClass: 'jobfair',
|
|
category: '校园招聘',
|
|
title: '2024届校园招聘会·青核专场',
|
|
organizer: '青核运营 · 官方',
|
|
avatar: '青',
|
|
avatarBg: 'linear-gradient(135deg, #54CAC5, #26C2BB)',
|
|
time: '6月25日 周二 14:00-18:00',
|
|
location: '综合体育馆 主会场',
|
|
capacity: '286/500 人',
|
|
progress: 57,
|
|
desc: '青核校园联合20+知名企业举办专场招聘会,涵盖互联网、金融、咨询、制造业等多个行业。现场投递简历、HR面对面交流,部分企业可现场面试。',
|
|
tags: [
|
|
{ text: '校招', accent: true },
|
|
{ text: '20+企业', accent: false },
|
|
{ text: '现场面试', accent: false },
|
|
{ text: '免费参加', accent: false }
|
|
],
|
|
flow: [
|
|
{ step: 1, title: '签到入场', desc: '14:00-14:30 凭报名二维码签到,领取参会手册' },
|
|
{ step: 2, title: '企业宣讲', desc: '14:30-15:30 重点企业集中宣讲,介绍岗位需求' },
|
|
{ step: 3, title: '展台交流', desc: '15:30-17:30 自由逛展,投递简历,一对一沟通' },
|
|
{ step: 4, title: '现场面试', desc: '17:30-18:00 部分企业现场初面,发放复试直通卡' }
|
|
]
|
|
}
|
|
};
|
|
|
|
// 切换模板
|
|
let currentTemplate = 'werewolf';
|
|
function switchTemplate(type) {
|
|
currentTemplate = type;
|
|
const data = templates[type];
|
|
|
|
// 更新模板Tab
|
|
document.querySelectorAll('.template-tab').forEach(function(tab) {
|
|
tab.classList.toggle('active', tab.getAttribute('data-template') === type);
|
|
});
|
|
|
|
// 更新封面
|
|
const coverBg = document.getElementById('cover-bg');
|
|
coverBg.className = 'cover-bg ' + data.coverClass;
|
|
|
|
document.getElementById('cover-category').textContent = data.category;
|
|
document.getElementById('cover-title').textContent = data.title;
|
|
document.getElementById('cover-organizer-name').textContent = data.organizer;
|
|
document.getElementById('cover-avatar').textContent = data.avatar;
|
|
|
|
// 更新信息
|
|
document.getElementById('info-time').textContent = data.time;
|
|
document.getElementById('info-location').textContent = data.location;
|
|
document.getElementById('progress-count').textContent = data.capacity;
|
|
document.getElementById('progress-fill').style.width = data.progress + '%';
|
|
document.getElementById('modal-count').textContent = '(' + data.capacity + ')';
|
|
|
|
// 更新介绍
|
|
document.getElementById('desc-text').textContent = data.desc;
|
|
|
|
// 更新标签
|
|
const tagGroup = document.getElementById('tag-group');
|
|
tagGroup.innerHTML = data.tags.map(function(tag) {
|
|
return '<span class="detail-tag' + (tag.accent ? ' accent' : '') + '">' + tag.text + '</span>';
|
|
}).join('');
|
|
|
|
// 更新流程
|
|
const flowList = document.getElementById('flow-list');
|
|
flowList.innerHTML = data.flow.map(function(item) {
|
|
return '<div class="flow-item">' +
|
|
'<div class="flow-step">' + item.step + '</div>' +
|
|
'<div class="flow-content">' +
|
|
'<div class="flow-title">' + item.title + '</div>' +
|
|
'<div class="flow-desc">' + item.desc + '</div>' +
|
|
'</div></div>';
|
|
}).join('');
|
|
|
|
// 更新发起人
|
|
document.getElementById('organizer-avatar-lg').textContent = data.avatar;
|
|
document.getElementById('organizer-avatar-lg').style.background = data.avatarBg;
|
|
|
|
// 重置状态为可报名
|
|
switchState('available');
|
|
}
|
|
|
|
// 切换状态
|
|
let currentState = 'available';
|
|
function switchState(state) {
|
|
currentState = state;
|
|
const btn = document.getElementById('btn-join');
|
|
|
|
document.querySelectorAll('.state-tab').forEach(function(tab) {
|
|
tab.classList.toggle('active', tab.getAttribute('data-state') === state);
|
|
});
|
|
|
|
btn.classList.remove('joined', 'disabled');
|
|
|
|
switch(state) {
|
|
case 'available':
|
|
btn.textContent = '立即报名';
|
|
break;
|
|
case 'joined':
|
|
btn.classList.add('joined');
|
|
btn.textContent = '已报名';
|
|
break;
|
|
case 'full':
|
|
btn.classList.add('disabled');
|
|
btn.textContent = '名额已满';
|
|
break;
|
|
case 'ended':
|
|
btn.classList.add('disabled');
|
|
btn.textContent = '活动已结束';
|
|
break;
|
|
}
|
|
}
|
|
|
|
// 报名按钮
|
|
document.getElementById('btn-join').addEventListener('click', function() {
|
|
if (currentState === 'full' || currentState === 'ended') return;
|
|
|
|
if (currentState === 'available') {
|
|
switchState('joined');
|
|
} else if (currentState === 'joined') {
|
|
switchState('available');
|
|
}
|
|
});
|
|
|
|
// 弹窗控制
|
|
function openShare() { document.getElementById('share-modal').classList.add('show'); }
|
|
function closeShare() { document.getElementById('share-modal').classList.remove('show'); }
|
|
function openMembers() { document.getElementById('members-modal').classList.add('show'); }
|
|
function closeMembers() { document.getElementById('members-modal').classList.remove('show'); }
|
|
|
|
// 点击遮罩关闭
|
|
document.querySelectorAll('.modal-overlay').forEach(function(overlay) {
|
|
overlay.addEventListener('click', function(e) {
|
|
if (e.target === this) this.classList.remove('show');
|
|
});
|
|
});
|
|
|
|
// 返回
|
|
document.querySelector('[data-dom-id="btn-back"]').addEventListener('click', function() {
|
|
window.location.href = 'activity-list.html';
|
|
});
|
|
|
|
// 发起人跳转
|
|
document.querySelector('[data-dom-id="organizer-info"]').addEventListener('click', function(e) {
|
|
e.stopPropagation();
|
|
window.location.href = 'user-profile.html?id=1';
|
|
});
|
|
document.querySelector('[data-dom-id="organizer-card"]').addEventListener('click', function() {
|
|
window.location.href = 'user-profile.html?id=1';
|
|
});
|
|
|
|
// 成员跳转
|
|
document.querySelectorAll('.member-row').forEach(function(row) {
|
|
row.addEventListener('click', function() {
|
|
window.location.href = 'user-profile.html?id=2';
|
|
});
|
|
});</script>
|
|
</body>
|
|
</html>
|
|
|