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.
619 lines
18 KiB
619 lines
18 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">
|
|
<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-secondary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.page-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.status-bar {
|
|
height: 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;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--youth-text-primary);
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.nav-btn:active {
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
/* 表单区 */
|
|
.form-section {
|
|
flex: 1;
|
|
padding: 12px 16px 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.form-section::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 举报对象提示 */
|
|
.report-target {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
margin-bottom: 12px;
|
|
box-shadow: var(--youth-shadow-card);
|
|
}
|
|
|
|
.target-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #FFD93D, #FF9F45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #FFFFFF;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.target-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.target-label {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.target-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.target-type-tag {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 分组标题 */
|
|
.section-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.section-title .required {
|
|
color: var(--youth-primary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* 举报原因列表 */
|
|
.reason-list {
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: var(--youth-shadow-card);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.reason-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.reason-item:active {
|
|
background: var(--youth-primary-bg);
|
|
}
|
|
|
|
.reason-item + .reason-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 16px;
|
|
right: 16px;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.reason-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
background: var(--tag-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-text-tertiary);
|
|
margin-right: 10px;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.reason-item.selected .reason-icon {
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.reason-text {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 单选圈 */
|
|
.radio-circle {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--youth-border-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.reason-item.selected .radio-circle {
|
|
border-color: var(--youth-primary);
|
|
border-width: 2px;
|
|
}
|
|
|
|
.radio-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--youth-primary);
|
|
transform: scale(0);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.reason-item.selected .radio-dot {
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* 补充描述 */
|
|
.desc-section {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.desc-label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.desc-label .optional {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.desc-textarea-wrap {
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: 12px;
|
|
padding: 12px 14px;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.desc-textarea-wrap:focus-within {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: 0 0 0 3px rgba(38, 194, 187, 0.1);
|
|
}
|
|
|
|
.desc-textarea {
|
|
width: 100%;
|
|
min-height: 80px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
line-height: 1.6;
|
|
resize: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.desc-textarea::placeholder {
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.desc-counter {
|
|
text-align: right;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.desc-counter .count-num {
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 提交按钮区 */
|
|
.submit-section {
|
|
padding: 10px 16px 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: var(--youth-gradient-primary);
|
|
color: #FFFFFF;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: var(--youth-shadow-btn);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.submit-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;
|
|
}
|
|
|
|
.submit-btn:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
.submit-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* 提示文字 */
|
|
.submit-tip {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 10px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.submit-tip strong {
|
|
color: var(--youth-primary);
|
|
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 class="right-icons">
|
|
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
|
|
<rect x="0" y="7" width="3" height="4" rx="0.5"></rect>
|
|
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
|
|
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
|
|
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
|
|
</svg>
|
|
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
|
|
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"></path>
|
|
<path d="M7.5 4.5C6 4.5 4.5 5 3.4 6.2C2.3 7.4 2 9 2.4 10.4C2.5 10.8 2.8 11 3.2 11C3.5 11 3.8 10.8 3.9 10.5C4.2 9.5 4.8 8.6 5.7 8C6.6 7.4 7.6 7.1 8.6 7.2C9.8 7.3 10.9 7.8 11.6 8.7C12.3 9.6 12.6 10.7 12.4 11.8L12.4 12C12.3 12.4 12.6 12.7 13 12.8C13.4 12.9 13.7 12.6 13.8 12.2C14.1 10.5 13.5 8.8 12.4 7.5C11.3 6.2 9.6 5.3 7.8 4.9L7.5 4.5Z"></path>
|
|
</svg>
|
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
|
|
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
|
|
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航 -->
|
|
<div class="top-nav">
|
|
<div class="nav-left">
|
|
<button class="nav-btn" data-dom-id="btn-back" 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>
|
|
<div class="nav-title">举报</div>
|
|
<div style="width: 36px;"></div>
|
|
</div>
|
|
|
|
<!-- 表单区 -->
|
|
<div class="form-section">
|
|
<!-- 举报对象 -->
|
|
<div class="report-target" data-dom-id="report-target">
|
|
<div class="target-avatar">陈</div>
|
|
<div class="target-info">
|
|
<div class="target-label">举报对象</div>
|
|
<div class="target-name">陈明轩 · 周末狼人杀活动招募!</div>
|
|
</div>
|
|
<div class="target-type-tag">动态</div>
|
|
</div>
|
|
|
|
<!-- 举报原因 -->
|
|
<div class="section-title">
|
|
举报原因 <span class="required">*</span>
|
|
</div>
|
|
<div class="reason-list" data-dom-id="reason-list">
|
|
<div class="reason-item selected" data-reason="spam" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">垃圾广告 / 骚扰信息</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="porn" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">色情低俗内容</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="fraud" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">虚假信息 / 诈骗</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="insult" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">人身攻击 / 侮辱谩骂</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="violence" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">暴力血腥内容</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="privacy" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">侵犯隐私 / 冒用身份</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="reason-item" data-reason="other" onclick="selectReason(this)">
|
|
|
|
<div class="reason-text">其他原因</div>
|
|
<div class="radio-circle">
|
|
<div class="radio-dot"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 补充描述 -->
|
|
<div class="desc-section">
|
|
<div class="desc-label">
|
|
补充描述
|
|
<span class="optional">选填</span>
|
|
</div>
|
|
<div class="desc-textarea-wrap">
|
|
<textarea
|
|
class="desc-textarea"
|
|
placeholder="请描述具体问题,帮助我们更准确地处理(选填)"
|
|
maxlength="200"
|
|
data-dom-id="desc-textarea"
|
|
id="desc-textarea"
|
|
oninput="updateCounter()"
|
|
></textarea>
|
|
<div class="desc-counter">
|
|
<span class="count-num" id="desc-count">0</span> / 200
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 提交区 -->
|
|
<div class="submit-section">
|
|
<button class="submit-btn" data-dom-id="btn-submit" id="btn-submit" onclick="submitReport()">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 2L11 13"></path>
|
|
<path d="M22 2l-7 20-4-9-9-4 20-7z"></path>
|
|
</svg>
|
|
提交举报
|
|
</button>
|
|
<div class="submit-tip">
|
|
我们会在 <strong>24 小时内</strong> 审核处理<br>
|
|
感谢你为营造健康社区环境贡献力量 ㆁωㆁ
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>// 主题切换
|
|
icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
|
|
}
|
|
}
|
|
|
|
// 返回
|
|
function goBack() {
|
|
window.history.back();
|
|
}
|
|
|
|
// 选择举报原因
|
|
function selectReason(el) {
|
|
document.querySelectorAll('.reason-item').forEach(function(item) {
|
|
item.classList.remove('selected');
|
|
});
|
|
el.classList.add('selected');
|
|
}
|
|
|
|
// 更新字数统计
|
|
function updateCounter() {
|
|
const val = document.getElementById('desc-textarea').value;
|
|
document.getElementById('desc-count').textContent = val.length;
|
|
}
|
|
|
|
// 提交举报
|
|
function submitReport() {
|
|
const selected = document.querySelector('.reason-item.selected');
|
|
if (!selected) {
|
|
alert('请选择举报原因');
|
|
return;
|
|
}
|
|
|
|
const btn = document.getElementById('btn-submit');
|
|
btn.disabled = true;
|
|
btn.innerHTML = '<svg class="retry-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="animation: spin 1s linear infinite;"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg> 提交中...';
|
|
|
|
setTimeout(function() {
|
|
alert('举报提交成功,我们会尽快审核处理');
|
|
window.history.back();
|
|
}, 1500);
|
|
}</script>
|
|
</body>
|
|
</html>
|
|
|