- 新增 4 个 UI 组件: PointsCard/ProductCard/CheckinCalendar/CheckinModal - 商城首页 V2: 积分卡 + 快捷操作 + 分类标签 + 商品网格 - 商品详情 V2: 大图 + 信息卡 + 库存/余额状态 + 底部操作栏 - TabBar 新增商城入口(5 Tab: 首页/健康/商城/助手/我的) - 设计原型 docs/design/mp-05-mall-v2.html + SPEC.md 交付包 - CLAUDE.md 安全规范加固: 新增 §3.7 安全规范 6 条 + Feature DoD 安全清单扩展
143 lines
2.4 KiB
SCSS
143 lines
2.4 KiB
SCSS
@import '../../../styles/variables.scss';
|
|
@import '../../../styles/mixins.scss';
|
|
|
|
.checkin-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
&__card {
|
|
position: relative;
|
|
width: 320px;
|
|
background: $card;
|
|
border-radius: $r;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
}
|
|
|
|
&__header {
|
|
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
|
|
padding: $sp-lg;
|
|
padding-bottom: 20px;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&__header-deco {
|
|
position: absolute;
|
|
top: -15px;
|
|
right: -15px;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 30px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
&__title {
|
|
font-size: var(--tk-font-body);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
margin-bottom: $sp-xs;
|
|
display: block;
|
|
}
|
|
|
|
&__points-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: center;
|
|
gap: $sp-2xs;
|
|
}
|
|
|
|
&__points-num {
|
|
@include serif-number;
|
|
font-size: 36px;
|
|
font-weight: 700;
|
|
color: $white;
|
|
line-height: 1;
|
|
}
|
|
|
|
&__points-unit {
|
|
font-size: var(--tk-font-body-sm);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
&__streak {
|
|
font-size: var(--tk-font-cap);
|
|
color: rgba(255, 255, 255, 0.65);
|
|
margin-top: $sp-xs;
|
|
display: block;
|
|
}
|
|
|
|
&__calendar {
|
|
padding: $sp-section $sp-lg 0;
|
|
}
|
|
|
|
&__calendar-title {
|
|
font-size: var(--tk-font-body-sm);
|
|
font-weight: 600;
|
|
color: $tx;
|
|
margin-bottom: $sp-sm;
|
|
text-align: center;
|
|
display: block;
|
|
}
|
|
|
|
&__calendar-body {
|
|
position: relative;
|
|
padding-bottom: 52px;
|
|
}
|
|
|
|
&__footer {
|
|
padding: 0 $sp-lg $sp-lg;
|
|
}
|
|
|
|
&__btn {
|
|
width: 100%;
|
|
padding: 12px 0;
|
|
border-radius: $r-pill;
|
|
background: $pri;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
box-shadow: $shadow-btn;
|
|
@include touch-target;
|
|
|
|
&:active {
|
|
opacity: var(--tk-touch-feedback-opacity);
|
|
}
|
|
}
|
|
|
|
&__btn-text {
|
|
font-size: 15px;
|
|
color: $white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
// 长者模式
|
|
.elder-mode & {
|
|
&__card {
|
|
width: 340px;
|
|
}
|
|
&__points-num {
|
|
font-size: 42px;
|
|
}
|
|
&__title {
|
|
font-size: 17px;
|
|
}
|
|
&__btn {
|
|
padding: 16px 0;
|
|
}
|
|
&__btn-text {
|
|
font-size: 17px;
|
|
}
|
|
}
|
|
}
|