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.
511 lines
15 KiB
511 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;
|
|
--income: #52C41A;
|
|
--expense: #FF4D4F;
|
|
|
|
/* =====================================================
|
|
* 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;
|
|
}
|
|
|
|
/* 青色头部 */
|
|
.bill-header {
|
|
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 50%, #7EDDD9 100%);
|
|
padding-bottom: 40px;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.bill-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -80px;
|
|
right: -60px;
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.bill-header::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -100px;
|
|
left: -40px;
|
|
width: 180px;
|
|
height: 180px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
height: 44px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.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; }
|
|
.nav-spacer { width: 36px; }
|
|
|
|
.bill-summary {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 16px 24px 0;
|
|
}
|
|
|
|
.summary-item { text-align: center; color: #fff; }
|
|
.summary-label { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
|
|
.summary-value { font-size: 22px; font-weight: 700; line-height: 1; }
|
|
.summary-unit { font-size: 11px; opacity: 0.7; margin-top: 2px; }
|
|
|
|
.summary-divider {
|
|
width: 1px;
|
|
background: rgba(255,255,255,0.2);
|
|
align-self: center;
|
|
height: 36px;
|
|
}
|
|
|
|
/* 筛选Tab */
|
|
.filter-tabs {
|
|
display: flex;
|
|
background: var(--youth-bg-card);
|
|
margin: -20px 16px 0;
|
|
border-radius: 12px;
|
|
padding: 6px;
|
|
position: relative;
|
|
z-index: 2;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.filter-tab {
|
|
flex: 1;
|
|
padding: 8px 0;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.filter-tab.active {
|
|
background: var(--youth-primary);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 滚动区域 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px 0 20px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar { display: none; }
|
|
|
|
/* 日期分组 */
|
|
.date-group {
|
|
padding: 12px 16px 6px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.date-group .income-total {
|
|
float: right;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* 账单条目 */
|
|
.bill-list { background: var(--youth-bg-card); }
|
|
|
|
.bill-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bill-item:active { background: var(--youth-bg-page); }
|
|
|
|
.bill-item + .bill-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 64px;
|
|
right: 16px;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.bill-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: #fff;
|
|
}
|
|
|
|
.bill-icon.c1 { background: linear-gradient(135deg, #54CAC5, #26C2BB); }
|
|
.bill-icon.c2 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
|
|
.bill-icon.c3 { background: linear-gradient(135deg, #A8B5FF, #6366F1); }
|
|
.bill-icon.c4 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
|
|
.bill-icon.c5 { background: linear-gradient(135deg, #34D399, #10B981); }
|
|
.bill-icon.c6 { background: linear-gradient(135deg, #F472B6, #EC4899); }
|
|
|
|
.bill-content { flex: 1; min-width: 0; }
|
|
|
|
.bill-title {
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.bill-desc {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.bill-amount {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.bill-amount.income { color: var(--income); }
|
|
.bill-amount.expense { color: var(--expense); }
|
|
|
|
.bill-time {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-top: 3px;
|
|
text-align: right;
|
|
}
|
|
|
|
|
|
/* 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="bill-header">
|
|
<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 class="nav-spacer"></div>
|
|
</div>
|
|
|
|
<div class="bill-summary">
|
|
<div class="summary-item">
|
|
<div class="summary-label">本月收入</div>
|
|
<div class="summary-value">+1,280</div>
|
|
<div class="summary-unit">青豆</div>
|
|
</div>
|
|
<div class="summary-divider"></div>
|
|
<div class="summary-item">
|
|
<div class="summary-label">本月支出</div>
|
|
<div class="summary-value">-560</div>
|
|
<div class="summary-unit">青豆</div>
|
|
</div>
|
|
<div class="summary-divider"></div>
|
|
<div class="summary-item">
|
|
<div class="summary-label">结余</div>
|
|
<div class="summary-value">1,280</div>
|
|
<div class="summary-unit">青豆</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 筛选Tab -->
|
|
<div class="filter-tabs">
|
|
<div class="filter-tab active" onclick="switchFilter(this, 'all')">全部</div>
|
|
<div class="filter-tab" onclick="switchFilter(this, 'income')">收入</div>
|
|
<div class="filter-tab" onclick="switchFilter(this, 'expense')">支出</div>
|
|
<div class="filter-tab" onclick="switchFilter(this, 'recharge')">充值</div>
|
|
</div>
|
|
|
|
<div class="scroll-area">
|
|
<!-- 今天 -->
|
|
<div class="date-group">
|
|
今天 8月21日
|
|
<span class="income-total">收入 +60 · 支出 -20</span>
|
|
</div>
|
|
<div class="bill-list">
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">每日签到奖励</div>
|
|
<div class="bill-desc">连续签到第 7 天</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount income">+60</div>
|
|
<div class="bill-time">09:15</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">送礼物 · 玫瑰花</div>
|
|
<div class="bill-desc">送给 阿杰学长</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount expense">-20</div>
|
|
<div class="bill-time">14:32</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 昨天 -->
|
|
<div class="date-group">
|
|
昨天 8月20日
|
|
<span class="income-total">收入 +120 · 支出 -80</span>
|
|
</div>
|
|
<div class="bill-list">
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">动态获赞奖励</div>
|
|
<div class="bill-desc">获得 50 个赞</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount income">+50</div>
|
|
<div class="bill-time">10:20</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">邀请好友奖励</div>
|
|
<div class="bill-desc">好友 小雨 完成注册</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount income">+70</div>
|
|
<div class="bill-time">16:45</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">活动报名费</div>
|
|
<div class="bill-desc">周末桌游局 · 早鸟票</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount expense">-80</div>
|
|
<div class="bill-time">19:30</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 8月18日 -->
|
|
<div class="date-group">
|
|
8月18日
|
|
<span class="income-total">收入 +500 · 支出 0</span>
|
|
</div>
|
|
<div class="bill-list">
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">青豆充值</div>
|
|
<div class="bill-desc">300青豆档位 · 赠送36豆</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount income">+336</div>
|
|
<div class="bill-time">11:08</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bill-item" onclick="goDetail()">
|
|
|
|
<div class="bill-content">
|
|
<div class="bill-title">完成任务奖励</div>
|
|
<div class="bill-desc">完善个人资料 · 新手任务</div>
|
|
</div>
|
|
<div>
|
|
<div class="bill-amount income">+164</div>
|
|
<div class="bill-time">20:15</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="text-align:center;padding:20px;color:var(--youth-text-tertiary);font-size:12px;">
|
|
— 没有更多了 —
|
|
</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() { alert('查看账单详情'); }
|
|
|
|
function switchFilter(el, type) {
|
|
document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
|
|
el.classList.add('active');
|
|
}</script>
|
|
</body>
|
|
</html>
|
|
|