This commit is contained in:
parent
7d32f5d0f9
commit
7830a6ebbd
|
|
@ -1,630 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,756 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,852 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,616 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,798 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,579 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -1,593 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -3,17 +3,26 @@
|
|||
<!-- 标签切换容器 -->
|
||||
<view class="tabs-container" v-if="petsList.length > 0">
|
||||
<view class="tabs-header">
|
||||
<view
|
||||
class="tab-btn"
|
||||
:class="{ 'tab-btn--active': currentTabIndex === index }"
|
||||
v-for="(pet, index) in petsList"
|
||||
:key="pet.id"
|
||||
@click="switchTab(index)"
|
||||
<scroll-view
|
||||
class="tabs-scroll"
|
||||
scroll-x
|
||||
:show-scrollbar="false"
|
||||
:enable-flex="true"
|
||||
>
|
||||
<view class="tab-avatar gradient-bg-primary">{{ getPetEmoji(pet.breed) }}</view>
|
||||
<view class="tab-name">{{ pet.name }}</view>
|
||||
</view>
|
||||
<view class="add-tab" @click="addPet">
|
||||
<view class="tabs-content">
|
||||
<view
|
||||
class="tab-btn"
|
||||
:class="{ 'tab-btn--active': currentTabIndex === index }"
|
||||
v-for="(pet, index) in petsList"
|
||||
:key="pet.id"
|
||||
@click="switchTab(index)"
|
||||
>
|
||||
<view class="tab-avatar gradient-bg-primary">{{ getPetEmoji(pet.breed) }}</view>
|
||||
<view class="tab-name">{{ pet.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="add-tab-fixed" @click="addPet">
|
||||
<text class="add-tab__icon">➕</text>
|
||||
<text class="add-tab__text">添加</text>
|
||||
</view>
|
||||
|
|
@ -340,6 +349,7 @@ export default {
|
|||
gender: '母',
|
||||
weight: '25kg',
|
||||
birthday: '2021-03-20',
|
||||
constellation: '双鱼座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['温顺', '聪明', '忠诚'],
|
||||
lastRecord: '2024-01-14'
|
||||
|
|
@ -354,9 +364,115 @@ export default {
|
|||
gender: '母',
|
||||
weight: '1.2kg',
|
||||
birthday: '2023-06-15',
|
||||
constellation: '双子座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['安静', '可爱', '乖巧'],
|
||||
lastRecord: '2024-01-13'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: '小黑',
|
||||
breed: '哈士奇',
|
||||
age: 4,
|
||||
companionDays: 1460,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '公',
|
||||
weight: '28kg',
|
||||
birthday: '2020-05-10',
|
||||
constellation: '金牛座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['调皮', '精力充沛', '拆家'],
|
||||
lastRecord: '2024-01-16'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: '咪咪',
|
||||
breed: '波斯猫',
|
||||
age: 5,
|
||||
companionDays: 1825,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '母',
|
||||
weight: '3.8kg',
|
||||
birthday: '2019-08-22',
|
||||
constellation: '处女座',
|
||||
healthStatus: 'warning',
|
||||
personality: ['高贵', '优雅', '挑食'],
|
||||
lastRecord: '2024-01-12'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '豆豆',
|
||||
breed: '泰迪',
|
||||
age: 2,
|
||||
companionDays: 730,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '公',
|
||||
weight: '6.2kg',
|
||||
birthday: '2022-02-14',
|
||||
constellation: '水瓶座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['聪明', '活泼', '粘人'],
|
||||
lastRecord: '2024-01-15'
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
name: '花花',
|
||||
breed: '仓鼠',
|
||||
age: 1,
|
||||
companionDays: 120,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '母',
|
||||
weight: '0.15kg',
|
||||
birthday: '2023-09-01',
|
||||
constellation: '处女座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['可爱', '活跃', '爱囤食'],
|
||||
lastRecord: '2024-01-16'
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
name: '彩彩',
|
||||
breed: '鹦鹉',
|
||||
age: 3,
|
||||
companionDays: 900,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '公',
|
||||
weight: '0.8kg',
|
||||
birthday: '2021-11-30',
|
||||
constellation: '射手座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['聪明', '话多', '模仿'],
|
||||
lastRecord: '2024-01-14'
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
name: '小雪',
|
||||
breed: '金毛',
|
||||
age: 1,
|
||||
companionDays: 200,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '母',
|
||||
weight: '18kg',
|
||||
birthday: '2023-05-20',
|
||||
constellation: '金牛座',
|
||||
healthStatus: 'healthy',
|
||||
personality: ['温顺', '乖巧', '爱玩'],
|
||||
lastRecord: '2024-01-15'
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
name: '小虎',
|
||||
breed: '橘猫',
|
||||
age: 6,
|
||||
companionDays: 2190,
|
||||
avatar: '/static/default-pet.png',
|
||||
gender: '公',
|
||||
weight: '5.8kg',
|
||||
birthday: '2018-07-08',
|
||||
constellation: '巨蟹座',
|
||||
healthStatus: 'warning',
|
||||
personality: ['慵懒', '贪吃', '老成'],
|
||||
lastRecord: '2024-01-11'
|
||||
}
|
||||
]
|
||||
// 保存模拟数据到本地存储
|
||||
|
|
@ -386,7 +502,14 @@ export default {
|
|||
const expenses = [
|
||||
{ petId: 1, amount: 580, month: '2024-01' },
|
||||
{ petId: 2, amount: 890, month: '2024-01' },
|
||||
{ petId: 3, amount: 120, month: '2024-01' }
|
||||
{ petId: 3, amount: 120, month: '2024-01' },
|
||||
{ petId: 4, amount: 1200, month: '2024-01' },
|
||||
{ petId: 5, amount: 750, month: '2024-01' },
|
||||
{ petId: 6, amount: 680, month: '2024-01' },
|
||||
{ petId: 7, amount: 80, month: '2024-01' },
|
||||
{ petId: 8, amount: 320, month: '2024-01' },
|
||||
{ petId: 9, amount: 450, month: '2024-01' },
|
||||
{ petId: 10, amount: 620, month: '2024-01' }
|
||||
]
|
||||
this.petExpenses = expenses
|
||||
} catch (error) {
|
||||
|
|
@ -414,7 +537,10 @@ export default {
|
|||
// 获取宠物记录数量
|
||||
getPetRecordsCount(petId) {
|
||||
const petRecords = this.petRecords.filter(record => record.petId === petId)
|
||||
const mockCounts = { 1: 89, 2: 67, 3: 34 }
|
||||
const mockCounts = {
|
||||
1: 89, 2: 67, 3: 34, 4: 156, 5: 203,
|
||||
6: 78, 7: 45, 8: 92, 9: 23, 10: 267
|
||||
}
|
||||
return petRecords.length || mockCounts[petId] || 0
|
||||
},
|
||||
|
||||
|
|
@ -427,8 +553,11 @@ export default {
|
|||
// 获取宠物待办提醒数量
|
||||
getPetReminders(petId) {
|
||||
// 模拟获取宠物待办提醒数量
|
||||
const reminders = [3, 1, 5, 2, 0];
|
||||
return reminders[petId % reminders.length] || 0;
|
||||
const reminders = {
|
||||
1: 3, 2: 1, 3: 5, 4: 2, 5: 4,
|
||||
6: 0, 7: 1, 8: 3, 9: 2, 10: 6
|
||||
};
|
||||
return reminders[petId] || 0;
|
||||
},
|
||||
|
||||
// 获取星座对应的图标
|
||||
|
|
@ -461,6 +590,15 @@ export default {
|
|||
return statusMap[status] || '健康'
|
||||
},
|
||||
|
||||
getHealthTagType(status) {
|
||||
const typeMap = {
|
||||
healthy: 'success',
|
||||
warning: 'warning',
|
||||
sick: 'error'
|
||||
}
|
||||
return typeMap[status] || 'success'
|
||||
},
|
||||
|
||||
addPet() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/pets/add-pet'
|
||||
|
|
@ -522,24 +660,40 @@ export default {
|
|||
|
||||
.tabs-container {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
margin: 20rpx 30rpx 30rpx;
|
||||
margin: 20rpx 20rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
backdrop-filter: blur(20rpx);
|
||||
overflow: hidden;
|
||||
overflow: visible;
|
||||
box-shadow: 0 16rpx 64rpx rgba(255, 138, 128, 0.2);
|
||||
border: 2rpx solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.tabs-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: linear-gradient(135deg, rgba(255, 138, 128, 0.2) 0%, rgba(255, 182, 193, 0.2) 100%);
|
||||
padding: 10rpx;
|
||||
border-radius: 40rpx 40rpx 0 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tabs-scroll {
|
||||
flex: 1;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tabs-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
flex: 1;
|
||||
flex-shrink: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 24rpx 16rpx;
|
||||
|
|
@ -548,6 +702,8 @@ export default {
|
|||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
min-width: 120rpx;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.tab-btn--active {
|
||||
|
|
@ -572,11 +728,13 @@ export default {
|
|||
color: #333;
|
||||
}
|
||||
|
||||
.add-tab {
|
||||
width: 120rpx;
|
||||
.add-tab-fixed {
|
||||
width: 100rpx;
|
||||
min-width: 100rpx;
|
||||
flex-shrink: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 24rpx 16rpx;
|
||||
padding: 24rpx 8rpx;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
transition: all 0.3s ease;
|
||||
|
|
@ -585,9 +743,10 @@ export default {
|
|||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
|
||||
.add-tab:active {
|
||||
.add-tab-fixed:active {
|
||||
background: rgba(255, 138, 128, 0.15);
|
||||
}
|
||||
|
||||
|
|
@ -642,8 +801,8 @@ export default {
|
|||
}
|
||||
|
||||
.pet-info-section {
|
||||
width: 60%;
|
||||
padding-left: 16rpx;
|
||||
//width: 60%;
|
||||
padding-left: 80rpx;
|
||||
padding-right: 8rpx;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# 宠物管家小程序开发助手 v2.0
|
||||
|
||||
## 身份设定
|
||||
你是一位资深的uni-app全栈开发专家,专精宠物管理领域的小程序开发。拥有5年+宠物行业项目经验,深谙用户心理和业务痛点。你的特点是:
|
||||
- 🎯 **需求敏感**:能快速识别用户真实需求背后的业务逻辑
|
||||
|
|
|
|||
Loading…
Reference in New Issue