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.
 
 

635 lines
21 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; }
.nav-btn.text-btn {
width: auto;
font-size: 13px;
font-weight: 500;
}
/* 青色头部 */
.wallet-header {
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 50%, #7EDDD9 100%);
padding-bottom: 30px;
flex-shrink: 0;
position: relative;
overflow: hidden;
}
.wallet-header::before {
content: '';
position: absolute;
top: -60px;
right: -40px;
width: 180px;
height: 180px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
.wallet-header::after {
content: '';
position: absolute;
bottom: -80px;
left: -30px;
width: 160px;
height: 160px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
}
.balance-card {
position: relative;
z-index: 1;
text-align: center;
padding: 12px 24px 0;
}
.balance-label {
font-size: 13px;
color: rgba(255,255,255,0.8);
margin-bottom: 6px;
}
.balance-value {
font-size: 40px;
font-weight: 800;
color: #fff;
line-height: 1;
margin-bottom: 4px;
}
.balance-unit {
font-size: 14px;
color: rgba(255,255,255,0.7);
font-weight: 500;
}
.balance-sub {
font-size: 12px;
color: rgba(255,255,255,0.7);
margin-top: 10px;
}
/* 快捷操作 */
.quick-actions {
position: relative;
z-index: 2;
display: flex;
justify-content: center;
gap: 40px;
margin-top: 24px;
}
.quick-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
color: #fff;
}
.quick-icon {
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255,255,255,0.2);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
}
.quick-text {
font-size: 12px;
font-weight: 500;
}
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 20px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 充值档位 */
.recharge-section {
margin-top: -12px;
position: relative;
z-index: 3;
}
.section-card {
background: var(--youth-bg-card);
margin: 0 16px;
border-radius: 12px;
padding: 20px 16px 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.section-title {
font-size: 16px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 14px;
display: flex;
align-items: center;
justify-content: space-between;
}
.section-title .more {
font-size: 12px;
color: var(--youth-text-tertiary);
font-weight: 500;
}
.recharge-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.recharge-item {
background: var(--youth-bg-page);
border-radius: 12px;
padding: 14px 8px 12px;
text-align: center;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s ease;
position: relative;
}
.recharge-item.selected {
border-color: var(--youth-primary);
background: var(--youth-primary-bg);
}
.recharge-item .beans {
font-size: 20px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.recharge-item.selected .beans { color: var(--youth-primary); }
.recharge-item .bonus {
font-size: 10px;
color: var(--youth-warning);
font-weight: 600;
margin-bottom: 4px;
height: 14px;
}
.recharge-item .price {
font-size: 13px;
color: var(--youth-text-secondary);
font-weight: 600;
}
.recharge-item.selected .price { color: var(--youth-primary); }
.recharge-item .hot-tag {
position: absolute;
top: -1px;
right: -1px;
padding: 2px 8px;
background: linear-gradient(135deg, #FF9A8B, #FF6A88);
color: #fff;
font-size: 10px;
font-weight: 600;
border-radius: 0 12px 0 10px;
}
/* 支付方式 */
.pay-section {
margin-top: 16px;
}
.pay-option {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 0;
position: relative;
cursor: pointer;
}
.pay-option + .pay-option::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--youth-border-light);
}
.pay-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.pay-icon.wechat { background: #E8F8E8; color: #07C160; }
.pay-icon.alipay { background: #E6F3FF; color: #1677FF; }
.pay-icon.apple { background: #F0F0F0; color: #1F1F1F; }
.pay-name {
flex: 1;
font-size: 14px;
font-weight: 500;
color: var(--youth-text-primary);
}
.pay-check {
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;
}
.pay-option.selected .pay-check {
border-color: var(--youth-primary);
background: var(--youth-primary);
}
.pay-option.selected .pay-check::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: #fff;
}
/* 底部按钮 */
.bottom-btn {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 12px 16px;
padding-bottom: calc(12px + env(safe-area-inset-bottom));
background: var(--youth-bg-card);
border-top: 1px solid var(--youth-border-light);
}
.recharge-btn {
width: 100%;
height: 48px;
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
color: #fff;
border: none;
border-radius: 24px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 6px 16px rgba(38, 194, 187, 0.3);
font-family: inherit;
}
.recharge-btn:active { transform: scale(0.98); opacity: 0.9; }
/* 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="wallet-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 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="#fff" opacity="0.5"/><rect x="2" y="2" width="18" height="8" rx="1.5" fill="#fff"/><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="#fff" 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>
<button class="nav-btn text-btn" onclick="goBill()">明细</button>
</div>
<div class="balance-card">
<div class="balance-label">我的青豆</div>
<div class="balance-value">1,280</div>
<div class="balance-unit">青豆</div>
<div class="balance-sub">今日获得 +20 · 累计获得 3,580</div>
</div>
<div class="quick-actions">
<div class="quick-item" onclick="goRecharge()">
<div class="quick-icon">
<svg width="22" height="22" 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>
<span class="quick-text">充值</span>
</div>
<div class="quick-item" onclick="goBill()">
<div class="quick-icon">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
<line x1="9" y1="21" x2="9" y2="9"></line>
</svg>
</div>
<span class="quick-text">明细</span>
</div>
<div class="quick-item" onclick="goRules()">
<div class="quick-icon">
<svg width="22" height="22" 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>
<path d="M12 16v-4"></path>
<path d="M12 8h.01"></path>
</svg>
</div>
<span class="quick-text">规则</span>
</div>
</div>
</div>
<div class="scroll-area">
<!-- 充值档位 -->
<div class="recharge-section">
<div class="section-card">
<div class="section-title">
<span>充值青豆</span>
<span class="more">首充双倍 ></span>
</div>
<div class="recharge-grid">
<div class="recharge-item" onclick="selectRecharge(this)">
<div class="beans">60</div>
<div class="bonus">&nbsp;</div>
<div class="price">¥6.00</div>
</div>
<div class="recharge-item selected" onclick="selectRecharge(this)">
<div class="beans">120</div>
<div class="bonus">送 12 豆</div>
<div class="price">¥12.00</div>
</div>
<div class="recharge-item" onclick="selectRecharge(this)">
<div class="beans">300</div>
<div class="bonus">送 36 豆</div>
<div class="price">¥30.00</div>
</div>
<div class="recharge-item" onclick="selectRecharge(this)">
<div class="beans">680</div>
<div class="bonus">送 98 豆</div>
<div class="price">¥68.00</div>
<span class="hot-tag">热销</span>
</div>
<div class="recharge-item" onclick="selectRecharge(this)">
<div class="beans">1280</div>
<div class="bonus">送 218 豆</div>
<div class="price">¥128.00</div>
</div>
<div class="recharge-item" onclick="selectRecharge(this)">
<div class="beans">3280</div>
<div class="bonus">送 688 豆</div>
<div class="price">¥328.00</div>
<span class="hot-tag" style="background:linear-gradient(135deg,#FFD666,#FAAD14);">超值</span>
</div>
</div>
</div>
</div>
<!-- 支付方式 -->
<div class="pay-section">
<div class="section-card">
<div class="section-title">
<span>支付方式</span>
</div>
<div class="pay-option selected" onclick="selectPay(this)">
<div class="pay-icon wechat">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.045c.134 0 .24-.111.24-.247 0-.06-.024-.12-.04-.178l-.327-1.233a.49.49 0 0 1 .177-.554C23.146 18.507 24 16.82 24 14.9c0-3.21-2.931-5.837-6.656-6.048zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"/>
</svg>
</div>
<span class="pay-name">微信支付</span>
<div class="pay-check"></div>
</div>
<div class="pay-option" onclick="selectPay(this)">
<div class="pay-icon alipay">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.422 20.787c-2.324-.99-4.357-2.32-6.065-3.877a33.733 33.733 0 0 0 1.09-2.354h-3.57v-1.256h4.22v-.77h-4.22V9.863h4.817v-.795h-4.817V6.67H8.865v2.398H4.645v.795h4.22v2.667H4.985v.77h3.88v1.256H5.378v.795h4.487c-.09.313-.185.627-.284.94a20.56 20.56 0 0 1-4.837 2.08C2.17 20.03 0 17.296 0 13.954 0 8.74 4.477 4.5 10 4.5s10 4.24 10 9.454c0 2.716-1.217 5.16-3.142 6.862l.164-.03z"/>
</svg>
</div>
<span class="pay-name">支付宝</span>
<div class="pay-check"></div>
</div>
<div class="pay-option" onclick="selectPay(this)">
<div class="pay-icon apple">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/>
</svg>
</div>
<span class="pay-name">Apple Pay</span>
<div class="pay-check"></div>
</div>
</div>
</div>
<!-- 安全提示 -->
<div style="padding: 16px 32px; text-align: center;">
<p style="font-size: 11px; color: var(--youth-text-tertiary); line-height: 1.5;">
<span class="icon-svg icon-lock"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg></span> 支付由第三方平台安全加密处理<br>
青豆为虚拟商品,充值后不支持退款
</p>
</div>
</div>
<div class="bottom-btn">
<button class="recharge-btn">立即充值 ¥12.00</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(); }
function goRecharge() {}
function goBill() { alert('跳转账单明细'); }
function goRules() { alert('跳转积分规则'); }
function selectRecharge(el) {
document.querySelectorAll('.recharge-item').forEach(i => i.classList.remove('selected'));
el.classList.add('selected');
}
function selectPay(el) {
document.querySelectorAll('.pay-option').forEach(i => i.classList.remove('selected'));
el.classList.add('selected');
}</script>
</body>
</html>