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.
533 lines
15 KiB
533 lines
15 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>
|
|
:root {
|
|
--youth-primary: #26C2BB;
|
|
--youth-primary-light: #54CAC5;
|
|
--primary-bg: #E6F7F6;
|
|
--primary-border: #B3E8E4;
|
|
--bg-page: #F7F8FA;
|
|
--bg-card: #FFFFFF;
|
|
--text-title: #1F1F1F;
|
|
--text-body: #595959;
|
|
--text-muted: #8C8C8C;
|
|
--youth-border-light: #E8E8E8;
|
|
--youth-warning: #FAAD14;
|
|
--youth-success: #52C41A;
|
|
|
|
/* =====================================================
|
|
* Traework 设计系统 - 组件规范
|
|
* 圆角 / 间距 / 阴影 / 高度
|
|
* ===================================================== */
|
|
--radius-xs: 4px;
|
|
--radius-sm: 8px; /* 按钮、输入框 */
|
|
--radius-md: 12px; /* 卡片 */
|
|
--radius-lg: 16px; /* 标签、弹窗 */
|
|
--radius-xl: 20px;
|
|
--radius-full: 9999px;
|
|
|
|
/* 组件高度 */
|
|
--height-btn: 44px;
|
|
--height-input: 44px;
|
|
--height-nav-bottom: 64px;
|
|
|
|
/* 间距(4px 基础栅格) */
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--space-page-x: 16px;
|
|
--space-card: 16px;
|
|
|
|
/* 柔和弥散阴影 */
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
|
|
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
--shadow-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
|
|
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
|
|
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
|
|
/* 内阴影浮雕(输入框) */
|
|
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
|
|
|
|
/* 毛玻璃 */
|
|
--glass-bg: rgba(255, 255, 255, 0.72);
|
|
--glass-blur: blur(20px);
|
|
--glass-border: rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', sans-serif;
|
|
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: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
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: #fff;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.nav-title { font-size: 17px; font-weight: 700; color: #fff; }
|
|
|
|
/* 青色头部 */
|
|
.header-section {
|
|
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 100%);
|
|
padding-bottom: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-tabs {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 32px;
|
|
padding: 4px 16px 0;
|
|
}
|
|
|
|
.header-tab {
|
|
font-size: 14px;
|
|
color: rgba(255,255,255,0.6);
|
|
padding-bottom: 8px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.header-tab.active {
|
|
color: #fff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.header-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 20px;
|
|
height: 3px;
|
|
background: #fff;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* 积分概览 */
|
|
.points-overview {
|
|
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 100%);
|
|
padding: 8px 24px 20px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.points-label {
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,0.7);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.points-value {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
line-height: 1;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.points-sub {
|
|
font-size: 11px;
|
|
color: rgba(255,255,255,0.6);
|
|
}
|
|
|
|
/* 滚动内容 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar { display: none; }
|
|
|
|
/* 规则分组 */
|
|
.rule-section {
|
|
background: var(--youth-bg-card);
|
|
margin: 12px 16px 0;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.03);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rule-section-header {
|
|
padding: 14px 16px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.rule-section-header svg { color: var(--youth-primary); }
|
|
|
|
.rule-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.rule-item + .rule-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 16px;
|
|
right: 16px;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.rule-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: var(--youth-primary-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youth-primary);
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rule-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rule-name {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.rule-limit {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.rule-points {
|
|
text-align: right;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rule-points .num {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.rule-points .unit {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.rule-points .num.negative { color: #F5222D; }
|
|
|
|
/* 温馨提示 */
|
|
.tips-section {
|
|
padding: 16px 16px 0;
|
|
}
|
|
|
|
.tips-card {
|
|
background: var(--youth-primary-bg);
|
|
border-radius: 12px;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.tips-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-primary);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tips-content {
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.tips-content p {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
|
|
/* 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="header-section">
|
|
<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="#fff"><rect x="0" y="7" width="3" height="4" rx="0.5"></rect><rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect><rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect></svg>
|
|
<svg width="25" height="12" viewBox="0 0 25 12"><rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#fff" opacity="0.5"></rect><rect x="2" y="2" width="18" height="8" rx="1.5" fill="#fff"></rect><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="#fff" opacity="0.5"></rect></svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="top-nav">
|
|
<button class="nav-btn" onclick="goBack()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
|
</button>
|
|
<div class="nav-title">我的积分</div>
|
|
<div style="width:36px;"></div>
|
|
</div>
|
|
|
|
<div class="header-tabs">
|
|
<div class="header-tab" onclick="goDetail()">积分明细</div>
|
|
<div class="header-tab active">积分规则</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="points-overview">
|
|
<div class="points-label">当前青豆</div>
|
|
<div class="points-value">1,280</div>
|
|
<div class="points-sub">可用于赠送礼物、兑换权益</div>
|
|
</div>
|
|
|
|
<div class="scroll-area">
|
|
<!-- 获取积分 -->
|
|
<div class="rule-section">
|
|
<div class="rule-section-header">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
|
|
获取积分
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">发布动态</div>
|
|
<div class="rule-limit">每日上限 5 次</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+10</div>
|
|
<div class="unit">青豆/条</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">每日签到</div>
|
|
<div class="rule-limit">连续签到奖励翻倍</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+5</div>
|
|
<div class="unit">青豆/天</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">发表评论</div>
|
|
<div class="rule-limit">每日上限 10 次</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+2</div>
|
|
<div class="unit">青豆/条</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">发起活动</div>
|
|
<div class="rule-limit">每日上限 3 次</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+20</div>
|
|
<div class="unit">青豆/场</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">点赞动态</div>
|
|
<div class="rule-limit">每日上限 20 次</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+1</div>
|
|
<div class="unit">青豆/次</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">邀请好友</div>
|
|
<div class="rule-limit">好友注册成功后发放</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num">+50</div>
|
|
<div class="unit">青豆/人</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 消费积分 -->
|
|
<div class="rule-section">
|
|
<div class="rule-section-header">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
</svg>
|
|
积分消费
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">赠送礼物</div>
|
|
<div class="rule-limit">动态内打赏创作者</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num negative">-9 ~ -520</div>
|
|
<div class="unit">青豆/个</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rule-item">
|
|
|
|
<div class="rule-info">
|
|
<div class="rule-name">活动报名</div>
|
|
<div class="rule-limit">部分付费活动</div>
|
|
</div>
|
|
<div class="rule-points">
|
|
<div class="num negative">按活动</div>
|
|
<div class="unit">扣除</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 温馨提示 -->
|
|
<div class="tips-section">
|
|
<div class="tips-card">
|
|
<div class="tips-title">
|
|
<svg width="14" height="14" 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>
|
|
<line x1="12" y1="16" x2="12" y2="12"></line>
|
|
<line x1="12" y1="8" x2="12.01" y2="8"></line>
|
|
</svg>
|
|
温馨提示
|
|
</div>
|
|
<div class="tips-content">
|
|
<p>1. 青豆为青核 APP 内虚拟积分,不可兑换现金</p>
|
|
<p>2. 青豆有效期为获得之日起 12 个月</p>
|
|
<p>3. 违规账号将被扣除积分并封禁账号</p>
|
|
<p>4. 青核保留对积分规则的最终解释权</p>
|
|
</div>
|
|
</div>
|
|
</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 goDetail() { window.history.back(); }</script>
|
|
</body>
|
|
</html>
|
|
|