Files
ttstd_family_care_miniapp/app.wxss
T
tongtong f1c0739570 feat: 底部三 Tab 与首页界面骨架
- 自定义 tabBar(首页/管理/我的),悬浮胶囊样式,点击 switchTab 切换
- 首页按 ttstd_family_care 布局实现:设备概览、实时位置、最近截图、
  今日使用时长、设备操作、常用功能 4 列网格
- 未接入功能统一 showTodo 占位提示,重启/关机保留二次确认
- 管理、我的为占位页,列出待迁移模块与设置项
- 移除模板页 pages/index、pages/logs 与 utils/util.ts
- AGENTS.md 补充界面与交互约定、首页与 Tab 现状
2026-11-27 20:46:08 +08:00

114 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**app.wxss — 全局设计变量与通用卡片样式**/
page {
/* 同同绿与功能色,与 ttstd_family_care/lib/core/widgets/feature_ui.dart 一致 */
--green: #07c160;
--blue: #5b8def;
--orange: #f5a623;
--purple: #764ba2;
--red: #ef4444;
--teal: #0ea5e9;
--gray: #94a3b8;
--ink: #1f2733;
--sub: #9aa3b2;
--surface: #f5f7fa;
--card: #ffffff;
--divider: #f1f3f7;
--track: #eef1f6;
background: #ffffff;
color: var(--ink);
font-size: 28rpx;
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
}
/* 页面容器:为悬浮 tabBar 预留底部空间 */
.page {
padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
box-sizing: border-box;
}
/* 卡片:对应 Flutter CardBox(margin 16/6、padding 16、圆角 18、轻阴影) */
.card {
margin: 12rpx 32rpx;
padding: 32rpx;
background: var(--card);
border-radius: 36rpx;
box-shadow: 0 8rpx 32rpx rgba(20, 30, 60, 0.08);
}
.card-head {
display: flex;
align-items: center;
padding-bottom: 24rpx;
}
.head-icon {
width: 44rpx;
height: 44rpx;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 14rpx;
font-size: 26rpx;
}
.head-title {
margin-left: 14rpx;
font-size: 30rpx;
font-weight: 700;
color: var(--ink);
}
.head-badge {
margin-left: 16rpx;
padding: 4rpx 16rpx;
border-radius: 40rpx;
font-size: 22rpx;
font-weight: 600;
color: var(--sub);
background: var(--surface);
}
.head-badge.ok {
color: var(--green);
background: rgba(7, 193, 96, 0.12);
}
.spacer {
flex: 1;
}
.head-action {
display: flex;
align-items: center;
font-size: 24rpx;
font-weight: 600;
color: var(--blue);
padding: 8rpx 0;
}
.head-link {
font-size: 24rpx;
font-weight: 600;
color: var(--green);
}
.chevron {
margin-left: 4rpx;
font-size: 28rpx;
line-height: 1;
}
.section-title {
margin: 32rpx 36rpx 8rpx;
font-size: 26rpx;
font-weight: 700;
color: var(--sub);
letter-spacing: 1rpx;
}