This commit is contained in:
parent
34988874a0
commit
5877a1ee43
|
|
@ -0,0 +1,630 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案1:横向轮播卡片式</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 50%, #FECFEF 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left h1 {
|
||||||
|
font-size: 22px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-btn {
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-btn {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-carousel {
|
||||||
|
padding: 20px 0;
|
||||||
|
overflow-x: auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-container {
|
||||||
|
display: inline-flex;
|
||||||
|
gap: 15px;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-card {
|
||||||
|
min-width: 280px;
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 25px;
|
||||||
|
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-avatar {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border-radius: 30px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 30px;
|
||||||
|
margin-right: 15px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-dot {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
|
right: -2px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 9px;
|
||||||
|
background: #4CAF50;
|
||||||
|
border: 3px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info h3 {
|
||||||
|
font-size: 18px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-tags {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4CAF50;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
text-align: center;
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 12px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-number {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 10px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-card {
|
||||||
|
min-width: 200px;
|
||||||
|
background: rgba(255,255,255,0.7);
|
||||||
|
border: 3px dashed #FF9A9E;
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 40px 25px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-card:hover {
|
||||||
|
background: rgba(255,255,255,0.9);
|
||||||
|
transform: scale(1.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-icon {
|
||||||
|
font-size: 40px;
|
||||||
|
color: #FF9A9E;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-text {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #FF9A9E;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-card {
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-number {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border: none;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 15px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-text {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 0;
|
||||||
|
border-bottom: 1px solid #F0F0F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-time {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-type {
|
||||||
|
background: #E3F2FD;
|
||||||
|
color: #2196F3;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-section {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
margin: 0 20px 80px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-message {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-btn {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 8px 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(255,154,158,0.4);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-left">
|
||||||
|
<h1>🏠 宠物之家</h1>
|
||||||
|
<p>4只毛孩子的温馨日常</p>
|
||||||
|
</div>
|
||||||
|
<div class="header-actions">
|
||||||
|
<button class="header-btn family-btn">👨👩👧👦</button>
|
||||||
|
<button class="header-btn add-btn">➕</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pets-carousel">
|
||||||
|
<div class="pets-container">
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小橘</h3>
|
||||||
|
<p>橘猫 · 2岁 · 陪伴365天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">活泼</span>
|
||||||
|
<span class="tag">粘人</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">4.5kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">89</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小白</h3>
|
||||||
|
<p>金毛 · 3岁 · 陪伴1095天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">温顺</span>
|
||||||
|
<span class="tag">忠诚</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">25kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">67</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小灰</h3>
|
||||||
|
<p>垂耳兔 · 1岁 · 陪伴180天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">安静</span>
|
||||||
|
<span class="tag">可爱</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">1.2kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">34</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="add-pet-card">
|
||||||
|
<span class="add-icon">➕</span>
|
||||||
|
<div class="add-text">添加新宠物</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary-section">
|
||||||
|
<div class="summary-title">📊 家庭概览</div>
|
||||||
|
<div class="summary-grid">
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">190</div>
|
||||||
|
<div class="summary-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">¥2,340</div>
|
||||||
|
<div class="summary-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">5</div>
|
||||||
|
<div class="summary-label">待办提醒</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">3</div>
|
||||||
|
<div class="summary-label">家庭成员</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick-actions">
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📝</span>
|
||||||
|
<span class="quick-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">💰</span>
|
||||||
|
<span class="quick-text">记账</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📸</span>
|
||||||
|
<span class="quick-text">拍照</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">🏥</span>
|
||||||
|
<span class="quick-text">领养</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="activities-section">
|
||||||
|
<div class="activities-title">⏰ 最近活动</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐱</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小橘完成了今天的早餐</div>
|
||||||
|
<div class="activity-time">2小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐶</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小白外出散步30分钟</div>
|
||||||
|
<div class="activity-time">3小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">运动</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐰</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小灰吃了新鲜胡萝卜</div>
|
||||||
|
<div class="activity-time">5小时前 · 随手记</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ai-section">
|
||||||
|
<div class="ai-title">🤖 AI助手</div>
|
||||||
|
<div class="ai-message">
|
||||||
|
根据记录分析,小橘今天的活动量比平时少,建议增加一些互动游戏时间。
|
||||||
|
</div>
|
||||||
|
<div class="ai-actions">
|
||||||
|
<button class="ai-btn">查看详情</button>
|
||||||
|
<button class="ai-btn">开始聊天</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-add">📝</button>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,756 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案4:轮播大卡片式</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info h1 {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-container {
|
||||||
|
position: relative;
|
||||||
|
height: 400px;
|
||||||
|
margin: 20px 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-track {
|
||||||
|
display: flex;
|
||||||
|
transition: transform 0.5s ease;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-slide {
|
||||||
|
min-width: 100%;
|
||||||
|
padding: 0 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-card {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 320px;
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 30px;
|
||||||
|
padding: 30px;
|
||||||
|
text-align: center;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
box-shadow: 0 20px 60px rgba(0,0,0,0.2);
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 6px;
|
||||||
|
background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-avatar {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
border-radius: 50px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 50px;
|
||||||
|
margin: 0 auto 20px;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-status-indicator {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -5px;
|
||||||
|
right: -5px;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border-radius: 15px;
|
||||||
|
background: #4CAF50;
|
||||||
|
border: 4px solid white;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-name {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-details {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-tags {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4CAF50;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-stat {
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 15px 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-stat-number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-stat-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-large-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-action-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 16px;
|
||||||
|
border-radius: 15px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.large-action-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-indicators {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicator {
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: rgba(255,255,255,0.3);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicator.active {
|
||||||
|
background: rgba(255,255,255,0.8);
|
||||||
|
transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-nav {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-nav:hover {
|
||||||
|
background: rgba(255,255,255,0.3);
|
||||||
|
transform: translateY(-50%) scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-prev {
|
||||||
|
left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-next {
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-panel {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-overview {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-functions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-function {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-function:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.function-icon {
|
||||||
|
font-size: 18px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.function-text {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent-activities {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-more {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
color: #667eea;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-pet {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-details {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-meta {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-badge {
|
||||||
|
background: #E3F2FD;
|
||||||
|
color: #2196F3;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-assistant {
|
||||||
|
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
|
||||||
|
margin: 0 20px 80px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-content {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-btn {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(102,126,234,0.4);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-info">
|
||||||
|
<h1>🎡 宠物轮播</h1>
|
||||||
|
<p>沉浸式宠物展示体验</p>
|
||||||
|
</div>
|
||||||
|
<div class="header-actions">
|
||||||
|
<button class="header-btn">👨👩👧👦</button>
|
||||||
|
<button class="header-btn">➕</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="carousel-container">
|
||||||
|
<div class="carousel-track" id="carouselTrack">
|
||||||
|
<div class="pet-slide">
|
||||||
|
<div class="pet-large-card">
|
||||||
|
<div class="pet-large-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="pet-status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-name">小橘</div>
|
||||||
|
<div class="pet-large-details">橘猫 · 2岁 · 陪伴365天</div>
|
||||||
|
<div class="pet-large-tags">
|
||||||
|
<span class="large-tag">活泼</span>
|
||||||
|
<span class="large-tag">粘人</span>
|
||||||
|
<span class="large-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-stats">
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">4.5kg</span>
|
||||||
|
<span class="large-stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">89</span>
|
||||||
|
<span class="large-stat-label">记录数</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">¥580</span>
|
||||||
|
<span class="large-stat-label">本月消费</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-actions">
|
||||||
|
<button class="large-action-btn">📝 记录</button>
|
||||||
|
<button class="large-action-btn">💬 聊天</button>
|
||||||
|
<button class="large-action-btn">📊 详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-slide">
|
||||||
|
<div class="pet-large-card">
|
||||||
|
<div class="pet-large-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="pet-status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-name">小白</div>
|
||||||
|
<div class="pet-large-details">金毛 · 3岁 · 陪伴1095天</div>
|
||||||
|
<div class="pet-large-tags">
|
||||||
|
<span class="large-tag">温顺</span>
|
||||||
|
<span class="large-tag">忠诚</span>
|
||||||
|
<span class="large-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-stats">
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">25kg</span>
|
||||||
|
<span class="large-stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">67</span>
|
||||||
|
<span class="large-stat-label">记录数</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">¥890</span>
|
||||||
|
<span class="large-stat-label">本月消费</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-actions">
|
||||||
|
<button class="large-action-btn">📝 记录</button>
|
||||||
|
<button class="large-action-btn">💬 聊天</button>
|
||||||
|
<button class="large-action-btn">📊 详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-slide">
|
||||||
|
<div class="pet-large-card">
|
||||||
|
<div class="pet-large-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="pet-status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-name">小灰</div>
|
||||||
|
<div class="pet-large-details">垂耳兔 · 1岁 · 陪伴180天</div>
|
||||||
|
<div class="pet-large-tags">
|
||||||
|
<span class="large-tag">安静</span>
|
||||||
|
<span class="large-tag">可爱</span>
|
||||||
|
<span class="large-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-stats">
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">1.2kg</span>
|
||||||
|
<span class="large-stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">34</span>
|
||||||
|
<span class="large-stat-label">记录数</span>
|
||||||
|
</div>
|
||||||
|
<div class="large-stat">
|
||||||
|
<span class="large-stat-number">¥120</span>
|
||||||
|
<span class="large-stat-label">本月消费</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-large-actions">
|
||||||
|
<button class="large-action-btn">📝 记录</button>
|
||||||
|
<button class="large-action-btn">💬 聊天</button>
|
||||||
|
<button class="large-action-btn">📊 详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="carousel-nav nav-prev" onclick="prevSlide()">‹</button>
|
||||||
|
<button class="carousel-nav nav-next" onclick="nextSlide()">›</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="carousel-indicators">
|
||||||
|
<div class="indicator active" onclick="goToSlide(0)"></div>
|
||||||
|
<div class="indicator" onclick="goToSlide(1)"></div>
|
||||||
|
<div class="indicator" onclick="goToSlide(2)"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary-panel">
|
||||||
|
<div class="summary-title">📊 家庭概览</div>
|
||||||
|
<div class="summary-overview">
|
||||||
|
<div class="overview-card">
|
||||||
|
<div class="overview-number">190</div>
|
||||||
|
<div class="overview-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="overview-card">
|
||||||
|
<div class="overview-number">¥1,590</div>
|
||||||
|
<div class="overview-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
<div class="overview-card">
|
||||||
|
<div class="overview-number">3</div>
|
||||||
|
<div class="overview-label">家庭成员</div>
|
||||||
|
</div>
|
||||||
|
<div class="overview-card">
|
||||||
|
<div class="overview-number">5</div>
|
||||||
|
<div class="overview-label">待办提醒</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="quick-functions">
|
||||||
|
<button class="quick-function">
|
||||||
|
<span class="function-icon">📝</span>
|
||||||
|
<span class="function-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-function">
|
||||||
|
<span class="function-icon">💰</span>
|
||||||
|
<span class="function-text">记账</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-function">
|
||||||
|
<span class="function-icon">📸</span>
|
||||||
|
<span class="function-text">拍照</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-function">
|
||||||
|
<span class="function-icon">🏥</span>
|
||||||
|
<span class="function-text">领养</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="recent-activities">
|
||||||
|
<div class="activities-header">
|
||||||
|
<div class="activities-title">⏰ 最近活动</div>
|
||||||
|
<button class="view-more">查看更多</button>
|
||||||
|
</div>
|
||||||
|
<div class="activity-list">
|
||||||
|
<div class="activity-row">
|
||||||
|
<div class="activity-pet">🐱</div>
|
||||||
|
<div class="activity-details">
|
||||||
|
<div class="activity-text">小橘完成了今天的早餐</div>
|
||||||
|
<div class="activity-meta">2小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-badge">饮食</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-row">
|
||||||
|
<div class="activity-pet">🐶</div>
|
||||||
|
<div class="activity-details">
|
||||||
|
<div class="activity-text">小白外出散步30分钟</div>
|
||||||
|
<div class="activity-meta">3小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-badge">运动</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-row">
|
||||||
|
<div class="activity-pet">🐰</div>
|
||||||
|
<div class="activity-details">
|
||||||
|
<div class="activity-text">小灰吃了新鲜胡萝卜</div>
|
||||||
|
<div class="activity-meta">5小时前 · 随手记</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-badge">饮食</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ai-assistant">
|
||||||
|
<div class="ai-header">
|
||||||
|
<span>🤖</span>
|
||||||
|
<div class="ai-title">AI助手建议</div>
|
||||||
|
</div>
|
||||||
|
<div class="ai-content">
|
||||||
|
根据分析,小橘今天的活动量比平时少15%,建议增加互动游戏时间。小白的散步规律很好,继续保持!
|
||||||
|
</div>
|
||||||
|
<div class="ai-actions">
|
||||||
|
<button class="ai-btn">详细分析</button>
|
||||||
|
<button class="ai-btn">开始聊天</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-add">📝</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let currentSlide = 0;
|
||||||
|
const totalSlides = 3;
|
||||||
|
|
||||||
|
function updateCarousel() {
|
||||||
|
const track = document.getElementById('carouselTrack');
|
||||||
|
track.style.transform = `translateX(-${currentSlide * 100}%)`;
|
||||||
|
|
||||||
|
// 更新指示器
|
||||||
|
document.querySelectorAll('.indicator').forEach((indicator, index) => {
|
||||||
|
indicator.classList.toggle('active', index === currentSlide);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function nextSlide() {
|
||||||
|
currentSlide = (currentSlide + 1) % totalSlides;
|
||||||
|
updateCarousel();
|
||||||
|
}
|
||||||
|
|
||||||
|
function prevSlide() {
|
||||||
|
currentSlide = (currentSlide - 1 + totalSlides) % totalSlides;
|
||||||
|
updateCarousel();
|
||||||
|
}
|
||||||
|
|
||||||
|
function goToSlide(index) {
|
||||||
|
currentSlide = index;
|
||||||
|
updateCarousel();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 自动轮播
|
||||||
|
setInterval(nextSlide, 5000);
|
||||||
|
|
||||||
|
// 触摸滑动支持
|
||||||
|
let startX = 0;
|
||||||
|
let endX = 0;
|
||||||
|
|
||||||
|
document.addEventListener('touchstart', (e) => {
|
||||||
|
startX = e.touches[0].clientX;
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('touchend', (e) => {
|
||||||
|
endX = e.changedTouches[0].clientX;
|
||||||
|
handleSwipe();
|
||||||
|
});
|
||||||
|
|
||||||
|
function handleSwipe() {
|
||||||
|
const threshold = 50;
|
||||||
|
const diff = startX - endX;
|
||||||
|
|
||||||
|
if (Math.abs(diff) > threshold) {
|
||||||
|
if (diff > 0) {
|
||||||
|
nextSlide();
|
||||||
|
} else {
|
||||||
|
prevSlide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,852 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案5:标签切换式</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info h1 {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs-container {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 15px;
|
||||||
|
border-radius: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs-header {
|
||||||
|
display: flex;
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 20px 20px 0 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 15px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-btn.active {
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-avatar {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0 auto 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-name {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-tab {
|
||||||
|
width: 60px;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 15px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
color: #667eea;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-tab:hover {
|
||||||
|
background: rgba(102,126,234,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
padding: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-detail-card {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-avatar {
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
border-radius: 40px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 40px;
|
||||||
|
margin: 0 auto 15px;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-status-ring {
|
||||||
|
position: absolute;
|
||||||
|
top: -4px;
|
||||||
|
left: -4px;
|
||||||
|
right: -4px;
|
||||||
|
bottom: -4px;
|
||||||
|
border: 3px solid #4CAF50;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-color: transparent;
|
||||||
|
animation: spin 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-name {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-details {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-tags {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4CAF50;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-stats-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card {
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 15px 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-value {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-actions-panel {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-card:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-text {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-timeline {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 10px 0;
|
||||||
|
border-bottom: 1px solid #E9ECEF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #667eea;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-text {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-time {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-type {
|
||||||
|
background: #E3F2FD;
|
||||||
|
color: #2196F3;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-health-panel {
|
||||||
|
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
|
||||||
|
color: white;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-indicators {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-indicator {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-value {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-label {
|
||||||
|
font-size: 11px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 15px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-icon {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-text {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(102,126,234,0.4);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content-panel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content-panel.active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-info">
|
||||||
|
<h1>🏷️ 宠物标签</h1>
|
||||||
|
<p>快速切换宠物详情</p>
|
||||||
|
</div>
|
||||||
|
<div class="header-actions">
|
||||||
|
<button class="header-btn">👨👩👧👦</button>
|
||||||
|
<button class="header-btn">⚙️</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tabs-container">
|
||||||
|
<div class="tabs-header">
|
||||||
|
<button class="tab-btn active" onclick="switchTab(0)">
|
||||||
|
<div class="tab-avatar">🐱</div>
|
||||||
|
<div class="tab-name">小橘</div>
|
||||||
|
</button>
|
||||||
|
<button class="tab-btn" onclick="switchTab(1)">
|
||||||
|
<div class="tab-avatar">🐶</div>
|
||||||
|
<div class="tab-name">小白</div>
|
||||||
|
</button>
|
||||||
|
<button class="tab-btn" onclick="switchTab(2)">
|
||||||
|
<div class="tab-avatar">🐰</div>
|
||||||
|
<div class="tab-name">小灰</div>
|
||||||
|
</button>
|
||||||
|
<button class="add-tab">
|
||||||
|
<div style="font-size: 20px; margin-bottom: 4px;">➕</div>
|
||||||
|
<div style="font-size: 10px;">添加</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<!-- 小橘的内容 -->
|
||||||
|
<div class="tab-content-panel active" id="tab-0">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小橘</div>
|
||||||
|
<div class="pet-main-details">橘猫 · 2岁 · 陪伴365天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">活泼</span>
|
||||||
|
<span class="main-tag">粘人</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-stats-grid">
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">⚖️</span>
|
||||||
|
<div class="stat-value">4.5kg</div>
|
||||||
|
<div class="stat-label">当前体重</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">📝</span>
|
||||||
|
<div class="stat-value">89</div>
|
||||||
|
<div class="stat-label">记录数量</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">💰</span>
|
||||||
|
<div class="stat-value">¥580</div>
|
||||||
|
<div class="stat-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-actions-panel">
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📝</span>
|
||||||
|
<div class="action-text">添加记录</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">💬</span>
|
||||||
|
<div class="action-text">AI聊天</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📊</span>
|
||||||
|
<div class="action-text">数据分析</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📸</span>
|
||||||
|
<div class="action-text">拍照记录</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-timeline">
|
||||||
|
<div class="timeline-title">⏰ 最近活动</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">完成了今天的早餐</div>
|
||||||
|
<div class="timeline-time">2小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">和主人玩了15分钟</div>
|
||||||
|
<div class="timeline-time">4小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">互动</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">午睡了2小时</div>
|
||||||
|
<div class="timeline-time">6小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">休息</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-health-panel">
|
||||||
|
<div class="health-title">❤️ 健康状态</div>
|
||||||
|
<div class="health-indicators">
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">优秀</div>
|
||||||
|
<div class="health-label">整体健康</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">正常</div>
|
||||||
|
<div class="health-label">活动水平</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">良好</div>
|
||||||
|
<div class="health-label">食欲状态</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">稳定</div>
|
||||||
|
<div class="health-label">情绪状态</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 小白的内容 -->
|
||||||
|
<div class="tab-content-panel" id="tab-1">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小白</div>
|
||||||
|
<div class="pet-main-details">金毛 · 3岁 · 陪伴1095天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">温顺</span>
|
||||||
|
<span class="main-tag">忠诚</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-stats-grid">
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">⚖️</span>
|
||||||
|
<div class="stat-value">25kg</div>
|
||||||
|
<div class="stat-label">当前体重</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">📝</span>
|
||||||
|
<div class="stat-value">67</div>
|
||||||
|
<div class="stat-label">记录数量</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">💰</span>
|
||||||
|
<div class="stat-value">¥890</div>
|
||||||
|
<div class="stat-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-actions-panel">
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📝</span>
|
||||||
|
<div class="action-text">添加记录</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">💬</span>
|
||||||
|
<div class="action-text">AI聊天</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📊</span>
|
||||||
|
<div class="action-text">数据分析</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📸</span>
|
||||||
|
<div class="action-text">拍照记录</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-timeline">
|
||||||
|
<div class="timeline-title">⏰ 最近活动</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">外出散步30分钟</div>
|
||||||
|
<div class="timeline-time">1小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">运动</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">完成了午餐</div>
|
||||||
|
<div class="timeline-time">3小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-health-panel">
|
||||||
|
<div class="health-title">❤️ 健康状态</div>
|
||||||
|
<div class="health-indicators">
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">优秀</div>
|
||||||
|
<div class="health-label">整体健康</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">活跃</div>
|
||||||
|
<div class="health-label">活动水平</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">良好</div>
|
||||||
|
<div class="health-label">食欲状态</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">愉快</div>
|
||||||
|
<div class="health-label">情绪状态</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 小灰的内容 -->
|
||||||
|
<div class="tab-content-panel" id="tab-2">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小灰</div>
|
||||||
|
<div class="pet-main-details">垂耳兔 · 1岁 · 陪伴180天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">安静</span>
|
||||||
|
<span class="main-tag">可爱</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-stats-grid">
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">⚖️</span>
|
||||||
|
<div class="stat-value">1.2kg</div>
|
||||||
|
<div class="stat-label">当前体重</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">📝</span>
|
||||||
|
<div class="stat-value">34</div>
|
||||||
|
<div class="stat-label">记录数量</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">💰</span>
|
||||||
|
<div class="stat-value">¥120</div>
|
||||||
|
<div class="stat-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-actions-panel">
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📝</span>
|
||||||
|
<div class="action-text">添加记录</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">💬</span>
|
||||||
|
<div class="action-text">AI聊天</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📊</span>
|
||||||
|
<div class="action-text">数据分析</div>
|
||||||
|
</button>
|
||||||
|
<button class="action-card">
|
||||||
|
<span class="action-icon">📸</span>
|
||||||
|
<div class="action-text">拍照记录</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-timeline">
|
||||||
|
<div class="timeline-title">⏰ 最近活动</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">吃了新鲜胡萝卜</div>
|
||||||
|
<div class="timeline-time">1小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-item">
|
||||||
|
<div class="timeline-dot"></div>
|
||||||
|
<div class="timeline-content">
|
||||||
|
<div class="timeline-text">在笼子里活动</div>
|
||||||
|
<div class="timeline-time">2小时前</div>
|
||||||
|
</div>
|
||||||
|
<div class="timeline-type">运动</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-health-panel">
|
||||||
|
<div class="health-title">❤️ 健康状态</div>
|
||||||
|
<div class="health-indicators">
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">良好</div>
|
||||||
|
<div class="health-label">整体健康</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">正常</div>
|
||||||
|
<div class="health-label">活动水平</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">良好</div>
|
||||||
|
<div class="health-label">食欲状态</div>
|
||||||
|
</div>
|
||||||
|
<div class="health-indicator">
|
||||||
|
<div class="health-value">平静</div>
|
||||||
|
<div class="health-label">情绪状态</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary-section">
|
||||||
|
<div class="summary-title">📊 家庭概览</div>
|
||||||
|
<div class="summary-stats">
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">190</div>
|
||||||
|
<div class="summary-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">¥1,590</div>
|
||||||
|
<div class="summary-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">3</div>
|
||||||
|
<div class="summary-label">家庭成员</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">5</div>
|
||||||
|
<div class="summary-label">待办提醒</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="quick-actions">
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📝</span>
|
||||||
|
<span class="quick-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">💰</span>
|
||||||
|
<span class="quick-text">记账</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📸</span>
|
||||||
|
<span class="quick-text">拍照</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">🏥</span>
|
||||||
|
<span class="quick-text">领养</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-add">📝</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function switchTab(index) {
|
||||||
|
// 移除所有活动状态
|
||||||
|
document.querySelectorAll('.tab-btn').forEach(btn => btn.classList.remove('active'));
|
||||||
|
document.querySelectorAll('.tab-content-panel').forEach(panel => panel.classList.remove('active'));
|
||||||
|
|
||||||
|
// 激活选中的标签和内容
|
||||||
|
document.querySelectorAll('.tab-btn')[index].classList.add('active');
|
||||||
|
document.getElementById(`tab-${index}`).classList.add('active');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,616 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案11:横向滑动卡片式</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 50%, #FECFEF 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left h1 {
|
||||||
|
font-size: 22px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.family-btn {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-scroll {
|
||||||
|
padding: 20px 0;
|
||||||
|
overflow-x: auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-container {
|
||||||
|
display: inline-flex;
|
||||||
|
gap: 15px;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-card {
|
||||||
|
min-width: 280px;
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 25px;
|
||||||
|
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
|
||||||
|
position: relative;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-avatar {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border-radius: 30px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 30px;
|
||||||
|
margin-right: 15px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-indicator {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
|
right: -2px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #4CAF50;
|
||||||
|
border: 3px solid white;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info h3 {
|
||||||
|
font-size: 18px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-tags {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4CAF50;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
text-align: center;
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 12px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-number {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 10px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-card {
|
||||||
|
min-width: 200px;
|
||||||
|
background: rgba(255,255,255,0.7);
|
||||||
|
border: 3px dashed #FF9A9E;
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 40px 25px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-card:hover {
|
||||||
|
background: rgba(255,255,255,0.9);
|
||||||
|
transform: scale(1.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-icon {
|
||||||
|
font-size: 40px;
|
||||||
|
color: #FF9A9E;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-text {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #FF9A9E;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-card {
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-number {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border: none;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 15px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-text {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent-activities {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 0;
|
||||||
|
border-bottom: 1px solid #F0F0F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-time {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-type {
|
||||||
|
background: #E3F2FD;
|
||||||
|
color: #2196F3;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #FF9A9E, #FECFEF);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(255,154,158,0.4);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-assistant {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
margin: 0 20px 80px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-message {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-btn {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 8px 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-left">
|
||||||
|
<h1>🏠 宠物之家</h1>
|
||||||
|
<p>4只毛孩子的温馨日常</p>
|
||||||
|
</div>
|
||||||
|
<button class="family-btn">👨👩👧👦</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pets-scroll">
|
||||||
|
<div class="pets-container">
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小橘</h3>
|
||||||
|
<p>橘猫 · 2岁 · 陪伴365天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">活泼</span>
|
||||||
|
<span class="tag">粘人</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">4.5kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">89</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小白</h3>
|
||||||
|
<p>金毛 · 3岁 · 陪伴1095天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">温顺</span>
|
||||||
|
<span class="tag">忠诚</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">25kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">67</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="status-indicator">💚</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小灰</h3>
|
||||||
|
<p>垂耳兔 · 1岁 · 陪伴180天</p>
|
||||||
|
<div class="pet-tags">
|
||||||
|
<span class="tag">安静</span>
|
||||||
|
<span class="tag">可爱</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">1.2kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">34</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">健康</span>
|
||||||
|
<span class="stat-label">状态</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="add-pet-card">
|
||||||
|
<span class="add-icon">➕</span>
|
||||||
|
<div class="add-text">添加新宠物</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary-section">
|
||||||
|
<div class="summary-title">📊 家庭概览</div>
|
||||||
|
<div class="summary-grid">
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">190</div>
|
||||||
|
<div class="summary-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">¥2,340</div>
|
||||||
|
<div class="summary-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">5</div>
|
||||||
|
<div class="summary-label">待办提醒</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">3</div>
|
||||||
|
<div class="summary-label">家庭成员</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick-actions">
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📝</span>
|
||||||
|
<span class="quick-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">💰</span>
|
||||||
|
<span class="quick-text">记账</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📸</span>
|
||||||
|
<span class="quick-text">拍照</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">🏥</span>
|
||||||
|
<span class="quick-text">领养</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="recent-activities">
|
||||||
|
<div class="activities-title">⏰ 最近活动</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐱</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小橘完成了今天的早餐</div>
|
||||||
|
<div class="activity-time">2小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐶</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小白外出散步30分钟</div>
|
||||||
|
<div class="activity-time">3小时前 · 日常记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">运动</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐰</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小灰吃了新鲜胡萝卜</div>
|
||||||
|
<div class="activity-time">5小时前 · 随手记</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-type">饮食</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ai-assistant">
|
||||||
|
<div class="ai-title">🤖 AI助手</div>
|
||||||
|
<div class="ai-message">
|
||||||
|
根据记录分析,小橘今天的活动量比平时少,建议增加一些互动游戏时间。
|
||||||
|
</div>
|
||||||
|
<div class="ai-actions">
|
||||||
|
<button class="ai-btn">查看详情</button>
|
||||||
|
<button class="ai-btn">开始聊天</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-add">📝</button>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,798 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>宠物标签切换式仪表盘</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info h1 {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs-container {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 15px;
|
||||||
|
border-radius: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs-header {
|
||||||
|
display: flex;
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 20px 20px 0 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 15px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-btn.active {
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-avatar {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0 auto 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-name {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-tab {
|
||||||
|
width: 60px;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 15px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
color: #667eea;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-tab:hover {
|
||||||
|
background: rgba(102,126,234,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
padding: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-detail-card {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-avatar {
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
border-radius: 40px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 40px;
|
||||||
|
margin: 0 auto 15px;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-status-ring {
|
||||||
|
position: absolute;
|
||||||
|
top: -4px;
|
||||||
|
left: -4px;
|
||||||
|
right: -4px;
|
||||||
|
bottom: -4px;
|
||||||
|
border: 3px solid #4CAF50;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-color: transparent;
|
||||||
|
animation: spin 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-name {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-details {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-main-tags {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4CAF50;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-metrics {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-card {
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 15px 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-value {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-label {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-trend {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #4CAF50;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-section {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-icon {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-text {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-bar {
|
||||||
|
width: 80px;
|
||||||
|
height: 6px;
|
||||||
|
background: #E9ECEF;
|
||||||
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-fill {
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, #667eea, #764ba2);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alerts-section {
|
||||||
|
background: #FFF3E0;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
border-left: 4px solid #FF9800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alerts-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 8px 0;
|
||||||
|
border-bottom: 1px solid #FFE0B2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-icon {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #FF9800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-text {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-time {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content-panel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content-panel.active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 15px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-icon {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-text {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(102,126,234,0.4);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-add:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-info">
|
||||||
|
<h1>🏷️ 宠物仪表盘</h1>
|
||||||
|
<p>标签切换式数据管理</p>
|
||||||
|
</div>
|
||||||
|
<div class="header-actions">
|
||||||
|
<button class="header-btn">👨👩👧👦</button>
|
||||||
|
<button class="header-btn">⚙️</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tabs-container">
|
||||||
|
<div class="tabs-header">
|
||||||
|
<button class="tab-btn active" onclick="switchTab(0)">
|
||||||
|
<div class="tab-avatar">🐱</div>
|
||||||
|
<div class="tab-name">小橘</div>
|
||||||
|
</button>
|
||||||
|
<button class="tab-btn" onclick="switchTab(1)">
|
||||||
|
<div class="tab-avatar">🐶</div>
|
||||||
|
<div class="tab-name">小白</div>
|
||||||
|
</button>
|
||||||
|
<button class="tab-btn" onclick="switchTab(2)">
|
||||||
|
<div class="tab-avatar">🐰</div>
|
||||||
|
<div class="tab-name">小灰</div>
|
||||||
|
</button>
|
||||||
|
<button class="add-tab">
|
||||||
|
<div style="font-size: 20px; margin-bottom: 4px;">➕</div>
|
||||||
|
<div style="font-size: 10px;">添加</div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<!-- 小橘的仪表盘 -->
|
||||||
|
<div class="tab-content-panel active" id="tab-0">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小橘</div>
|
||||||
|
<div class="pet-main-details">橘猫 · 2岁 · 陪伴365天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">活泼</span>
|
||||||
|
<span class="main-tag">粘人</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dashboard-metrics">
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">⚖️</span>
|
||||||
|
<div class="metric-value">4.5kg</div>
|
||||||
|
<div class="metric-label">当前体重</div>
|
||||||
|
<div class="metric-trend">↗ +0.2kg</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">📝</span>
|
||||||
|
<div class="metric-value">89</div>
|
||||||
|
<div class="metric-label">记录数量</div>
|
||||||
|
<div class="metric-trend">↗ +12</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">💰</span>
|
||||||
|
<div class="metric-value">¥580</div>
|
||||||
|
<div class="metric-label">本月消费</div>
|
||||||
|
<div class="metric-trend">↘ -¥50</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="progress-section">
|
||||||
|
<div class="progress-title">📊 健康指标</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">❤️</span>
|
||||||
|
<span class="progress-text">整体健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 95%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🏃</span>
|
||||||
|
<span class="progress-text">活动水平</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 75%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🍽️</span>
|
||||||
|
<span class="progress-text">食欲状态</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 90%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">😊</span>
|
||||||
|
<span class="progress-text">快乐指数</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 88%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="alerts-section">
|
||||||
|
<div class="alerts-title">🔔 重要提醒</div>
|
||||||
|
<div class="alert-item">
|
||||||
|
<span class="alert-icon">💉</span>
|
||||||
|
<span class="alert-text">疫苗接种提醒</span>
|
||||||
|
<span class="alert-time">3天后</span>
|
||||||
|
</div>
|
||||||
|
<div class="alert-item">
|
||||||
|
<span class="alert-icon">🏥</span>
|
||||||
|
<span class="alert-text">定期体检</span>
|
||||||
|
<span class="alert-time">1周后</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 小白的仪表盘 -->
|
||||||
|
<div class="tab-content-panel" id="tab-1">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小白</div>
|
||||||
|
<div class="pet-main-details">金毛 · 3岁 · 陪伴1095天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">温顺</span>
|
||||||
|
<span class="main-tag">忠诚</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dashboard-metrics">
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">⚖️</span>
|
||||||
|
<div class="metric-value">25kg</div>
|
||||||
|
<div class="metric-label">当前体重</div>
|
||||||
|
<div class="metric-trend">→ 稳定</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">📝</span>
|
||||||
|
<div class="metric-value">67</div>
|
||||||
|
<div class="metric-label">记录数量</div>
|
||||||
|
<div class="metric-trend">↗ +8</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">💰</span>
|
||||||
|
<div class="metric-value">¥890</div>
|
||||||
|
<div class="metric-label">本月消费</div>
|
||||||
|
<div class="metric-trend">↗ +¥120</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="progress-section">
|
||||||
|
<div class="progress-title">📊 健康指标</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">❤️</span>
|
||||||
|
<span class="progress-text">整体健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 92%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🏃</span>
|
||||||
|
<span class="progress-text">活动水平</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 95%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🍽️</span>
|
||||||
|
<span class="progress-text">食欲状态</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 85%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">😊</span>
|
||||||
|
<span class="progress-text">快乐指数</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 96%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="alerts-section">
|
||||||
|
<div class="alerts-title">🔔 重要提醒</div>
|
||||||
|
<div class="alert-item">
|
||||||
|
<span class="alert-icon">🦷</span>
|
||||||
|
<span class="alert-text">牙齿清洁</span>
|
||||||
|
<span class="alert-time">明天</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 小灰的仪表盘 -->
|
||||||
|
<div class="tab-content-panel" id="tab-2">
|
||||||
|
<div class="pet-detail-card">
|
||||||
|
<div class="pet-main-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="pet-status-ring"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-main-name">小灰</div>
|
||||||
|
<div class="pet-main-details">垂耳兔 · 1岁 · 陪伴180天</div>
|
||||||
|
<div class="pet-main-tags">
|
||||||
|
<span class="main-tag">安静</span>
|
||||||
|
<span class="main-tag">可爱</span>
|
||||||
|
<span class="main-tag">健康</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dashboard-metrics">
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">⚖️</span>
|
||||||
|
<div class="metric-value">1.2kg</div>
|
||||||
|
<div class="metric-label">当前体重</div>
|
||||||
|
<div class="metric-trend">↗ +0.1kg</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">📝</span>
|
||||||
|
<div class="metric-value">34</div>
|
||||||
|
<div class="metric-label">记录数量</div>
|
||||||
|
<div class="metric-trend">↗ +5</div>
|
||||||
|
</div>
|
||||||
|
<div class="metric-card">
|
||||||
|
<span class="metric-icon">💰</span>
|
||||||
|
<div class="metric-value">¥120</div>
|
||||||
|
<div class="metric-label">本月消费</div>
|
||||||
|
<div class="metric-trend">→ 稳定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="progress-section">
|
||||||
|
<div class="progress-title">📊 健康指标</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">❤️</span>
|
||||||
|
<span class="progress-text">整体健康</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 90%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🏃</span>
|
||||||
|
<span class="progress-text">活动水平</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 70%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">🍽️</span>
|
||||||
|
<span class="progress-text">食欲状态</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 88%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-info">
|
||||||
|
<span class="progress-icon">😊</span>
|
||||||
|
<span class="progress-text">快乐指数</span>
|
||||||
|
</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-fill" style="width: 85%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="alerts-section">
|
||||||
|
<div class="alerts-title">🔔 重要提醒</div>
|
||||||
|
<div class="alert-item">
|
||||||
|
<span class="alert-icon">🥕</span>
|
||||||
|
<span class="alert-text">补充新鲜蔬菜</span>
|
||||||
|
<span class="alert-time">今天</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary-section">
|
||||||
|
<div class="summary-title">📊 家庭概览</div>
|
||||||
|
<div class="summary-stats">
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">190</div>
|
||||||
|
<div class="summary-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">¥1,590</div>
|
||||||
|
<div class="summary-label">本月消费</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">3</div>
|
||||||
|
<div class="summary-label">家庭成员</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-card">
|
||||||
|
<div class="summary-number">5</div>
|
||||||
|
<div class="summary-label">待办提醒</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="quick-actions">
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📝</span>
|
||||||
|
<span class="quick-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">💰</span>
|
||||||
|
<span class="quick-text">记账</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">📸</span>
|
||||||
|
<span class="quick-text">拍照</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-icon">🏥</span>
|
||||||
|
<span class="quick-text">领养</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-add">📝</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function switchTab(index) {
|
||||||
|
// 移除所有活动状态
|
||||||
|
document.querySelectorAll('.tab-btn').forEach(btn => btn.classList.remove('active'));
|
||||||
|
document.querySelectorAll('.tab-content-panel').forEach(panel => panel.classList.remove('active'));
|
||||||
|
|
||||||
|
// 激活选中的标签和内容
|
||||||
|
document.querySelectorAll('.tab-btn')[index].classList.add('active');
|
||||||
|
document.getElementById(`tab-${index}`).classList.add('active');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,579 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案7:多宠物轮播式布局</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: rgba(255,255,255,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left p {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-btn {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
border: 2px dashed rgba(255,255,255,0.5);
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-btn:hover {
|
||||||
|
background: rgba(255,255,255,0.3);
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-carousel {
|
||||||
|
padding: 20px 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-slider {
|
||||||
|
display: flex;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-card {
|
||||||
|
min-width: 280px;
|
||||||
|
margin-right: 20px;
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 25px;
|
||||||
|
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 4px;
|
||||||
|
background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-avatar {
|
||||||
|
width: 70px;
|
||||||
|
height: 70px;
|
||||||
|
border-radius: 35px;
|
||||||
|
background: linear-gradient(135deg, #FFE0B2, #FFCC80);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 35px;
|
||||||
|
margin-right: 15px;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 4px 15px rgba(255,138,128,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-dot {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 2px;
|
||||||
|
right: 2px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 9px;
|
||||||
|
background: #4ECDC4;
|
||||||
|
border: 3px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info h3 {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-info p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mood {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mood-tag {
|
||||||
|
background: #E8F5E8;
|
||||||
|
color: #4ECDC4;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-stats {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
text-align: center;
|
||||||
|
background: #F8F9FA;
|
||||||
|
padding: 12px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-number {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
flex: 1;
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn.secondary {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-dots {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 0 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(255,255,255,0.3);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot.active {
|
||||||
|
background: white;
|
||||||
|
width: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-section {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-number {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent-activities {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 0;
|
||||||
|
border-bottom: 1px solid #F0F0F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-time {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-actions {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-btn {
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 28px;
|
||||||
|
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 20px rgba(255,107,107,0.4);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-btn:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-btn.secondary {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 24px;
|
||||||
|
background: rgba(255,255,255,0.9);
|
||||||
|
color: #667eea;
|
||||||
|
font-size: 16px;
|
||||||
|
box-shadow: 0 2px 12px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-stats {
|
||||||
|
background: rgba(255,255,255,0.1);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
margin: 0 20px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-stats-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-row:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-left {
|
||||||
|
font-size: 14px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-right {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-left">
|
||||||
|
<h1>🏠 我的宠物家庭</h1>
|
||||||
|
<p>3只毛孩子的温馨日常</p>
|
||||||
|
</div>
|
||||||
|
<div class="add-pet-btn">+</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pets-carousel">
|
||||||
|
<div class="pets-slider">
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐱
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小橘</h3>
|
||||||
|
<p>橘猫 · 2岁</p>
|
||||||
|
<div class="pet-mood">
|
||||||
|
<span class="mood-tag">开心</span>
|
||||||
|
<span class="mood-tag">活跃</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">4.5kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">89</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">365</span>
|
||||||
|
<span class="stat-label">天数</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn secondary">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐶
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小白</h3>
|
||||||
|
<p>金毛 · 3岁</p>
|
||||||
|
<div class="pet-mood">
|
||||||
|
<span class="mood-tag">温顺</span>
|
||||||
|
<span class="mood-tag">忠诚</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">25kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">67</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">1095</span>
|
||||||
|
<span class="stat-label">天数</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn secondary">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pet-card">
|
||||||
|
<div class="pet-header">
|
||||||
|
<div class="pet-avatar">
|
||||||
|
🐰
|
||||||
|
<div class="status-dot"></div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-info">
|
||||||
|
<h3>小灰</h3>
|
||||||
|
<p>垂耳兔 · 1岁</p>
|
||||||
|
<div class="pet-mood">
|
||||||
|
<span class="mood-tag">安静</span>
|
||||||
|
<span class="mood-tag">可爱</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-stats">
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">1.2kg</span>
|
||||||
|
<span class="stat-label">体重</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">34</span>
|
||||||
|
<span class="stat-label">记录</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item">
|
||||||
|
<span class="stat-number">180</span>
|
||||||
|
<span class="stat-label">天数</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-actions">
|
||||||
|
<button class="action-btn">记录</button>
|
||||||
|
<button class="action-btn">聊天</button>
|
||||||
|
<button class="action-btn secondary">详情</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="carousel-dots">
|
||||||
|
<div class="dot active"></div>
|
||||||
|
<div class="dot"></div>
|
||||||
|
<div class="dot"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick-stats">
|
||||||
|
<div class="quick-stats-title">📊 家庭概览</div>
|
||||||
|
<div class="stats-row">
|
||||||
|
<span class="stat-left">总记录数</span>
|
||||||
|
<span class="stat-right">190条</span>
|
||||||
|
</div>
|
||||||
|
<div class="stats-row">
|
||||||
|
<span class="stat-left">本月新增</span>
|
||||||
|
<span class="stat-right">23条</span>
|
||||||
|
</div>
|
||||||
|
<div class="stats-row">
|
||||||
|
<span class="stat-left">待办提醒</span>
|
||||||
|
<span class="stat-right">5项</span>
|
||||||
|
</div>
|
||||||
|
<div class="stats-row">
|
||||||
|
<span class="stat-left">健康状态</span>
|
||||||
|
<span class="stat-right">全部良好</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="recent-activities">
|
||||||
|
<div class="activities-title">⏰ 最近动态</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐱</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小橘完成了今天的早餐</div>
|
||||||
|
<div class="activity-time">2小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐶</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小白外出散步30分钟</div>
|
||||||
|
<div class="activity-time">3小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-avatar">🐰</div>
|
||||||
|
<div class="activity-content">
|
||||||
|
<div class="activity-text">小灰吃了新鲜的胡萝卜</div>
|
||||||
|
<div class="activity-time">5小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="floating-actions">
|
||||||
|
<button class="floating-btn secondary">📊</button>
|
||||||
|
<button class="floating-btn secondary">🔔</button>
|
||||||
|
<button class="floating-btn">📝</button>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,593 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>方案8:宠物仪表盘聚合式</title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
min-height: 100vh;
|
||||||
|
max-width: 375px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-card {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-subtitle {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-btn {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-pet-btn:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pets-overview {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini {
|
||||||
|
min-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
background: #F8F9FA;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 12px 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini.active {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
border-color: rgba(255,255,255,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini-avatar {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 0 auto 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini.active .pet-mini-avatar {
|
||||||
|
background: rgba(255,255,255,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini-name {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pet-mini-status {
|
||||||
|
font-size: 10px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-stats {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
color: white;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: -50%;
|
||||||
|
left: -50%;
|
||||||
|
width: 200%;
|
||||||
|
height: 200%;
|
||||||
|
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
|
||||||
|
transform: rotate(45deg);
|
||||||
|
animation: shimmer 3s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes shimmer {
|
||||||
|
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
|
||||||
|
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-icon {
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-number {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.today-focus {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-content {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-item {
|
||||||
|
background: #F8F9FA;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 15px;
|
||||||
|
text-align: center;
|
||||||
|
border-left: 4px solid #4ECDC4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-item.urgent {
|
||||||
|
border-left-color: #FF6B6B;
|
||||||
|
background: #FFF5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-item.completed {
|
||||||
|
border-left-color: #96CEB4;
|
||||||
|
background: #F0FFF4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-emoji {
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus-desc {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activities-stream {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stream-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-timeline {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-timeline::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 12px;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 2px;
|
||||||
|
background: linear-gradient(to bottom, #667eea, #764ba2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
background: #F8F9FA;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-item::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: -22px;
|
||||||
|
top: 12px;
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #667eea;
|
||||||
|
border: 2px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-pet {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: #FFE0B2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-time {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border: none;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 15px 8px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-btn-text {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-record {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
right: 20px;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border-radius: 30px;
|
||||||
|
background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 6px 24px rgba(255,107,107,0.4);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-record:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-alerts {
|
||||||
|
background: rgba(255,255,255,0.95);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 80px;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.alerts-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px;
|
||||||
|
background: #FFF3E0;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-left: 4px solid #FFB74D;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-item.urgent {
|
||||||
|
background: #FFEBEE;
|
||||||
|
border-left-color: #FF6B6B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-time {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header-card">
|
||||||
|
<div class="header-top">
|
||||||
|
<div>
|
||||||
|
<div class="header-title">🏠 宠物管家</div>
|
||||||
|
<div class="header-subtitle">3只毛孩子的智能管理</div>
|
||||||
|
</div>
|
||||||
|
<button class="add-pet-btn">+</button>
|
||||||
|
</div>
|
||||||
|
<div class="pets-overview">
|
||||||
|
<div class="pet-mini active">
|
||||||
|
<div class="pet-mini-avatar">🐱</div>
|
||||||
|
<div class="pet-mini-name">小橘</div>
|
||||||
|
<div class="pet-mini-status">健康</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-mini">
|
||||||
|
<div class="pet-mini-avatar">🐶</div>
|
||||||
|
<div class="pet-mini-name">小白</div>
|
||||||
|
<div class="pet-mini-status">活跃</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-mini">
|
||||||
|
<div class="pet-mini-avatar">🐰</div>
|
||||||
|
<div class="pet-mini-name">小灰</div>
|
||||||
|
<div class="pet-mini-status">安静</div>
|
||||||
|
</div>
|
||||||
|
<div class="pet-mini">
|
||||||
|
<div class="pet-mini-avatar">➕</div>
|
||||||
|
<div class="pet-mini-name">添加</div>
|
||||||
|
<div class="pet-mini-status">新宠物</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-stats">
|
||||||
|
<div class="stats-title">📊 家庭数据概览</div>
|
||||||
|
<div class="stats-grid">
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">📝</span>
|
||||||
|
<div class="stat-number">190</div>
|
||||||
|
<div class="stat-label">总记录数</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">📅</span>
|
||||||
|
<div class="stat-number">1640</div>
|
||||||
|
<div class="stat-label">陪伴天数</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">💚</span>
|
||||||
|
<div class="stat-number">100%</div>
|
||||||
|
<div class="stat-label">健康率</div>
|
||||||
|
</div>
|
||||||
|
<div class="stat-card">
|
||||||
|
<span class="stat-icon">🎯</span>
|
||||||
|
<div class="stat-number">23</div>
|
||||||
|
<div class="stat-label">本月记录</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="today-focus">
|
||||||
|
<div class="focus-title">🎯 今日重点</div>
|
||||||
|
<div class="focus-content">
|
||||||
|
<div class="focus-item completed">
|
||||||
|
<span class="focus-emoji">🍽️</span>
|
||||||
|
<div class="focus-text">早餐完成</div>
|
||||||
|
<div class="focus-desc">3/3只已用餐</div>
|
||||||
|
</div>
|
||||||
|
<div class="focus-item">
|
||||||
|
<span class="focus-emoji">🚶</span>
|
||||||
|
<div class="focus-text">遛弯计划</div>
|
||||||
|
<div class="focus-desc">小白待遛弯</div>
|
||||||
|
</div>
|
||||||
|
<div class="focus-item urgent">
|
||||||
|
<span class="focus-emoji">💊</span>
|
||||||
|
<div class="focus-text">用药提醒</div>
|
||||||
|
<div class="focus-desc">小橘驱虫药</div>
|
||||||
|
</div>
|
||||||
|
<div class="focus-item">
|
||||||
|
<span class="focus-emoji">🛁</span>
|
||||||
|
<div class="focus-text">洗澡安排</div>
|
||||||
|
<div class="focus-desc">本周计划</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick-actions">
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-btn-icon">📝</span>
|
||||||
|
<span class="quick-btn-text">快速记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-btn-icon">📸</span>
|
||||||
|
<span class="quick-btn-text">拍照记录</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-btn-icon">💬</span>
|
||||||
|
<span class="quick-btn-text">AI聊天</span>
|
||||||
|
</button>
|
||||||
|
<button class="quick-btn">
|
||||||
|
<span class="quick-btn-icon">📊</span>
|
||||||
|
<span class="quick-btn-text">数据统计</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="activities-stream">
|
||||||
|
<div class="stream-title">⏰ 活动流</div>
|
||||||
|
<div class="activity-timeline">
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-header">
|
||||||
|
<div class="activity-pet">🐱</div>
|
||||||
|
<div class="activity-text">小橘完成早餐</div>
|
||||||
|
<div class="activity-time">2小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-header">
|
||||||
|
<div class="activity-pet">🐶</div>
|
||||||
|
<div class="activity-text">小白外出散步</div>
|
||||||
|
<div class="activity-time">3小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-header">
|
||||||
|
<div class="activity-pet">🐰</div>
|
||||||
|
<div class="activity-text">小灰吃胡萝卜</div>
|
||||||
|
<div class="activity-time">4小时前</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="health-alerts">
|
||||||
|
<div class="alerts-title">🔔 健康提醒</div>
|
||||||
|
<div class="alert-item urgent">
|
||||||
|
<div class="alert-icon">💊</div>
|
||||||
|
<div class="alert-content">
|
||||||
|
<div class="alert-text">小橘驱虫药到期</div>
|
||||||
|
<div class="alert-time">明天</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="alert-item">
|
||||||
|
<div class="alert-icon">💉</div>
|
||||||
|
<div class="alert-content">
|
||||||
|
<div class="alert-text">小白疫苗接种</div>
|
||||||
|
<div class="alert-time">下周</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="floating-record">📝</button>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
22
pages.json
22
pages.json
|
|
@ -3,10 +3,9 @@
|
||||||
{
|
{
|
||||||
"path": "pages/pets/pets",
|
"path": "pages/pets/pets",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的宠物",
|
"navigationBarTitleText": "宠物管家",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#FF8A80",
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "white"
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -47,9 +46,8 @@
|
||||||
"path": "pages/pets/pet-detail",
|
"path": "pages/pets/pet-detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "宠物详情",
|
"navigationBarTitleText": "宠物详情",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#FF8A80",
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "white"
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -128,18 +126,16 @@
|
||||||
"path": "pages/pets/health-charts",
|
"path": "pages/pets/health-charts",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "健康档案",
|
"navigationBarTitleText": "健康档案",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#81C784",
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "white"
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/pets/pet-personality",
|
"path": "pages/pets/pet-personality",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "性格预设",
|
"navigationBarTitleText": "性格预设",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#64B5F6",
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "white"
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="health-charts-container">
|
<view class="health-charts-container">
|
||||||
<!-- 自定义导航栏 -->
|
<!-- 顶部操作栏 -->
|
||||||
<u-navbar :title="`${petInfo.name}的健康档案`" left-icon="arrow-left" @left-click="goBack">
|
<view class="top-action-bar">
|
||||||
<template #right>
|
<view class="action-item" @click="showMoreActions = true">
|
||||||
<u-icon name="more-circle" size="20" @click="showMoreActions = true"></u-icon>
|
<u-icon name="more-circle" size="20" color="#666666"></u-icon>
|
||||||
</template>
|
<text class="action-text">更多</text>
|
||||||
</u-navbar>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 宠物基本信息卡片 -->
|
<!-- 宠物基本信息卡片 -->
|
||||||
<view class="pet-info-card">
|
<view class="pet-info-card">
|
||||||
|
|
@ -375,6 +376,27 @@ export default {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 顶部操作栏 */
|
||||||
|
.top-action-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
|
||||||
|
.action-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8rpx;
|
||||||
|
padding: 12rpx 20rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background: rgba(255, 255, 255, 0.8);
|
||||||
|
|
||||||
|
.action-text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 宠物信息卡片 */
|
/* 宠物信息卡片 */
|
||||||
.pet-info-card {
|
.pet-info-card {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="personality-container">
|
<view class="personality-container">
|
||||||
<!-- 自定义导航栏 -->
|
<!-- 顶部操作栏 -->
|
||||||
<u-navbar title="宠物性格预设" left-icon="arrow-left" @left-click="goBack">
|
<view class="top-action-bar">
|
||||||
<template #right>
|
<view class="action-item" @click="showHelp = true">
|
||||||
<u-icon name="question-circle" size="20" @click="showHelp = true"></u-icon>
|
<u-icon name="question-circle" size="20" color="#666666"></u-icon>
|
||||||
</template>
|
<text class="action-text">帮助</text>
|
||||||
</u-navbar>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 进度指示器 -->
|
<!-- 进度指示器 -->
|
||||||
<view class="progress-container">
|
<view class="progress-container">
|
||||||
|
|
@ -448,6 +449,27 @@ export default {
|
||||||
padding-bottom: 120rpx;
|
padding-bottom: 120rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 顶部操作栏 */
|
||||||
|
.top-action-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
|
||||||
|
.action-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8rpx;
|
||||||
|
padding: 12rpx 20rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background: rgba(255, 255, 255, 0.8);
|
||||||
|
|
||||||
|
.action-text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 进度指示器 */
|
/* 进度指示器 */
|
||||||
.progress-container {
|
.progress-container {
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="pets-container">
|
<view class="pets-container">
|
||||||
<!-- 自定义导航栏 -->
|
<!-- 顶部信息栏 -->
|
||||||
<view class="custom-navbar">
|
<view class="top-info-bar">
|
||||||
<view class="navbar-content">
|
<view class="info-content">
|
||||||
<view class="navbar-title">
|
<view class="welcome-text">
|
||||||
<text class="title-text">🐾 我的宠物</text>
|
<text class="main-title">🐾 我的宠物</text>
|
||||||
<text class="subtitle-text">{{ petsList.length }}只小可爱陪伴着你</text>
|
<text class="sub-title">{{ petsList.length }}只小可爱陪伴着你</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="navbar-actions">
|
<view class="top-actions">
|
||||||
<view class="action-btn" @click="showQuickActions = true">
|
<view class="action-btn" @click="showQuickActions = true">
|
||||||
<u-icon name="apps" color="#FF8A80" size="20"></u-icon>
|
<u-icon name="apps" color="#FF8A80" size="20"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -305,29 +305,28 @@ export default {
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 自定义导航栏 */
|
/* 顶部信息栏 */
|
||||||
.custom-navbar {
|
.top-info-bar {
|
||||||
background: linear-gradient(135deg, #FF8A80 0%, #FFB74D 100%);
|
background: linear-gradient(135deg, #FF8A80 0%, #FFB74D 100%);
|
||||||
padding: 20rpx 30rpx 30rpx;
|
padding: 30rpx;
|
||||||
border-radius: 0 0 40rpx 40rpx;
|
border-radius: 0 0 40rpx 40rpx;
|
||||||
box-shadow: 0 8rpx 32rpx rgba(255, 138, 128, 0.3);
|
box-shadow: 0 8rpx 32rpx rgba(255, 138, 128, 0.3);
|
||||||
|
|
||||||
.navbar-content {
|
.info-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-title {
|
.welcome-text {
|
||||||
.title-text {
|
.main-title {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle-text {
|
.sub-title {
|
||||||
color: rgba(255, 255, 255, 0.8);
|
color: rgba(255, 255, 255, 0.8);
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
|
|
@ -335,7 +334,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-actions {
|
.top-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20rpx;
|
gap: 20rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue