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.
476 lines
14 KiB
476 lines
14 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); }
|
|
|
|
/* 滚动区域 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 80px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar { display: none; }
|
|
|
|
/* 表单分组 */
|
|
.form-group {
|
|
background: var(--youth-bg-card);
|
|
margin: 0 16px 10px;
|
|
border-radius: 12px;
|
|
padding: 4px 0;
|
|
box-shadow: var(--youth-shadow-card);
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 10px 14px;
|
|
position: relative;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-row + .form-row::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 14px;
|
|
right: 14px;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.form-label {
|
|
width: 64px;
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
padding-top: 9px;
|
|
}
|
|
|
|
.form-label .required {
|
|
color: var(--youth-danger-500);
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.form-input-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.form-input, .form-textarea, .form-select {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
padding: 8px 10px;
|
|
background: var(--youth-bg-page);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.form-input:focus, .form-textarea:focus, .form-select:focus {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: inset 0 1px 3px rgba(38, 194, 187, 0.06), 0 0 0 3px rgba(38, 194, 187, 0.1);
|
|
}
|
|
|
|
.form-textarea {
|
|
resize: none;
|
|
min-height: 60px;
|
|
}
|
|
|
|
.form-select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
padding-right: 32px;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* 分类选择 */
|
|
.type-selector {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.type-tag {
|
|
padding: 6px 14px;
|
|
background: var(--tag-bg);
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.type-tag.active {
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 封面上传 */
|
|
.cover-upload {
|
|
width: 100%;
|
|
height: 120px;
|
|
border: 1.5px dashed var(--youth-primary-border);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
background: var(--youth-primary-bg);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.cover-upload:active { opacity: 0.8; }
|
|
|
|
.cover-upload svg { color: var(--youth-primary); }
|
|
|
|
.cover-upload-text {
|
|
font-size: 12px;
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.cover-upload-hint {
|
|
font-size: 10px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 底部操作栏 */
|
|
.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;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--youth-gradient-primary);
|
|
color: #fff;
|
|
box-shadow: var(--youth-shadow-btn);
|
|
}
|
|
|
|
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
border: 1px solid var(--youth-border-light);
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
/* 人数行 */
|
|
.num-input-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.num-input {
|
|
width: 100px;
|
|
min-height: 40px;
|
|
padding: 10px 12px;
|
|
background: var(--youth-bg-page);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
text-align: center;
|
|
outline: none;
|
|
}
|
|
|
|
.num-input:focus {
|
|
border-color: var(--youth-primary);
|
|
}
|
|
|
|
.num-unit {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 分组标题 */
|
|
.group-title {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
padding: 4px 16px 6px;
|
|
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="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>
|
|
<div style="width:36px;"></div>
|
|
</div>
|
|
|
|
<div class="scroll-area">
|
|
<!-- 公告类型 -->
|
|
<div class="group-title">公告类型</div>
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>类型</div>
|
|
<div class="form-input-wrap">
|
|
<div class="type-selector">
|
|
<span class="type-tag active">讲座</span>
|
|
<span class="type-tag">演出</span>
|
|
<span class="type-tag">招聘会</span>
|
|
<span class="type-tag">会议</span>
|
|
<span class="type-tag">活动</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 基本信息 -->
|
|
<div class="group-title">基本信息</div>
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>标题</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="请输入公告标题">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-label">副标题</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="请输入副标题(选填)">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>简介</div>
|
|
<div class="form-input-wrap">
|
|
<textarea class="form-textarea" placeholder="简要介绍公告内容,吸引用户点击"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 时间地点 -->
|
|
<div class="group-title">时间与地点</div>
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>日期</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="2024-10-25" value="2024-10-25">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>时间</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="09:00 - 17:00" value="09:00 - 17:00">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>地点</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="请输入活动地点">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主办方 -->
|
|
<div class="group-title">主办方信息</div>
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>主办方</div>
|
|
<div class="form-input-wrap">
|
|
<input type="text" class="form-input" placeholder="请输入主办方名称">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-label">人数限制</div>
|
|
<div class="form-input-wrap">
|
|
<div class="num-input-wrap">
|
|
<input type="number" class="num-input" value="500">
|
|
<span class="num-unit">人</span>
|
|
</div>
|
|
<div class="form-hint">留空表示不限制人数</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 详细内容 -->
|
|
<div class="group-title">详细内容</div>
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
<div class="form-label"><span class="required">*</span>正文</div>
|
|
<div class="form-input-wrap">
|
|
<textarea class="form-textarea" style="min-height:120px;" placeholder="请输入公告详细内容,支持换行"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 封面图 -->
|
|
<div class="group-title">封面图片</div>
|
|
<div class="form-group" style="padding: 12px 16px;">
|
|
<div class="cover-upload">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
<circle cx="8.5" cy="8.5" r="1.5"></circle>
|
|
<polyline points="21 15 16 10 5 21"></polyline>
|
|
</svg>
|
|
<span class="cover-upload-text">点击上传封面图</span>
|
|
<span class="cover-upload-hint">建议尺寸 750×420px,支持 JPG/PNG</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bottom-bar">
|
|
<button class="btn btn-outline">存草稿</button>
|
|
<button class="btn btn-primary">发布公告</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(); }
|
|
|
|
// 类型选择
|
|
document.querySelectorAll('.type-tag').forEach(tag => {
|
|
tag.addEventListener('click', function() {
|
|
document.querySelectorAll('.type-tag').forEach(t => t.classList.remove('active'));
|
|
this.classList.add('active');
|
|
});
|
|
});</script>
|
|
</body>
|
|
</html>
|
|
|