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.
 
 

685 lines
24 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 创建社团</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
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-btn.text-btn { width: auto; font-size: 14px; padding: 0 8px; font-weight: 600; color: var(--youth-primary); }
/* 步骤条 */
.step-bar {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 16px 10px;
flex-shrink: 0;
}
.step-item {
display: flex;
align-items: center;
gap: 6px;
}
.step-dot {
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--youth-border-light);
color: var(--youth-text-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
}
.step-dot.active {
background: var(--youth-primary);
color: #fff;
}
.step-dot.done {
background: var(--youth-primary);
color: #fff;
}
.step-label {
font-size: 12px;
color: var(--youth-text-tertiary);
}
.step-label.active {
color: var(--youth-primary);
font-weight: 600;
}
.step-line {
width: 24px;
height: 2px;
background: var(--youth-border-light);
}
.step-line.done { background: var(--youth-primary); }
/* 滚动区 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 70px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 表单组 */
.form-group {
background: var(--youth-bg-card);
margin: 0 16px 10px;
border-radius: 12px;
padding: 4px 14px;
box-shadow: var(--youth-shadow-card);
}
.form-title {
padding: 10px 16px 4px;
font-size: 12px;
font-weight: 600;
color: var(--youth-text-primary);
}
.form-row {
display: flex;
align-items: center;
padding: 10px 0;
position: relative;
gap: 10px;
}
.form-row + .form-row::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--youth-border-light);
}
.form-label {
font-size: 13px;
color: var(--youth-text-primary);
flex-shrink: 0;
width: 72px;
}
.form-label .required {
color: var(--youth-danger-500);
margin-right: 2px;
}
.form-input {
flex: 1;
border: none;
background: transparent;
font-size: 14px;
color: var(--youth-text-primary);
outline: none;
text-align: right;
font-family: inherit;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
.form-input::placeholder { color: var(--youth-text-tertiary); }
.form-arrow {
color: var(--youth-text-tertiary);
flex-shrink: 0;
}
.form-value {
flex: 1;
text-align: right;
font-size: 14px;
color: var(--youth-text-secondary);
}
.form-value.placeholder { color: var(--youth-text-tertiary); }
/* Logo上传 */
.logo-section {
background: var(--youth-bg-card);
margin: 0 16px 12px;
border-radius: 14px;
padding: 16px;
text-align: center;
}
.logo-upload-label {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 12px;
text-align: left;
display: block;
}
.logo-upload-label .required { color: var(--youth-danger-500); }
.logo-upload-box {
width: 48px;
height: 48px;
margin: 0 auto;
border-radius: 20px;
background: var(--youth-bg-page);
border: 2px dashed var(--youth-border-light);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
cursor: pointer;
color: var(--youth-text-tertiary);
font-size: 11px;
}
.logo-upload-box svg { opacity: 0.6; }
.logo-preview {
width: 48px;
height: 48px;
margin: 0 auto;
border-radius: 20px;
background: linear-gradient(135deg, #26C2BB, #54CAC5);
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
position: relative;
cursor: pointer;
}
.logo-change {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.5);
color: #fff;
font-size: 9px;
padding: 3px 0;
border-radius: 0 0 18px 18px;
}
.logo-hint {
margin-top: 10px;
font-size: 11px;
color: var(--youth-text-tertiary);
}
/* 分类选择网格 */
.category-select {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 8px 0 12px;
}
.cat-option {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 12px 4px;
border-radius: 12px;
background: var(--youth-bg-page);
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s ease;
}
.cat-option.selected {
background: var(--youth-primary-bg);
border-color: var(--youth-primary);
}
.cat-option .icon { font-size: 24px; }
.cat-option .name {
font-size: 11px;
color: var(--youth-text-secondary);
}
.cat-option.selected .name {
color: var(--youth-primary);
font-weight: 600;
}
/* 文本域 */
.textarea-group {
background: var(--youth-bg-card);
margin: 0 16px 12px;
border-radius: 8px;
padding: 14px 16px;
}
.textarea-label {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 10px;
}
.textarea-label .required { color: var(--youth-danger-500); }
.form-textarea {
width: 100%;
min-height: 100px;
border: none;
background: var(--youth-bg-page);
border-radius: 10px;
padding: 12px;
font-size: 13px;
color: var(--youth-text-primary);
resize: none;
outline: none;
font-family: inherit;
line-height: 1.5;
}
.textarea-count {
text-align: right;
font-size: 11px;
color: var(--youth-text-tertiary);
margin-top: 6px;
}
/* 标签选择 */
.tags-group {
background: var(--youth-bg-card);
margin: 0 16px 12px;
border-radius: 14px;
padding: 14px 16px;
}
.tags-label {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 10px;
}
.tags-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag-chip {
padding: 6px 12px;
background: var(--youth-bg-page);
border-radius: 16px;
font-size: 12px;
color: var(--youth-text-secondary);
cursor: pointer;
border: 1px solid transparent;
}
.tag-chip.selected {
background: var(--youth-primary-bg);
color: var(--youth-primary);
border-color: var(--youth-primary);
font-weight: 500;
}
.tag-chip.add {
color: var(--youth-primary);
border: 1px dashed var(--youth-primary);
background: transparent;
}
/* 底部按钮 */
.bottom-actions {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
background: var(--youth-bg-card);
border-top: 1px solid var(--youth-border-light);
display: flex;
gap: 10px;
z-index: 10;
}
.btn-secondary {
flex: 1;
height: 40px;
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
border: 1px solid var(--youth-border-light);
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
}
.btn-primary {
flex: 2;
height: 40px;
background: var(--youth-gradient-primary);
color: #fff;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
font-family: inherit;
box-shadow: var(--youth-shadow-btn);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* 提示卡片 */
.notice-card {
margin: 0 16px 12px;
padding: 12px 14px;
background: var(--youth-primary-bg);
border-radius: 10px;
font-size: 12px;
color: var(--youth-text-secondary);
line-height: 1.6;
display: flex;
gap: 8px;
}
.notice-icon {
font-size: 16px;
flex-shrink: 0;
}
/* 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 x="4.5" y="5" width="3" height="6" rx="0.5"/><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"/><rect x="13.5" y="0" width="3" height="11" rx="0.5"/></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 x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"/><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"/></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>
<button class="nav-btn text-btn" onclick="showDraft()">草稿</button>
</div>
<!-- 步骤条 -->
<div class="step-bar">
<div class="step-item">
<div class="step-dot active">1</div>
<span class="step-label active">基本信息</span>
</div>
<div class="step-line"></div>
<div class="step-item">
<div class="step-dot">2</div>
<span class="step-label">审核认证</span>
</div>
<div class="step-line"></div>
<div class="step-item">
<div class="step-dot">3</div>
<span class="step-label">创建完成</span>
</div>
</div>
<div class="scroll-area">
<!-- 提示 -->
<div class="notice-card">
<span class="notice-icon"><span class="icon-svg icon-lightbulb"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg></span></span>
<div>创建社团需实名认证,审核通过后可获得官方认证标识。</div>
</div>
<!-- Logo上传 -->
<div class="logo-section">
<span class="logo-upload-label"><span class="required">*</span>社团头像</span>
<div class="logo-preview" onclick="uploadLogo()">
<span class="icon-svg icon-target"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg></span>
<span class="logo-change">点击更换</span>
</div>
<div class="logo-hint">建议尺寸 400x400px,支持 JPG/PNG</div>
</div>
<!-- 基本信息 -->
<div class="form-title">基本信息</div>
<div class="form-group">
<div class="form-row">
<span class="form-label"><span class="required">*</span>社团名称</span>
<input type="text" class="form-input" placeholder="请输入社团名称" value="校园桌游爱好者协会">
</div>
<div class="form-row" onclick="selectCategory()">
<span class="form-label"><span class="required">*</span>所属分类</span>
<span class="form-value">兴趣娱乐</span>
<span class="form-arrow">
<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>
</span>
</div>
<div class="form-row">
<span class="form-label"><span class="required">*</span>社团简称</span>
<input type="text" class="form-input" placeholder="便于识别的短名称" value="桌游社">
</div>
</div>
<!-- 分类选择(展开) -->
<div class="form-title">选择分类</div>
<div class="form-group" style="padding: 12px;">
<div class="category-select">
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-book-open"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg></span></span>
<span class="name">学术科技</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-palette"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5"/><circle cx="17.5" cy="10.5" r=".5"/><circle cx="8.5" cy="7.5" r=".5"/><circle cx="6.5" cy="12.5" r=".5"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg></span></span>
<span class="name">文化艺术</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-trophy"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"/><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"/><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"/></svg></span></span>
<span class="name">体育运动</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-heart"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg></span></span>
<span class="name">公益志愿</span>
</div>
<div class="cat-option selected" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-gamepad-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="11" x2="10" y2="11"/><line x1="8" y1="9" x2="8" y2="13"/><line x1="15" y1="12" x2="15.01" y2="12"/><line x1="18" y1="10" x2="18.01" y2="10"/><rect width="20" height="12" x="2" y="6" rx="2"/></svg></span></span>
<span class="name">兴趣娱乐</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-briefcase"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="7" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg></span></span>
<span class="name">实践创业</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-camera"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"/><circle cx="12" cy="13" r="3"/></svg></span></span>
<span class="name">传媒影音</span>
</div>
<div class="cat-option" onclick="selectCat(this)">
<span class="icon"><span class="icon-svg icon-graduation-cap"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c3 3 9 3 12 0v-5"/></svg></span></span>
<span class="name">学习互助</span>
</div>
</div>
</div>
<!-- 社团简介 -->
<div class="textarea-group">
<div class="textarea-label"><span class="required">*</span>社团简介</div>
<textarea class="form-textarea" placeholder="介绍一下你的社团,吸引更多同学加入吧..." maxlength="200">汇聚校园桌游爱好者,每周组织狼人杀、剧本杀、桌游聚会,新人友好,零基础也能快速上手!</textarea>
<div class="textarea-count">38/200</div>
</div>
<!-- 兴趣标签 -->
<div class="tags-group">
<div class="tags-label">兴趣标签(最多选5个)</div>
<div class="tags-list">
<span class="tag-chip selected" onclick="toggleTag(this)">桌游</span>
<span class="tag-chip selected" onclick="toggleTag(this)">狼人杀</span>
<span class="tag-chip selected" onclick="toggleTag(this)">剧本杀</span>
<span class="tag-chip" onclick="toggleTag(this)">聚会</span>
<span class="tag-chip" onclick="toggleTag(this)">策略</span>
<span class="tag-chip" onclick="toggleTag(this)">卡牌</span>
<span class="tag-chip" onclick="toggleTag(this)">新人友好</span>
<span class="tag-chip add" onclick="addTag()">+ 自定义</span>
</div>
</div>
<!-- 更多信息 -->
<div class="form-title">更多信息</div>
<div class="form-group">
<div class="form-row">
<span class="form-label">招新状态</span>
<span class="form-value" style="color:var(--youth-primary);">招新中</span>
<span class="form-arrow">
<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>
</span>
</div>
<div class="form-row">
<span class="form-label">招募人数</span>
<input type="text" class="form-input" placeholder="不限" value="不限">
</div>
<div class="form-row">
<span class="form-label">联系微信</span>
<input type="text" class="form-input" placeholder="选填,便于联系" value="youthome_club">
</div>
</div>
<!-- 协议 -->
<div style="padding: 0 20px 16px; font-size: 11px; color: var(--youth-text-tertiary); line-height: 1.6;">
点击提交即表示同意 <span style="color:var(--youth-primary);">《社团创建协议》</span>,请确保信息真实有效,违反规则的社团将被下架处理。
</div>
</div>
<!-- 底部按钮 -->
<div class="bottom-actions">
<button class="btn-secondary" onclick="saveDraft()">存草稿</button>
<button class="btn-primary" onclick="submitForm()">提交审核</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 showDraft() { alert('草稿箱'); }
function uploadLogo() { alert('上传头像'); }
function selectCategory() { alert('选择分类'); }
function saveDraft() { alert('已保存草稿'); }
function submitForm() { alert('提交审核成功,等待管理员审批'); }
function addTag() { alert('添加自定义标签'); }
function selectCat(el) {
document.querySelectorAll('.cat-option').forEach(c => c.classList.remove('selected'));
el.classList.add('selected');
}
function toggleTag(el) {
if (el.classList.contains('add')) return;
el.classList.toggle('selected');
}</script>
</body>
</html>