Files
hms/apps/miniprogram/src/pages/pkg-profile/family/index.scss
iven cb6f5cc651
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
feat(mp+health): 小程序分包迁移 + 积分商城后台列表 API
- 小程序页面迁移到 pkg-health/pkg-mall/pkg-profile 分包目录
- 删除旧 pages/health/input、pages/mall/detail 等旧路径
- 导航路径更新为分包路径(/pages/pkg-mall/exchange/index 等)
- TrendChart 组件优化
- 后台添加 admin_list_products API(支持查看已下架商品)
- config/index.ts 添加 defineConstants 环境变量
- mp e2e check-readiness 路径修正
2026-04-29 07:29:49 +08:00

160 lines
2.4 KiB
SCSS

@import '../../../styles/variables.scss';
@mixin serif-number {
font-family: 'Georgia', 'Times New Roman', serif;
font-variant-numeric: tabular-nums;
}
@mixin section-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
}
@mixin tag($bg, $color) {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
font-size: 20px;
font-weight: 500;
background: $bg;
color: $color;
}
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.family-page {
min-height: 100vh;
background: $bg;
padding: 32px 24px;
padding-bottom: 160px;
}
.family-page-title {
@include section-title;
padding-left: 4px;
}
.family-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.family-item {
display: flex;
align-items: center;
background: $card;
border-radius: $r;
padding: 24px;
box-shadow: $shadow-sm;
transition: box-shadow 0.2s;
&:active {
box-shadow: $shadow-md;
}
&.active {
box-shadow: $shadow-md;
}
}
.family-avatar {
@include flex-center;
width: 80px;
height: 80px;
border-radius: $r;
background: $pri-l;
flex-shrink: 0;
margin-right: 20px;
}
.family-avatar-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 36px;
font-weight: bold;
color: $pri-d;
}
.family-info {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.family-name-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.family-name {
font-size: 30px;
font-weight: bold;
color: $tx;
}
.family-current-tag {
@include tag($pri, #fff);
font-size: 18px;
padding: 2px 10px;
}
.family-meta {
display: flex;
align-items: center;
gap: 12px;
}
.family-relation-tag {
@include tag($pri-l, $pri-d);
font-size: 20px;
padding: 2px 12px;
}
.family-gender {
font-size: 24px;
color: $tx2;
}
.family-edit {
flex-shrink: 0;
margin-left: 16px;
padding: 8px 20px;
border: 1px solid $bd;
border-radius: $r-pill;
}
.family-edit-text {
font-size: 24px;
color: $tx2;
}
.family-add-btn {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: $pri;
padding: 28px;
text-align: center;
box-shadow: 0 -2px 12px rgba(196, 98, 58, 0.15);
}
.family-add-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
color: #fff;
font-weight: bold;
letter-spacing: 2px;
}