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.
 
 

612 lines
19 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 活动报名</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
font-family: var(--youth-font-base);
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
overflow-x: hidden;}
.page-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
}
.status-bar {
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
flex-shrink: 0;
}
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
height: 44px;
flex-shrink: 0;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--youth-text-primary);
cursor: pointer;
border: none;
background: transparent;
}
.nav-title { font-size: 17px; font-weight: 700; color: var(--youth-text-primary); }
.nav-spacer { width: 36px; }
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 80px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 活动信息卡片 */
.activity-card {
margin: 0 16px 10px;
background: var(--youth-bg-card);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--youth-shadow-card);
}
.activity-cover {
width: 100%;
height: 110px;
background: linear-gradient(135deg, #FF9A8B 0%, #FF6A88 50%, #FFC3A0 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
position: relative;
}
.activity-tag {
position: absolute;
top: 12px;
left: 12px;
padding: 4px 10px;
background: rgba(0,0,0,0.4);
backdrop-filter: blur(10px);
color: #fff;
font-size: 11px;
font-weight: 600;
border-radius: 6px;
}
.activity-info {
padding: 12px 14px;
}
.activity-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 6px;
}
.activity-meta {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--youth-text-tertiary);
margin-bottom: 4px;
}
.activity-meta svg { flex-shrink: 0; }
.price-info {
display: flex;
align-items: baseline;
gap: 8px;
margin-top: 8px;
}
.price-now {
font-size: 20px;
font-weight: 800;
color: var(--youth-primary);
}
.price-now small { font-size: 13px; font-weight: 600; }
.price-origin {
font-size: 12px;
color: var(--youth-text-tertiary);
text-decoration: line-through;
}
.price-tag {
padding: 2px 6px;
background: var(--youth-primary-bg);
color: var(--youth-primary);
font-size: 10px;
font-weight: 600;
border-radius: 4px;
}
/* 表单分组 */
.form-group {
margin: 0 16px 10px;
background: var(--youth-bg-card);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--youth-shadow-card);
}
.group-title {
padding: 4px 16px 6px;
font-size: 12px;
color: var(--youth-text-tertiary);
font-weight: 500;
background: var(--youth-bg-page);
}
.form-item {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 14px;
position: relative;
background: var(--youth-bg-card);
}
.form-item + .form-item::before {
content: '';
position: absolute;
top: 0;
left: 14px;
right: 14px;
height: 1px;
background: var(--youth-border-light);
}
.form-label {
width: 80px;
flex-shrink: 0;
font-size: 14px;
color: var(--youth-text-primary);
font-weight: 500;
}
.form-label .required {
color: var(--youth-danger-500);
margin-right: 2px;
}
.form-value {
flex: 1;
font-size: 14px;
color: var(--youth-text-secondary);
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.form-value.placeholder {
color: var(--youth-text-tertiary);
}
.form-value-input {
flex: 1;
border: none;
outline: none;
text-align: right;
font-size: 14px;
color: var(--youth-text-primary);
background: transparent;
font-family: inherit;
}
.form-arrow {
color: var(--youth-text-tertiary);
flex-shrink: 0;
margin-left: 4px;
}
/* 票档选择 */
.ticket-list {
padding: 10px 12px 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.ticket-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 2px solid var(--youth-border-light);
border-radius: 10px;
cursor: pointer;
transition: all 0.2s ease;
}
.ticket-item.selected {
border-color: var(--youth-primary);
background: var(--youth-primary-bg);
}
.ticket-check {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--youth-border-light);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.ticket-item.selected .ticket-check {
border-color: var(--youth-primary);
background: var(--youth-primary);
}
.ticket-item.selected .ticket-check::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: #fff;
}
.ticket-info { flex: 1; min-width: 0; }
.ticket-name {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.ticket-desc {
font-size: 11px;
color: var(--youth-text-tertiary);
}
.ticket-price {
font-size: 16px;
font-weight: 700;
color: var(--youth-primary);
}
.ticket-soldout {
font-size: 11px;
color: var(--youth-text-tertiary);
text-align: right;
}
/* 数量选择 */
.qty-selector {
display: flex;
align-items: center;
gap: 16px;
}
.qty-btn {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--youth-bg-page);
border: 1px solid var(--youth-border-light);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-text-secondary);
cursor: pointer;
font-size: 18px;
font-weight: 300;
}
.qty-btn:active { background: var(--youth-border-light); }
.qty-value {
font-size: 16px;
font-weight: 700;
color: var(--youth-text-primary);
min-width: 24px;
text-align: center;
}
/* 底部固定栏 */
.bottom-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px 16px;
padding-bottom: calc(10px + env(safe-area-inset-bottom));
background: var(--youth-bg-card);
border-top: 1px solid var(--youth-border-light);
display: flex;
align-items: center;
gap: 12px;
}
.total-price {
flex: 1;
}
.total-label {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-bottom: 2px;
}
.total-amount {
font-size: 20px;
font-weight: 800;
color: var(--youth-primary);
}
.total-amount small { font-size: 12px; font-weight: 600; }
.submit-btn {
width: 130px;
height: 40px;
background: var(--youth-gradient-primary);
color: #fff;
border: none;
border-radius: 8px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
box-shadow: var(--youth-shadow-btn);
font-family: inherit;
}
.submit-btn:active { transform: scale(0.98); opacity: 0.9; }
/* 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="page-container" data-dom-id="page-container">
<div class="status-bar">
<span>9:41</span>
<div style="display:flex;align-items:center;gap:6px;">
<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="25" height="12" viewBox="0 0 25 12"><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" onclick="goBack()">
<svg width="22" height="22" 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-title">活动报名</div>
<div class="nav-spacer"></div>
</div>
<div class="scroll-area">
<!-- 活动信息 -->
<div class="activity-card">
<div class="activity-cover">
<span class="activity-tag">桌游 · 社交</span>
</div>
<div class="activity-info">
<div class="activity-title">周末桌游局 · 新人友好场</div>
<div class="activity-meta">
<svg width="14" height="14" 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>
8月24日(周六)14:00 - 18:00
</div>
<div class="activity-meta">
<svg width="14" height="14" 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>
中关村 · 创客空间 3楼 桌游室
</div>
<div class="price-info">
<span class="price-now"><small>¥</small>39</span>
<span class="price-origin">¥59</span>
<span class="price-tag">早鸟价</span>
</div>
</div>
</div>
<!-- 票档选择 -->
<div class="group-title">选择票档</div>
<div class="form-group" style="margin-top: 0;">
<div class="ticket-list">
<div class="ticket-item selected" onclick="selectTicket(this)">
<div class="ticket-check"></div>
<div class="ticket-info">
<div class="ticket-name">早鸟票 · 限量20张</div>
<div class="ticket-desc">含饮品1杯 + 桌游道具使用费</div>
</div>
<div>
<div class="ticket-price">¥39</div>
<div class="ticket-soldout">剩 12 张</div>
</div>
</div>
<div class="ticket-item" onclick="selectTicket(this)">
<div class="ticket-check"></div>
<div class="ticket-info">
<div class="ticket-name">标准票</div>
<div class="ticket-desc">含饮品1杯 + 桌游道具使用费</div>
</div>
<div>
<div class="ticket-price">¥59</div>
<div class="ticket-soldout">充足</div>
</div>
</div>
<div class="ticket-item" onclick="selectTicket(this)">
<div class="ticket-check"></div>
<div class="ticket-info">
<div class="ticket-name">双人票</div>
<div class="ticket-desc">含饮品2杯 + 小食拼盘1份</div>
</div>
<div>
<div class="ticket-price">¥99</div>
<div class="ticket-soldout">剩 5 份</div>
</div>
</div>
</div>
</div>
<!-- 报名信息 -->
<div class="group-title">报名信息</div>
<div class="form-group" style="margin-top: 0;">
<div class="form-item">
<div class="form-label"><span class="required">*</span>姓名</div>
<input type="text" class="form-value-input" value="张同学" placeholder="请输入真实姓名">
</div>
<div class="form-item">
<div class="form-label"><span class="required">*</span>手机号</div>
<input type="tel" class="form-value-input" value="138****8888" placeholder="用于接收活动通知">
</div>
<div class="form-item" onclick="selectItem('学校')">
<div class="form-label"><span class="required">*</span>学校</div>
<div class="form-value">北京大学</div>
<svg class="form-arrow" width="16" height="16" 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 class="form-item" onclick="selectItem('年级')">
<div class="form-label">年级</div>
<div class="form-value placeholder">请选择</div>
<svg class="form-arrow" width="16" height="16" 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="group-title">报名人数</div>
<div class="form-group" style="margin-top: 0;">
<div class="form-item">
<div class="form-label">报名人数</div>
<div class="qty-selector">
<button class="qty-btn" onclick="changeQty(-1)">−</button>
<span class="qty-value" id="qtyValue">1</span>
<button class="qty-btn" onclick="changeQty(1)">+</button>
</div>
</div>
<div class="form-item" onclick="selectItem('紧急联系人')">
<div class="form-label">紧急联系人</div>
<div class="form-value placeholder">选填</div>
<svg class="form-arrow" width="16" height="16" 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="group-title">补充信息</div>
<div class="form-group" style="margin-top: 0; padding: 14px 16px;">
<textarea class="form-value-input" style="width:100%;text-align:left;resize:none;height:70px;" placeholder="有任何特殊需求或想玩的游戏可以备注哦~"></textarea>
</div>
<div style="padding: 0 16px; font-size: 11px; color: var(--youth-text-tertiary); line-height: 1.6;">
报名须知:活动开始前24小时可免费取消,逾期将扣除30%手续费。请凭报名二维码签到入场。
</div>
</div>
<!-- 底部固定栏 -->
<div class="bottom-bar">
<div class="total-price">
<div class="total-label">合计</div>
<div class="total-amount"><small>¥</small><span id="totalPrice">39</span></div>
</div>
<button class="submit-btn" onclick="submitSignup()">立即报名</button>
</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>';
}
}
function goBack() { window.history.back(); }
function selectItem(name) { alert('选择' + name); }
function selectTicket(el) {
document.querySelectorAll('.ticket-item').forEach(i => i.classList.remove('selected'));
el.classList.add('selected');
updateTotal();
}
let qty = 1;
function changeQty(delta) {
qty = Math.max(1, Math.min(10, qty + delta));
document.getElementById('qtyValue').textContent = qty;
updateTotal();
}
function updateTotal() {
const selected = document.querySelector('.ticket-item.selected .ticket-price');
const price = parseInt(selected.textContent.replace('¥', ''));
document.getElementById('totalPrice').textContent = price * qty;
}
function submitSignup() { alert('提交报名'); }</script>
</body>
</html>