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.
1639 lines
64 KiB
1639 lines
64 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>青核 Youthome - 发起活动</title>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<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-primary);
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
max-width: 375px;
|
|
margin: 0 auto;
|
|
height: 812px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
/* ===== 状态栏 ===== */
|
|
.status-bar {
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* ===== 顶部导航 ===== */
|
|
.nav-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 44px;
|
|
padding: 0 14px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border-light);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--youth-text-primary);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
.nav-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
/* ===== 三步立体进度条 ===== */
|
|
.stepper-wrapper {
|
|
padding: 6px 20px 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stepper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
|
|
.stepper-line {
|
|
position: absolute;
|
|
top: 14px;
|
|
left: 32px;
|
|
right: 32px;
|
|
height: 3px;
|
|
background: var(--youth-gray-200);
|
|
border-radius: 2px;
|
|
box-shadow: var(--youth-inset-soft);
|
|
z-index: 0;
|
|
}
|
|
|
|
.stepper-line-fill {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 50%;
|
|
background: var(--youth-gradient-progress);
|
|
border-radius: 2px;
|
|
box-shadow: 0 1px 2px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
.stepper-line-fill::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: 2px 2px 0 0;
|
|
}
|
|
|
|
.step-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
position: relative;
|
|
z-index: 1;
|
|
flex: 1;
|
|
}
|
|
|
|
.step-circle {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.step-circle.completed {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
.step-circle.completed::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: 50% 50% 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.step-circle.active {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
box-shadow: 0 0 0 3px rgba(38, 194, 187, 0.15), 0 3px 12px rgba(38, 194, 187, 0.4);
|
|
animation: stepPulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.step-circle.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: 50% 50% 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes stepPulse {
|
|
0%, 100% { box-shadow: 0 0 0 3px rgba(38, 194, 187, 0.15), 0 3px 12px rgba(38, 194, 187, 0.4); }
|
|
50% { box-shadow: 0 0 0 6px rgba(38, 194, 187, 0.08), 0 3px 16px rgba(38, 194, 187, 0.5); }
|
|
}
|
|
|
|
.step-circle.pending {
|
|
background: var(--youth-bg-card);
|
|
color: var(--youth-gray-400);
|
|
border: 2px solid var(--youth-gray-200);
|
|
box-shadow: var(--youth-inset-soft);
|
|
}
|
|
|
|
.step-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--youth-muted-foreground);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.step-item.completed .step-label,
|
|
.step-item.active .step-label {
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ===== 活动类型已选卡片 ===== */
|
|
.type-selected-card {
|
|
margin: 0 16px 8px;
|
|
padding: 10px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: var(--youth-radius-xl);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: var(--youth-shadow-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.type-icon-large {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--youth-radius-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #E5F0FF 0%, #D4E5FF 100%);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
box-shadow: var(--youth-inset-soft);
|
|
}
|
|
|
|
.type-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.type-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.type-desc {
|
|
font-size: 11px;
|
|
color: var(--youth-muted-foreground);
|
|
}
|
|
|
|
.type-change-btn {
|
|
padding: 6px 12px;
|
|
background: var(--youth-accent);
|
|
color: var(--youth-primary);
|
|
border-radius: var(--youth-radius-full);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.type-change-btn:active {
|
|
transform: scale(0.95);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* ===== 表单分区 ===== */
|
|
.form-section {
|
|
margin: 0 16px 8px;
|
|
}
|
|
|
|
.form-section-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.form-section-title::before {
|
|
content: '';
|
|
width: 3px;
|
|
height: 14px;
|
|
background: var(--youth-gradient-primary);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ===== 表单分组卡片 ===== */
|
|
.form-card {
|
|
background: var(--youth-bg-card);
|
|
border-radius: var(--youth-radius-xl);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.form-group {
|
|
padding: 8px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.form-group:active {
|
|
background: var(--youth-muted);
|
|
}
|
|
|
|
.form-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: var(--youth-radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-accent);
|
|
color: var(--youth-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
width: 64px;
|
|
}
|
|
|
|
.form-input-field {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
text-align: right;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.form-input-field::placeholder {
|
|
color: var(--youth-gray-400);
|
|
}
|
|
|
|
.form-value {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-size: 13px;
|
|
color: var(--youth-gray-400);
|
|
}
|
|
|
|
.form-value.has-value {
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.form-arrow {
|
|
color: var(--youth-gray-400);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ===== 活动标题输入 ===== */
|
|
.title-input-wrapper {
|
|
background: var(--youth-input);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: var(--youth-radius-lg);
|
|
padding: 8px 12px;
|
|
box-shadow: var(--youth-inset-input);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.title-input-wrapper:focus-within {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: var(--youth-inset-input), 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
.title-input {
|
|
width: 100%;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.title-input::placeholder {
|
|
color: var(--youth-gray-400);
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* ===== 封面上传区 ===== */
|
|
.cover-upload {
|
|
width: 100%;
|
|
height: 80px;
|
|
border-radius: var(--youth-radius-lg);
|
|
border: 2px dashed var(--youth-gray-300);
|
|
background: var(--youth-input);
|
|
box-shadow: var(--youth-inset-input);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cover-upload::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
border-radius: var(--youth-radius-lg);
|
|
background: linear-gradient(135deg, rgba(38, 194, 187, 0.03) 0%, rgba(38, 194, 187, 0.08) 100%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.cover-upload:hover::before,
|
|
.cover-upload:active::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cover-upload:active {
|
|
border-color: var(--youth-primary);
|
|
transform: scale(0.99);
|
|
}
|
|
|
|
.cover-upload-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--youth-primary-100) 0%, var(--youth-primary-200) 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-primary);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cover-upload-text {
|
|
font-size: 12px;
|
|
color: var(--youth-gray-500);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cover-upload-hint {
|
|
font-size: 10px;
|
|
color: var(--youth-gray-400);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* ===== 人数选择器 ===== */
|
|
.people-stepper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
background: var(--youth-input);
|
|
border-radius: var(--youth-radius-full);
|
|
padding: 2px;
|
|
box-shadow: var(--youth-inset-soft);
|
|
}
|
|
|
|
.stepper-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
background: linear-gradient(145deg, #FFFFFF 0%, #F0F3F3 100%);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(255,255,255,0.8) inset;
|
|
color: var(--youth-gray-600);
|
|
}
|
|
|
|
.stepper-btn:active {
|
|
transform: scale(0.92);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 2px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stepper-btn.plus {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
.stepper-btn.plus:active {
|
|
box-shadow: 0 1px 3px rgba(38, 194, 187, 0.4), inset 0 1px 2px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.people-input {
|
|
width: 40px;
|
|
height: 28px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.people-input::-webkit-outer-spin-button,
|
|
.people-input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ===== 活动描述 ===== */
|
|
.description-wrapper {
|
|
background: var(--youth-input);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: var(--youth-radius-lg);
|
|
padding: 8px 10px;
|
|
box-shadow: var(--youth-inset-input);
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.description-wrapper:focus-within {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: var(--youth-inset-input), 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
.description-textarea {
|
|
width: 100%;
|
|
min-height: 48px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
resize: none;
|
|
line-height: 1.4;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.description-textarea::placeholder {
|
|
color: var(--youth-gray-400);
|
|
}
|
|
|
|
.char-count {
|
|
text-align: right;
|
|
font-size: 11px;
|
|
color: var(--youth-gray-400);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ===== 底部操作区 ===== */
|
|
.bottom-actions {
|
|
position: relative;
|
|
padding: 8px 16px 12px;
|
|
background: var(--youth-bg-card);
|
|
border-top: 1px solid var(--youth-border-light);
|
|
display: flex;
|
|
gap: 10px;
|
|
z-index: 10;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-secondary {
|
|
flex: 1;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-secondary);
|
|
border: 1px solid var(--youth-border-light);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-secondary:active {
|
|
transform: scale(0.98);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-primary {
|
|
flex: 1.5;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
border: none;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: var(--youth-shadow-btn);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-primary::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-primary:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
/* ===== 步骤内容切换 ===== */
|
|
.step-content {
|
|
display: none;
|
|
}
|
|
|
|
.step-content.active {
|
|
display: block;
|
|
animation: fadeSlideIn 0.35s ease;
|
|
}
|
|
|
|
@keyframes fadeSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* ===== 步骤1: 类型选择网格 ===== */
|
|
.type-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.type-grid-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.type-grid-item:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.type-grid-icon {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: var(--youth-radius-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-bg-card);
|
|
border: 2px solid var(--youth-border-light);
|
|
transition: all 0.3s ease;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.type-grid-item.selected .type-grid-icon {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: 0 0 0 3px rgba(38, 194, 187, 0.15), var(--youth-shadow-soft);
|
|
}
|
|
|
|
.type-grid-name {
|
|
font-size: 11px;
|
|
color: var(--youth-muted-foreground);
|
|
text-align: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.type-grid-item.selected .type-grid-name {
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ===== 步骤3: 权限设置 ===== */
|
|
.permission-card {
|
|
background: var(--youth-bg-card);
|
|
border-radius: var(--youth-radius-xl);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: var(--youth-shadow-md);
|
|
overflow: hidden;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.permission-item {
|
|
padding: 10px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.permission-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.permission-item:active {
|
|
background: var(--youth-muted);
|
|
}
|
|
|
|
.permission-radio {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--youth-gray-300);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.permission-item.selected .permission-radio {
|
|
border-color: var(--youth-primary);
|
|
}
|
|
|
|
.permission-radio-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--youth-gradient-primary);
|
|
transform: scale(0);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.permission-item.selected .permission-radio-dot {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.permission-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.permission-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.permission-desc {
|
|
font-size: 11px;
|
|
color: var(--youth-muted-foreground);
|
|
}
|
|
|
|
/* 标签选择 */
|
|
.tag-select-section {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.tag-cloud {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.tag-item {
|
|
padding: 5px 10px;
|
|
border-radius: var(--youth-radius-full);
|
|
font-size: 12px;
|
|
background: var(--youth-secondary);
|
|
color: var(--youth-secondary-foreground);
|
|
border: 1px solid var(--youth-border-light);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.tag-item.selected {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
border-color: transparent;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
.tag-item:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* ===== 成功弹窗 ===== */
|
|
.success-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 998;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.success-overlay.show {
|
|
display: flex;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.success-modal {
|
|
width: 280px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 20px;
|
|
padding: 32px 24px 24px;
|
|
text-align: center;
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
|
|
animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
z-index: 999;
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.8);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.success-icon {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 50%;
|
|
background: var(--youth-gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 20px;
|
|
box-shadow: 0 8px 24px rgba(38, 194, 187, 0.35);
|
|
position: relative;
|
|
}
|
|
|
|
.success-icon::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: 50% 50% 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.success-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.success-desc {
|
|
font-size: 14px;
|
|
color: var(--youth-muted-foreground);
|
|
margin-bottom: 24px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.success-btn {
|
|
width: 100%;
|
|
height: 48px;
|
|
border-radius: var(--youth-radius-xl);
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
border: none;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 16px rgba(38, 194, 187, 0.3);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.success-btn::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;
|
|
}
|
|
|
|
.success-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* 滚动容器 */
|
|
.scroll-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
min-height: 0;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
/* 自定义滚动条 */
|
|
.scroll-content::-webkit-scrollbar {
|
|
width: 0;
|
|
display: none;
|
|
}
|
|
|
|
/* 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">
|
|
<!-- 状态栏 -->
|
|
<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>
|
|
<!-- WiFi图标 -->
|
|
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
|
|
<path d="M7.5 11C6.9 11 6.4 10.8 6 10.4C5.2 9.6 5 8.6 5.4 7.6C5.8 6.6 6.8 6 7.8 6C9 6 10 6.8 10.2 8C10.4 8.8 10 9.6 9.4 10.2C8.9 10.7 8.2 11 7.5 11ZM7.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>
|
|
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"></path>
|
|
</svg>
|
|
<!-- 电池图标 -->
|
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
|
|
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
|
|
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航 -->
|
|
<div class="nav-bar">
|
|
<button class="nav-btn" data-dom-id="btn-back" aria-label="返回">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="m15 18-6-6 6-6"></path>
|
|
</svg>
|
|
</button>
|
|
<span class="nav-title">发起活动</span>
|
|
|
|
</div>
|
|
|
|
<!-- 三步进度条 -->
|
|
<div class="stepper-wrapper">
|
|
<div class="stepper">
|
|
<div class="stepper-line">
|
|
<div class="stepper-line-fill" id="stepper-progress"></div>
|
|
</div>
|
|
<div class="step-item completed" data-step="1">
|
|
<div class="step-circle completed">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M20 6 9 17l-5-5"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="step-label">选择类型</span>
|
|
</div>
|
|
<div class="step-item active" data-step="2">
|
|
<div class="step-circle active">2</div>
|
|
<span class="step-label">填写信息</span>
|
|
</div>
|
|
<div class="step-item" data-step="3">
|
|
<div class="step-circle pending">3</div>
|
|
<span class="step-label">设置权限</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 滚动内容区 -->
|
|
<div class="scroll-content">
|
|
<!-- 步骤1: 活动类型选择 -->
|
|
<div class="step-content" id="step-1">
|
|
<div class="form-section">
|
|
<div class="form-section-title">选择活动类型</div>
|
|
<div class="form-card" style="padding: 14px 14px;">
|
|
<div class="type-grid" id="type-grid">
|
|
<!-- 运动健身 -->
|
|
<div class="type-grid-item selected" data-type="sports">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #E5F0FF 0%, #D4E5FF 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#5385E5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="m6.5 6.5 11 11"></path>
|
|
<path d="m21 21-1-1"></path>
|
|
<path d="m3 3 1 1"></path>
|
|
<path d="m18 22 4-4"></path>
|
|
<path d="m2 6 4-4"></path>
|
|
<path d="m3 10 7-7"></path>
|
|
<path d="m14 21 7-7"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">运动健身</span>
|
|
</div>
|
|
<!-- 学习交流 -->
|
|
<div class="type-grid-item" data-type="study">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #E5EBFF 0%, #D4DFFF 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#5378E5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 10v6M2 10l10-5 10 5-10 5z"></path>
|
|
<path d="M6 12v5c3 3 9 3 12 0v-5"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">学习交流</span>
|
|
</div>
|
|
<!-- 美食探店 -->
|
|
<div class="type-grid-item" data-type="food">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #FFF9E5 0%, #FFF4D4 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#E5C553" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7z"></path>
|
|
<path d="M9.5 10.5a2.5 2.5 0 0 1 5 0"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">美食探店</span>
|
|
</div>
|
|
<!-- 桌游娱乐 -->
|
|
<div class="type-grid-item" data-type="game">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #E5FFE5 0%, #D4FFD4 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#53C253" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="3" width="18" height="18" rx="3"></rect>
|
|
<path d="M7 7h.01"></path>
|
|
<path d="M17 7h.01"></path>
|
|
<path d="M7 17h.01"></path>
|
|
<path d="M17 17h.01"></path>
|
|
<path d="M12 12h.01"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">桌游娱乐</span>
|
|
</div>
|
|
<!-- 音乐演出 -->
|
|
<div class="type-grid-item" data-type="music">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #FFE5E5 0%, #FFD4D4 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#E55353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M9 18V5l12-2v13"></path>
|
|
<circle cx="6" cy="18" r="3"></circle>
|
|
<circle cx="18" cy="16" r="3"></circle>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">音乐演出</span>
|
|
</div>
|
|
<!-- 旅行户外 -->
|
|
<div class="type-grid-item" data-type="travel">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #E5FFF0 0%, #D4FFE0 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#53B972" 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="type-grid-name">旅行户外</span>
|
|
</div>
|
|
<!-- 观影看剧 -->
|
|
<div class="type-grid-item" data-type="movie">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #FFE5F0 0%, #FFD4E5 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#E55395" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="4" width="20" height="16" rx="2"></rect>
|
|
<path d="M2 8h20"></path>
|
|
<path d="M6 4v16"></path>
|
|
<path d="M18 4v16"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">观影看剧</span>
|
|
</div>
|
|
<!-- 其他活动 -->
|
|
<div class="type-grid-item" data-type="other">
|
|
<div class="type-grid-icon" style="background: linear-gradient(135deg, #E5F7F5 0%, #D4F0ED 100%);">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#26C2BB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<path d="M12 16v-4"></path>
|
|
<path d="M12 8h.01"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="type-grid-name">其他活动</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 步骤2: 基本信息 -->
|
|
<div class="step-content active" id="step-2">
|
|
<!-- 已选活动类型 -->
|
|
<div class="type-selected-card">
|
|
<div class="type-icon-large">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#5385E5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="m6.5 6.5 11 11"></path>
|
|
<path d="m21 21-1-1"></path>
|
|
<path d="m3 3 1 1"></path>
|
|
<path d="m18 22 4-4"></path>
|
|
<path d="m2 6 4-4"></path>
|
|
<path d="m3 10 7-7"></path>
|
|
<path d="m14 21 7-7"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="type-info">
|
|
<div class="type-name">运动健身</div>
|
|
<div class="type-desc">足球 / 篮球 / 跑步 / 健身</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 活动标题 -->
|
|
<div class="form-section">
|
|
<div class="form-section-title">活动标题</div>
|
|
<div class="title-input-wrapper">
|
|
<input type="text" class="title-input" data-dom-id="input-title" placeholder="给你的活动起个名字吧" maxlength="30">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 活动封面 -->
|
|
<div class="form-section">
|
|
<div class="form-section-title">活动封面</div>
|
|
<div class="cover-upload" data-dom-id="btn-cover-upload">
|
|
<div class="cover-upload-icon">
|
|
<svg width="24" height="24" 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"></path>
|
|
<circle cx="12" cy="13" r="3"></circle>
|
|
</svg>
|
|
</div>
|
|
<span class="cover-upload-text">上传活动封面</span>
|
|
<span class="cover-upload-hint">建议尺寸 16:9,清晰有吸引力</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 基本信息表单 -->
|
|
<div class="form-section" style="height: 189.32px !important;">
|
|
<div class="form-section-title">活动信息</div>
|
|
<div class="form-card">
|
|
<!-- 地点 -->
|
|
<div class="form-group" data-dom-id="select-location">
|
|
|
|
<span class="form-label">活动地点</span>
|
|
<span class="form-value">请选择活动地点</span>
|
|
<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">
|
|
<path d="m9 18 6-6-6-6"></path>
|
|
</svg>
|
|
</div>
|
|
<!-- 开始时间 -->
|
|
<div class="form-group" data-dom-id="select-start-time">
|
|
|
|
<span class="form-label">开始时间</span>
|
|
<span class="form-value">选择开始时间</span>
|
|
<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">
|
|
<path d="m9 18 6-6-6-6"></path>
|
|
</svg>
|
|
</div>
|
|
<!-- 结束时间 -->
|
|
<div class="form-group" data-dom-id="select-end-time">
|
|
|
|
<span class="form-label">结束时间</span>
|
|
<span class="form-value">选择结束时间</span>
|
|
<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">
|
|
<path d="m9 18 6-6-6-6"></path>
|
|
</svg>
|
|
</div>
|
|
<!-- 人数上限 -->
|
|
<div class="form-group">
|
|
|
|
<span class="form-label">人数上限</span>
|
|
<div style="flex:1; display:flex; justify-content:flex-end;">
|
|
<div class="people-stepper">
|
|
<button class="stepper-btn minus" data-dom-id="btn-people-minus" aria-label="减少人数">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
</svg>
|
|
</button>
|
|
<input type="number" class="people-input" data-dom-id="input-people" value="10" min="1" max="999">
|
|
<button class="stepper-btn plus" data-dom-id="btn-people-plus" aria-label="增加人数">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="12" y1="5" x2="12" y2="19"></line>
|
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 活动描述 -->
|
|
<div class="form-section">
|
|
<div class="form-section-title">活动描述</div>
|
|
<div class="description-wrapper">
|
|
<textarea class="description-textarea" data-dom-id="input-description" placeholder="简单介绍一下活动内容和要求吧~" maxlength="200"></textarea>
|
|
<div class="char-count"><span id="char-current">0</span>/200</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 步骤3: 权限设置 -->
|
|
<div class="step-content" id="step-3">
|
|
<div class="form-section">
|
|
<div class="form-section-title">可见范围</div>
|
|
<div class="permission-card" id="visibility-options">
|
|
<div class="permission-item selected" data-visibility="public">
|
|
<div class="permission-radio">
|
|
<div class="permission-radio-dot"></div>
|
|
</div>
|
|
<div class="permission-info">
|
|
<div class="permission-title">公开活动</div>
|
|
<div class="permission-desc">全校同学都可以看到并报名</div>
|
|
</div>
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--youth-gray-400)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<path d="M2 12h20"></path>
|
|
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="permission-item" data-visibility="same_college">
|
|
<div class="permission-radio">
|
|
<div class="permission-radio-dot"></div>
|
|
</div>
|
|
<div class="permission-info">
|
|
<div class="permission-title">同学院可见</div>
|
|
<div class="permission-desc">只有相同学院的同学可以看到</div>
|
|
</div>
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--youth-gray-400)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 10v6M2 10l10-5 10 5-10 5z"></path>
|
|
<path d="M6 12v5c3 3 9 3 12 0v-5"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="permission-item" data-visibility="invite">
|
|
<div class="permission-radio">
|
|
<div class="permission-radio-dot"></div>
|
|
</div>
|
|
<div class="permission-info">
|
|
<div class="permission-title">仅邀请可见</div>
|
|
<div class="permission-desc">只有被邀请的好友可以参与</div>
|
|
</div>
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--youth-gray-400)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
|
|
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-section">
|
|
<div class="form-section-title">活动标签</div>
|
|
<div class="form-card" style="padding: 12px;">
|
|
<p style="font-size: 13px; color: var(--youth-muted-foreground); margin: 0 0 4px 0;">选择标签让更多同好发现你的活动</p>
|
|
<div class="tag-cloud" id="tag-cloud">
|
|
<span class="tag-item selected" data-tag="篮球">#篮球</span>
|
|
<span class="tag-item" data-tag="跑步">#跑步</span>
|
|
<span class="tag-item" data-tag="健身">#健身</span>
|
|
<span class="tag-item" data-tag="羽毛球">#羽毛球</span>
|
|
<span class="tag-item" data-tag="足球">#足球</span>
|
|
<span class="tag-item" data-tag="游泳">#游泳</span>
|
|
<span class="tag-item" data-tag="网球">#网球</span>
|
|
<span class="tag-item" data-tag="夜跑">#夜跑</span>
|
|
<span class="tag-item" data-tag="户外">#户外</span>
|
|
<span class="tag-item" data-tag="约球">#约球</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-section">
|
|
<div class="form-section-title">报名设置</div>
|
|
<div class="permission-card">
|
|
<div class="permission-item" style="cursor: default;">
|
|
<div class="permission-info">
|
|
<div class="permission-title">需要审核</div>
|
|
<div class="permission-desc">报名者需经过你的同意才能参与</div>
|
|
</div>
|
|
<div class="youth-switch" id="review-switch" style="flex-shrink: 0;">
|
|
<div class="youth-switch-thumb"></div>
|
|
</div>
|
|
</div>
|
|
<div class="permission-item" style="cursor: default;">
|
|
<div class="permission-info">
|
|
<div class="permission-title">实名认证</div>
|
|
<div class="permission-desc">仅允许已实名认证的同学报名</div>
|
|
</div>
|
|
<div class="youth-switch active" id="verify-switch" style="flex-shrink: 0;">
|
|
<div class="youth-switch-thumb"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部操作区 -->
|
|
<div class="bottom-actions">
|
|
<button class="btn-secondary" data-dom-id="btn-prev">上一步</button>
|
|
<button class="btn-primary" data-dom-id="btn-next">下一步</button>
|
|
<button class="btn-primary" data-dom-id="btn-publish" style="display: none;">发布活动</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 发布成功弹窗 -->
|
|
<div class="success-overlay" id="success-overlay">
|
|
<div class="success-modal">
|
|
<div class="success-icon">
|
|
<svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="position: relative; z-index: 1;">
|
|
<path d="M20 6 9 17l-5-5"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="success-title">发布成功!</div>
|
|
<div class="success-desc">你的活动已提交审核<br>审核通过后将展示给全校同学</div>
|
|
<button class="success-btn" id="success-ok">我知道了</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>// ===== 主题切换 =====
|
|
(function() {
|
|
const html = document.documentElement;
|
|
|
|
sunIcon.style.display = 'block';
|
|
moonIcon.style.display = 'none';
|
|
}
|
|
});
|
|
})();
|
|
|
|
// ===== 返回按钮 =====
|
|
(function() {
|
|
const backBtn = document.querySelector('[data-dom-id="btn-back"]');
|
|
backBtn.addEventListener('click', function() {
|
|
// 返回到活动列表页
|
|
window.location.href = 'activity-list.html';
|
|
});
|
|
})();
|
|
|
|
// ===== 当前步骤管理 =====
|
|
let currentStep = 2;
|
|
const totalSteps = 3;
|
|
|
|
function updateStepper() {
|
|
const stepItems = document.querySelectorAll('.step-item');
|
|
const progressFill = document.getElementById('stepper-progress');
|
|
|
|
stepItems.forEach((item, index) => {
|
|
const stepNum = index + 1;
|
|
const circle = item.querySelector('.step-circle');
|
|
|
|
item.classList.remove('completed', 'active');
|
|
circle.classList.remove('completed', 'active', 'pending');
|
|
|
|
if (stepNum < currentStep) {
|
|
item.classList.add('completed');
|
|
circle.classList.add('completed');
|
|
circle.innerHTML = '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>';
|
|
} else if (stepNum === currentStep) {
|
|
item.classList.add('active');
|
|
circle.classList.add('active');
|
|
circle.textContent = stepNum;
|
|
} else {
|
|
circle.classList.add('pending');
|
|
circle.textContent = stepNum;
|
|
}
|
|
});
|
|
|
|
// 更新进度条填充
|
|
const progressPercent = ((currentStep - 1) / (totalSteps - 1)) * 100;
|
|
progressFill.style.width = progressPercent + '%';
|
|
}
|
|
|
|
function showStep(stepNum) {
|
|
currentStep = stepNum;
|
|
document.querySelectorAll('.step-content').forEach(el => el.classList.remove('active'));
|
|
document.getElementById('step-' + stepNum).classList.add('active');
|
|
updateStepper();
|
|
|
|
// 更新底部按钮
|
|
const prevBtn = document.querySelector('[data-dom-id="btn-prev"]');
|
|
const nextBtn = document.querySelector('[data-dom-id="btn-next"]');
|
|
const publishBtn = document.querySelector('[data-dom-id="btn-publish"]');
|
|
|
|
if (stepNum === 1) {
|
|
prevBtn.style.display = 'none';
|
|
nextBtn.style.display = 'block';
|
|
nextBtn.textContent = '下一步';
|
|
publishBtn.style.display = 'none';
|
|
} else if (stepNum === totalSteps) {
|
|
prevBtn.style.display = 'block';
|
|
prevBtn.style.flex = '1';
|
|
nextBtn.style.display = 'none';
|
|
publishBtn.style.display = 'block';
|
|
publishBtn.style.flex = '1.5';
|
|
} else {
|
|
prevBtn.style.display = 'block';
|
|
prevBtn.style.flex = '1';
|
|
nextBtn.style.display = 'block';
|
|
nextBtn.style.flex = '1.5';
|
|
nextBtn.textContent = '下一步';
|
|
publishBtn.style.display = 'none';
|
|
}
|
|
|
|
// 滚动到顶部
|
|
document.querySelector('.scroll-content').scrollTop = 0;
|
|
}
|
|
|
|
// ===== 上一步 / 下一步 =====
|
|
(function() {
|
|
const prevBtn = document.querySelector('[data-dom-id="btn-prev"]');
|
|
const nextBtn = document.querySelector('[data-dom-id="btn-next"]');
|
|
const publishBtn = document.querySelector('[data-dom-id="btn-publish"]');
|
|
|
|
prevBtn.addEventListener('click', function() {
|
|
if (currentStep > 1) {
|
|
showStep(currentStep - 1);
|
|
}
|
|
});
|
|
|
|
nextBtn.addEventListener('click', function() {
|
|
if (currentStep < totalSteps) {
|
|
showStep(currentStep + 1);
|
|
}
|
|
});
|
|
|
|
publishBtn.addEventListener('click', function() {
|
|
// 显示发布成功弹窗
|
|
document.getElementById('success-overlay').classList.add('show');
|
|
});
|
|
})();
|
|
|
|
// ===== 更换类型按钮 =====
|
|
(function() {
|
|
const changeTypeBtn = document.querySelector('[data-dom-id="btn-change-type"]');
|
|
changeTypeBtn.addEventListener('click', function() {
|
|
showStep(1);
|
|
});
|
|
})();
|
|
|
|
// ===== 类型选择 =====
|
|
(function() {
|
|
const typeItems = document.querySelectorAll('.type-grid-item');
|
|
typeItems.forEach(item => {
|
|
item.addEventListener('click', function() {
|
|
typeItems.forEach(i => i.classList.remove('selected'));
|
|
this.classList.add('selected');
|
|
// 自动跳到下一步
|
|
setTimeout(() => {
|
|
showStep(2);
|
|
}, 200);
|
|
});
|
|
});
|
|
})();
|
|
|
|
// ===== 人数加减 =====
|
|
(function() {
|
|
const minusBtn = document.querySelector('[data-dom-id="btn-people-minus"]');
|
|
const plusBtn = document.querySelector('[data-dom-id="btn-people-plus"]');
|
|
const input = document.querySelector('[data-dom-id="input-people"]');
|
|
|
|
function clampValue(val) {
|
|
val = parseInt(val) || 1;
|
|
if (val < 1) val = 1;
|
|
if (val > 999) val = 999;
|
|
return val;
|
|
}
|
|
|
|
minusBtn.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
let val = parseInt(input.value) || 1;
|
|
val = clampValue(val - 1);
|
|
input.value = val;
|
|
});
|
|
|
|
plusBtn.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
let val = parseInt(input.value) || 1;
|
|
val = clampValue(val + 1);
|
|
input.value = val;
|
|
});
|
|
|
|
input.addEventListener('input', function() {
|
|
this.value = this.value.replace(/[^0-9]/g, '');
|
|
if (this.value === '') return;
|
|
this.value = clampValue(this.value);
|
|
});
|
|
|
|
input.addEventListener('blur', function() {
|
|
if (this.value === '' || parseInt(this.value) < 1) {
|
|
this.value = 1;
|
|
}
|
|
});
|
|
})();
|
|
|
|
// ===== 字数统计 =====
|
|
(function() {
|
|
const textarea = document.querySelector('[data-dom-id="input-description"]');
|
|
const charCurrent = document.getElementById('char-current');
|
|
|
|
textarea.addEventListener('input', function() {
|
|
charCurrent.textContent = this.value.length;
|
|
});
|
|
})();
|
|
|
|
// ===== 权限选项切换 =====
|
|
(function() {
|
|
const items = document.querySelectorAll('#visibility-options .permission-item');
|
|
items.forEach(item => {
|
|
item.addEventListener('click', function() {
|
|
items.forEach(i => i.classList.remove('selected'));
|
|
this.classList.add('selected');
|
|
});
|
|
});
|
|
})();
|
|
|
|
// ===== 标签选择 =====
|
|
(function() {
|
|
const tags = document.querySelectorAll('#tag-cloud .tag-item');
|
|
const maxTags = 5;
|
|
|
|
tags.forEach(tag => {
|
|
tag.addEventListener('click', function() {
|
|
if (this.classList.contains('selected')) {
|
|
this.classList.remove('selected');
|
|
} else {
|
|
const selectedCount = document.querySelectorAll('#tag-cloud .tag-item.selected').length;
|
|
if (selectedCount >= maxTags) {
|
|
return; // 最多选5个
|
|
}
|
|
this.classList.add('selected');
|
|
}
|
|
});
|
|
});
|
|
})();
|
|
|
|
// ===== Switch开关 =====
|
|
(function() {
|
|
const switches = document.querySelectorAll('.youth-switch');
|
|
switches.forEach(sw => {
|
|
sw.addEventListener('click', function(e) {
|
|
e.stopPropagation();
|
|
this.classList.toggle('active');
|
|
});
|
|
});
|
|
})();
|
|
|
|
// ===== 成功弹窗关闭 =====
|
|
(function() {
|
|
const overlay = document.getElementById('success-overlay');
|
|
const okBtn = document.getElementById('success-ok');
|
|
|
|
okBtn.addEventListener('click', function() {
|
|
overlay.classList.remove('show');
|
|
// 可以在这里跳转到活动详情页或列表页
|
|
});
|
|
|
|
overlay.addEventListener('click', function(e) {
|
|
if (e.target === overlay) {
|
|
overlay.classList.remove('show');
|
|
}
|
|
});
|
|
})();
|
|
|
|
// ===== 初始化 =====
|
|
updateStepper();</script>
|
|
</body>
|
|
</html>
|
|
|