Files
wechat-clock-mini/pages/checkin/checkin.wxss
王宏豪 d7fc8c8982 init
项目初始化
2026-09-03 16:49:59 +08:00

395 lines
6.4 KiB
Plaintext

/* ---- error state ---- */
.error-card {
margin-top: 160rpx;
text-align: center;
padding: 0 40rpx;
}
.error-icon {
width: 96rpx;
height: 96rpx;
line-height: 96rpx;
margin: 0 auto 24rpx;
border-radius: 50%;
background: #fdecea;
color: #c0392b;
font-size: 48rpx;
font-weight: 700;
text-align: center;
}
.error-title {
color: #5A4A3A;
font-size: 28rpx;
margin-bottom: 48rpx;
line-height: 1.6;
}
.btn-retry {
display: inline-block;
min-width: 240rpx;
background: #C67B30;
color: #fff;
border-radius: 12rpx;
}
.btn-hover { opacity: .85; transform: scale(.98); }
.page {
padding: 32rpx;
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
height: 100vh;
display: flex;
flex-direction: column;
box-sizing: border-box;
overflow: hidden;
background: #FDFBF7;
}
.fade-in {
animation: fadeIn .3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8rpx); }
to { opacity: 1; transform: none; }
}
.card {
background: #fff;
border-radius: 16rpx;
padding: 24rpx;
box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.05);
}
.top-card {
flex-shrink: 0;
border: 1rpx solid transparent;
box-shadow: 0 8rpx 24rpx rgba(44, 24, 16, 0.08);
}
.top-card.done-card {
border-color: rgba(46, 125, 50, 0.25);
}
/* 打卡状态卡 */
.status-row {
display: flex;
align-items: center;
gap: 20rpx;
}
.date-chip {
width: 124rpx;
flex-shrink: 0;
border-radius: 14rpx;
padding: 16rpx 8rpx;
text-align: center;
background: #2C1810;
color: #FDFBF7;
}
.date-week {
font-size: 22rpx;
opacity: 0.75;
}
.date-num {
font-size: 40rpx;
font-weight: 800;
margin-top: 6rpx;
line-height: 1;
}
.status-main {
flex: 1;
min-width: 0;
}
.status-title {
font-size: 40rpx;
font-weight: 800;
}
.status-title.done {
color: #2E7D32;
}
.status-title.undone {
color: #C67B30;
}
.status-sub {
margin-top: 10rpx;
font-size: 24rpx;
color: #7A6A5C;
}
/* 状态按钮:两行布局 */
.pills-grid {
position: relative;
display: flex;
flex-wrap: wrap;
gap: 16rpx;
margin-top: 28rpx;
padding-top: 24rpx;
border-top: 1rpx solid #F2EDE7;
}
.pills-grid.disabled {
opacity: 0.7;
}
.pill {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 1 1 30%;
min-width: 180rpx;
box-sizing: border-box;
margin: 0;
padding: 18rpx 20rpx;
border-radius: 999rpx;
border: 1rpx solid #D8C7B4;
background: #FFF;
color: #5A4A3A;
font-size: 26rpx;
line-height: 1;
}
.pill.active {
background: #C67B30;
border-color: #C67B30;
color: #fff;
box-shadow: 0 6rpx 14rpx rgba(198, 123, 48, 0.22);
}
.pill-hover {
opacity: 0.85;
transform: scale(0.97);
}
.dot {
width: 14rpx;
height: 14rpx;
border-radius: 50%;
margin-right: 12rpx;
flex-shrink: 0;
}
.submitting {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(253, 251, 247, 0.75);
display: flex;
align-items: center;
justify-content: center;
color: #C67B30;
font-weight: 700;
border-radius: 12rpx;
z-index: 2;
}
/* 记录区 */
.record-panel {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
margin-top: 24rpx;
}
.record-scroll {
flex: 1;
min-height: 0;
}
.record-inner {
padding: 4rpx 4rpx 24rpx;
}
.tabs {
display: flex;
border-bottom: 1rpx solid #eee;
margin-bottom: 8rpx;
}
.tab {
flex: 1;
text-align: center;
padding: 22rpx 0;
color: #7A6A5C;
transition: color .15s ease;
}
.tab.active {
color: #C67B30;
font-weight: 700;
border-bottom: 4rpx solid #C67B30;
transform: translateY(-2rpx);
}
.tab-hover {
background: #f6efe6;
}
/* 小组头部 + 进度 */
.group-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12rpx 8rpx;
}
.group-title {
color: #C67B30;
font-weight: 700;
font-size: 26rpx;
}
.group-progress {
padding: 6rpx 14rpx;
border-radius: 999rpx;
background: #f6efe6;
color: #C67B30;
font-size: 22rpx;
}
/* 成员列表 */
.member {
display: flex;
align-items: center;
padding: 18rpx 8rpx;
border-bottom: 1rpx solid #f2ede7;
}
.member-avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
background: #f6efe6;
color: #C67B30;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.member-avatar.ok {
background: #e8f4eb;
color: #2E7D32;
}
.member-info {
flex: 1;
min-width: 0;
margin-left: 16rpx;
}
.member-name {
font-size: 28rpx;
color: #2C1810;
}
.member.ok .member-name {
color: #2E7D32;
}
.member-meta {
margin-top: 6rpx;
font-size: 22rpx;
color: #8B7A6A;
}
.member-badge {
flex-shrink: 0;
margin-left: 12rpx;
padding: 8rpx 16rpx;
border-radius: 999rpx;
font-size: 22rpx;
}
.member-badge.ok {
background: #e8f4eb;
color: #2E7D32;
}
.member-badge.idle {
background: #f2ede7;
color: #8B7A6A;
}
/* 历史 */
.history-item {
background: #fff;
border-radius: 12rpx;
padding: 20rpx;
margin-bottom: 16rpx;
box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.04);
}
.history-head {
display: flex;
align-items: center;
justify-content: space-between;
}
.history-date {
font-size: 28rpx;
font-weight: 700;
color: #2C1810;
}
.history-badge {
padding: 6rpx 14rpx;
border-radius: 999rpx;
font-size: 22rpx;
}
.history-time {
margin-top: 8rpx;
font-size: 22rpx;
color: #999;
}
/* 空态 */
.empty {
padding: 64rpx 24rpx;
text-align: center;
color: #B6A996;
font-size: 26rpx;
}
.empty-icon {
width: 96rpx;
height: 96rpx;
line-height: 96rpx;
margin: 0 auto 20rpx;
border-radius: 50%;
background: #f6efe6;
font-size: 48rpx;
text-align: center;
}
.empty-text {
color: #B6A996;
}
/* 骨架屏 */
.skeleton-card {
background: #fff;
border-radius: 16rpx;
padding: 28rpx 24rpx;
box-shadow: 0 4rpx 16rpx rgba(44, 24, 16, 0.04);
}
.sk {
background: #F0EBE3;
border-radius: 12rpx;
}
.sk-title {
width: 60%;
height: 40rpx;
margin-bottom: 24rpx;
}
.sk-line {
height: 24rpx;
margin-top: 16rpx;
}
.w60 {
width: 60%;
}
.w90 {
width: 90%;
}
.skeleton-list {
margin-top: 24rpx;
}
.sk-row {
height: 96rpx;
margin-bottom: 16rpx;
}
/* 顶部当前状态徽标 */
.hero-status {
display: inline-flex;
align-items: center;
margin-top: 14rpx;
padding: 8rpx 16rpx;
border-radius: 999rpx;
background: #F6F0E7;
font-size: 24rpx;
}
.hero-status-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
margin-right: 10rpx;
flex-shrink: 0;
}
.hero-status-label {
font-weight: 700;
}