Files
JayuCloud/JC-Salon-WeChat/pages/planning/index.wxss
T
xiaowang 0dfa3bc5a8
自动发布开发环境 Nacos 配置 / publish (push) Successful in 46s
修复小程序日程页日视图末条内容被滚动容器底边裁切
- 日视图滚动容器末尾新增留白(64rpx + 安全区),避免末条时间刻度与末个预约卡片贴边、滚到底仍缺一截
- 视口高度计算同步预留该留白,短时间轴不再因高度刚好等于内容高度而裁掉末条标签
- 时间刻度列加宽到 104rpx,刻度与泳道内容间距增至 20rpx,改善左侧呼吸感并避免刻度文字被截断
2026-11-08 00:28:17 +08:00

1080 lines
18 KiB
Plaintext

.planning-page {
padding-top: 18rpx;
}
.phone-banner { display:flex; align-items:center; margin-bottom:18rpx; padding:16rpx 18rpx; border-radius:14rpx; background:#fff2d8; color:#815f2b; overflow:hidden; }.phone-banner-track { display:flex; flex:1; width:0; gap:50rpx; white-space:nowrap; animation:phoneBannerScroll 10s linear infinite; font-size:22rpx; }.phone-banner-close { position:relative; z-index:2; margin-left:18rpx; padding:6rpx; background:#fff2d8; font-size:32rpx; }.profile-prompt-mask { position:fixed; z-index:30; inset:0; display:flex; align-items:center; justify-content:center; padding:40rpx; background:rgba(25,41,33,.55); }.profile-prompt { box-sizing:border-box; display:flex; width:100%; flex-direction:column; align-items:center; padding:36rpx; border-radius:24rpx; background:#fff; }.profile-prompt-title { color:#17211f; font-size:32rpx; font-weight:800; }.profile-prompt-desc { margin-top:10rpx; color:#71807a; font-size:22rpx; text-align:center; }.wechat-nickname { box-sizing:border-box; width:100%; height:80rpx; margin-top:24rpx; padding:0 22rpx; border:1rpx solid #dce8df; border-radius:13rpx; background:#f7faf8; }.profile-save { margin-top:22rpx; }.profile-skip { margin-top:20rpx; }
.wechat-avatar {
position: relative;
display: block;
flex: none;
width: 144rpx;
min-width: 144rpx;
max-width: 144rpx;
height: 144rpx;
min-height: 144rpx;
max-height: 144rpx;
margin-top: 28rpx;
padding: 0;
overflow: hidden;
border: 2rpx solid #d8dfdb;
border-radius: 50%;
background: #f3f4f3;
line-height: 1;
}
.wechat-avatar[disabled] {
opacity: 0.78;
}
.wechat-avatar-image {
display: block;
width: 100%;
height: 100%;
}
.wechat-avatar-image.is-default {
box-sizing: border-box;
padding: 12rpx;
}
.wechat-avatar-hint {
position: absolute;
bottom: 0;
left: 50%;
height: 44rpx;
padding: 0 24rpx;
border-radius: 22rpx;
background: rgba(0, 0, 0, 0.55);
color: #fff;
font-size: 22rpx;
font-weight: 600;
line-height: 44rpx;
white-space: nowrap;
transform: translateX(-50%);
}
@keyframes phoneBannerScroll { from { transform:translateX(0); } to { transform:translateX(-48%); } }
.today-btn {
display: flex;
align-items: center;
justify-content: center;
width: 58rpx;
min-width: 58rpx;
max-width: 58rpx;
height: 52rpx;
min-height: 52rpx;
padding: 0;
border-radius: 999rpx;
background: #e5f4ed;
color: #247b63;
font-size: 24rpx;
font-weight: 800;
line-height: 52rpx;
}
.control-card {
padding: 8rpx 14rpx;
}
.calendar-error-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
margin-top: 18rpx;
padding: 18rpx;
border: 1rpx solid #f1d4c4;
border-radius: 8px;
background: #fff8f3;
}
.calendar-error-copy {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
gap: 6rpx;
}
.calendar-error-title {
color: #9b3d22;
font-size: 26rpx;
font-weight: 800;
}
.calendar-error-message {
color: #b06a52;
font-size: 22rpx;
line-height: 1.5;
}
.calendar-error-action {
display: flex;
flex: 0 0 96rpx;
align-items: center;
justify-content: center;
width: 96rpx;
min-width: 96rpx;
height: 52rpx;
margin: 0;
padding: 0;
box-sizing: border-box;
border-radius: 999rpx;
background: #ffffff;
color: #8b4b35;
font-size: 24rpx;
font-weight: 800;
line-height: 52rpx;
}
.date-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.date-side {
display: flex;
align-items: center;
width: 128rpx;
}
.date-tools {
justify-content: flex-end;
gap: 8rpx;
}
.icon-btn.small {
width: 44rpx;
min-width: 44rpx;
max-width: 44rpx;
height: 44rpx;
min-height: 44rpx;
font-size: 30rpx;
}
.date-center {
display: flex;
flex-direction: column;
align-items: center;
gap: 4rpx;
}
.date-main {
color: #17211f;
font-size: 30rpx;
font-weight: 800;
}
.date-sub {
color: #71807a;
font-size: 20rpx;
}
.business-hours-notice {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18rpx;
margin-top: 16rpx;
padding: 16rpx 18rpx;
border-left: 6rpx solid #d2a34e;
border-radius: 10rpx;
background: #fff9ea;
}
.business-hours-notice-copy {
display: flex;
min-width: 0;
flex-direction: column;
gap: 4rpx;
}
.business-hours-notice-title {
color: #775a25;
font-size: 23rpx;
font-weight: 800;
}
.business-hours-notice-desc {
color: #8a7751;
font-size: 20rpx;
line-height: 1.4;
}
.business-hours-action {
flex: 0 0 auto;
height: 54rpx;
margin: 0;
padding: 0 18rpx;
border-radius: 999rpx;
background: #247b63;
color: #fff;
font-size: 21rpx;
font-weight: 700;
line-height: 54rpx;
}
.business-hours-empty {
display: flex;
min-height: 240rpx;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10rpx;
box-sizing: border-box;
padding: 36rpx 24rpx;
text-align: center;
}
.business-hours-empty-title {
color: #26342d;
font-size: 25rpx;
font-weight: 800;
}
.business-hours-empty-desc {
color: #71807a;
font-size: 21rpx;
line-height: 1.5;
}
.segmented {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8rpx;
margin-top: 6rpx;
padding: 4rpx;
border-radius: 12px;
background: #f1ece4;
}
.segment {
display: flex;
align-items: center;
justify-content: center;
height: 40rpx;
border-radius: 10px;
color: #7d756c;
font-size: 24rpx;
font-weight: 700;
transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.segment.active {
background: #ffffff;
color: #17211f;
box-shadow: 0 6rpx 14rpx rgba(58, 48, 34, 0.07);
transform: translateY(-1rpx);
}
.artist-filter {
display: flex;
width: 100%;
height: 44rpx;
margin-top: 6rpx;
white-space: nowrap;
}
.artist-chip {
display: inline-flex;
align-items: center;
height: 44rpx;
margin-right: 10rpx;
padding: 0 16rpx;
border-radius: 999rpx;
background: #f3f7f4;
color: #625b52;
font-size: 24rpx;
font-weight: 700;
transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.artist-chip.active {
background: #e5f4ed;
color: #247b63;
transform: translateY(-1rpx);
}
.chip-dot {
width: 14rpx;
height: 14rpx;
margin-right: 8rpx;
border-radius: 50%;
}
.chip-count {
margin-left: 8rpx;
color: #71807a;
}
.unassigned-notice {
display: flex;
align-items: center;
margin-top: 8rpx;
padding: 10rpx 12rpx;
border-radius: 12rpx;
background: #fff4e5;
color: #8b5e24;
font-size: 22rpx;
font-weight: 700;
}
.unassigned-dot {
flex: none;
background: #d59a52;
}
.unassigned-link {
margin-left: auto;
color: #a56b24;
}
.day-summary {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12rpx;
}
.unassigned-summary .summary-value {
color: #c57d27;
}
.summary-item {
min-height: 116rpx;
padding: 16rpx;
}
.summary-value {
display: block;
color: #17211f;
font-size: 36rpx;
font-weight: 800;
}
.summary-label {
display: block;
margin-top: 8rpx;
color: #938c82;
font-size: 22rpx;
}
.day-board {
max-height: 820rpx;
margin-top: 12rpx;
overflow: hidden;
}
.timeline-wrap {
position: relative;
}
.timeline-bottom-space {
height: calc(64rpx + env(safe-area-inset-bottom));
}
.time-axis {
position: absolute;
top: 0;
left: 0;
z-index: 4;
width: 104rpx;
height: 100%;
border-right: 1rpx solid #e7ece9;
background: #ffffff;
}
.time-axis::before {
display: block;
height: 54rpx;
content: '';
}
.time-label {
position: absolute;
right: 16rpx;
color: #71807a;
font-size: 20rpx;
line-height: 1;
white-space: nowrap;
transform: translateY(-50%);
}
.lane-scroll {
position: absolute;
top: 0;
right: 0;
left: 124rpx;
height: 100%;
}
.lanes {
display: flex;
}
.artist-lane {
position: relative;
flex-shrink: 0;
border-right: 1rpx solid #e7ece9;
background: #ffffff;
}
.lane-unassigned-tag {
margin-left: auto;
color: #a56b24;
font-size: 17rpx;
font-weight: 600;
}
.hour-line {
position: absolute;
z-index: 0;
right: 0;
left: 0;
height: 1rpx;
background: rgba(203, 220, 213, 0.72);
pointer-events: none;
transform: translateY(-50%);
}
.lane-head {
position: sticky;
top: 0;
z-index: 2;
display: flex;
align-items: center;
height: 54rpx;
padding: 0 14rpx;
background: rgba(255, 255, 255, 0.92);
color: #17211f;
font-size: 22rpx;
font-weight: 700;
}
.appointment-block {
position: absolute;
z-index: 1;
right: auto;
left: 12rpx;
display: flex;
flex-direction: column;
box-sizing: border-box;
gap: 2rpx;
overflow: hidden;
padding: 6rpx 10rpx;
border-left: 6rpx solid #7ba7c7;
border-radius: 16rpx;
background: #fff7ee;
border-top: 1rpx solid rgba(58, 48, 34, 0.06);
border-right: 1rpx solid rgba(58, 48, 34, 0.06);
border-bottom: 1rpx solid rgba(58, 48, 34, 0.06);
transition: transform 160ms ease;
}
.appointment-block.unassigned-block {
border-style: dashed;
background: #fff6e8;
}
.appointment-block:active {
transform: scale(0.98);
}
.appointment-block.pending {
background: #fff3f6;
}
.appointment-block.unassigned-block.pending {
background: #fff6e8;
border-color: rgba(185, 111, 30, 0.18);
}
.block-title {
color: #17211f;
font-size: 22rpx;
font-weight: 800;
}
.block-meta,
.block-status {
color: #7e756b;
font-size: 18rpx;
line-height: 1.25;
}
.block-footer {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 18rpx;
}
.block-actions {
display: flex;
gap: 10rpx;
margin-top: 0;
color: #247b63;
font-size: 18rpx;
font-weight: 800;
}
.block-actions text {
padding: 0 5rpx;
}
.appointment-block.compact {
gap: 0;
padding: 2rpx 8rpx;
}
.appointment-block.compact .block-title {
font-size: 20rpx;
line-height: 1.05;
}
.appointment-block.compact .block-meta {
font-size: 16rpx;
line-height: 1.05;
}
.appointment-block.compact .block-status,
.appointment-block.compact .block-actions {
display: none;
}
.appointment-block.compact .block-footer {
display: none;
}
.lane-empty {
position: absolute;
top: 76rpx;
right: 18rpx;
left: 18rpx;
padding: 16rpx 0;
border: 1rpx dashed #e7ece9;
border-radius: 10px;
color: #aaa198;
text-align: center;
font-size: 22rpx;
}
.week-card {
padding: 20rpx;
}
.week-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12rpx;
}
.week-card-title {
display: flex;
min-width: 0;
align-items: baseline;
gap: 10rpx;
}
.week-title {
color: #17211f;
font-size: 28rpx;
font-weight: 800;
}
.week-range {
color: #71807a;
font-size: 20rpx;
}
.week-summary {
flex: none;
color: #71807a;
font-size: 20rpx;
}
.week-legend {
display: flex;
flex-wrap: wrap;
gap: 8rpx 18rpx;
margin-top: 12rpx;
}
.week-legend-item {
display: flex;
align-items: center;
gap: 8rpx;
}
.week-legend-dot {
width: 14rpx;
height: 14rpx;
flex: none;
border-radius: 50%;
}
.week-legend-name {
color: #71807a;
font-size: 20rpx;
}
.week-legend-empty {
color: #a1aca6;
font-size: 20rpx;
}
.week-list {
margin-top: 8rpx;
}
.week-row {
display: flex;
align-items: center;
gap: 8rpx;
box-sizing: border-box;
height: 108rpx;
border-bottom: 1rpx solid #f0f3f1;
}
.week-row:last-child {
border-bottom: none;
}
.week-row.today {
margin: 0 -20rpx;
padding: 0 20rpx 0 14rpx;
border-left: 6rpx solid #247b63;
background: #e5f4ed;
}
.week-row-date {
display: flex;
width: 92rpx;
flex: none;
align-items: baseline;
gap: 4rpx;
}
.week-row-name {
color: #71807a;
font-size: 20rpx;
}
.week-row-day {
color: #17211f;
font-size: 30rpx;
font-weight: 800;
}
.week-row-suffix {
color: #71807a;
font-size: 16rpx;
}
.week-row-status {
width: 40rpx;
flex: none;
color: #247b63;
font-size: 18rpx;
font-weight: 800;
}
.week-row-status.rest {
color: #a1aca6;
}
.week-track {
display: flex;
width: 396rpx;
height: 28rpx;
flex: none;
gap: 4rpx;
box-sizing: border-box;
overflow: hidden;
border-radius: 14rpx;
background: #eef3f0;
}
.week-segment {
display: flex;
height: 28rpx;
flex: none;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 14rpx;
}
.week-segment-text {
box-sizing: border-box;
max-width: 100%;
padding: 0 6rpx;
overflow: hidden;
color: #ffffff;
font-size: 18rpx;
line-height: 28rpx;
white-space: nowrap;
text-overflow: ellipsis;
}
.week-row-tail {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
align-items: flex-end;
gap: 2rpx;
}
.week-row-empty {
flex: 1;
min-width: 0;
color: #71807a;
font-size: 20rpx;
}
.week-row-total {
color: #17211f;
font-size: 20rpx;
font-weight: 800;
}
.week-row-pending {
padding: 2rpx 8rpx;
border-radius: 8rpx;
background: #fff1dc;
color: #8b5e24;
font-size: 16rpx;
font-weight: 700;
white-space: nowrap;
}
.week-grid {
margin-top: 18rpx;
padding: 20rpx;
}
.week-grid-head,
.week-line {
display: flex;
align-items: center;
justify-content: space-between;
}
.week-grid-head {
margin-bottom: 14rpx;
font-weight: 800;
}
.week-line {
min-height: 70rpx;
border-top: 1rpx solid #e7ece9;
}
.week-line-date {
width: 132rpx;
color: #71807a;
font-size: 24rpx;
}
.week-line-bars {
flex: 1;
display: flex;
flex-direction: column;
gap: 6rpx;
min-height: 28rpx;
}
.week-line-bars.empty {
min-height: 28rpx;
}
.week-count-bar {
display: flex;
align-items: center;
min-width: 58rpx;
height: 28rpx;
padding-left: 10rpx;
border-radius: 7rpx;
color: #fff;
font-size: 18rpx;
font-weight: 700;
}
.month-card {
overflow: hidden;
}
.month-toolbar {
display: flex;
align-items: center;
gap: 8rpx;
margin-bottom: 14rpx;
padding: 0 4rpx;
}
.month-toolbar-title {
flex: 0 0 auto;
margin-right: auto;
color: #615a51;
font-size: 24rpx;
font-weight: 800;
}
.month-toolbar-controls {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 12rpx;
margin-left: auto;
}
.month-mode-switch {
display: inline-flex;
flex: 0 0 auto;
gap: 6rpx;
padding: 6rpx;
border-radius: 999rpx;
background: #e7ece9;
}
.month-mode {
display: flex;
align-items: center;
justify-content: center;
min-width: 68rpx;
height: 44rpx;
padding: 0 12rpx;
border-radius: 999rpx;
color: #71807a;
font-size: 22rpx;
font-weight: 800;
transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.month-mode.active {
background: #ffffff;
color: #247b63;
box-shadow: 0 4rpx 12rpx rgba(58, 48, 34, 0.07);
transform: translateY(-1rpx);
}
.row-name-switch {
display: inline-flex;
align-items: center;
gap: 8rpx;
height: 44rpx;
padding: 0 10rpx;
border-radius: 999rpx;
background: #e5f4ed;
color: #71807a;
font-size: 21rpx;
font-weight: 800;
}
.row-name-switch.active {
color: #247b63;
background: #e5f4ed;
}
.switch-track {
position: relative;
width: 44rpx;
height: 24rpx;
border-radius: 999rpx;
background: #d6d0c7;
}
.switch-thumb {
position: absolute;
top: 3rpx;
left: 3rpx;
width: 18rpx;
height: 18rpx;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 2rpx 6rpx rgba(58, 48, 34, 0.16);
transition: transform 180ms ease;
}
.row-name-switch.active .switch-track {
background: #247b63;
}
.row-name-switch.active .switch-thumb {
transform: translateX(20rpx);
}
.month-week-head {
display: grid;
grid-template-columns: repeat(7, 1fr);
height: 58rpx;
align-items: center;
border-bottom: 1rpx solid #ebe5dc;
color: #726b62;
font-size: 24rpx;
font-weight: 800;
text-align: center;
}
.month-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
}
.month-cell {
min-height: 136rpx;
padding: 8rpx 5rpx;
border-right: 1rpx solid #e7ece9;
border-bottom: 1rpx solid #e7ece9;
background: #ffffff;
transition: background-color 180ms ease, transform 160ms ease;
}
.month-cell:active {
transform: scale(0.985);
}
.month-cell:nth-child(7n) {
border-right: 0;
}
.month-cell.out-month {
background: #f3f7f4;
}
.month-cell.selected {
background: #e5f4ed;
}
.month-cell-head {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 32rpx;
}
.month-cell-badges {
display: flex;
align-items: center;
gap: 4rpx;
}
.month-day {
color: #17211f;
font-size: 22rpx;
font-weight: 800;
}
.out-month .month-day {
color: #aba39a;
}
.day-mark {
font-size: 17rpx;
font-weight: 800;
}
.day-mark.full {
color: #d98d8d;
}
.day-mark.rest {
color: #8aaeca;
}
.month-unassigned-count {
padding: 3rpx 6rpx;
border-radius: 5rpx;
background: #fff1dc;
color: #a56b24;
font-size: 16rpx;
font-weight: 800;
}
.month-bars {
display: flex;
flex-direction: column;
gap: 5rpx;
margin-top: 7rpx;
}
.month-artist-bar {
display: flex;
align-items: center;
justify-content: center;
height: 24rpx;
min-width: 0;
overflow: hidden;
border-radius: 6rpx;
color: #fff;
font-size: 17rpx;
font-weight: 800;
line-height: 1;
white-space: nowrap;
transition: transform 160ms ease;
}
.month-blocks {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
gap: 5rpx;
margin-top: 8rpx;
}
.month-order-block {
width: 22rpx;
height: 12rpx;
border-radius: 999rpx;
box-shadow: inset 0 0 0 1rpx rgba(255, 255, 255, 0.24);
}
.month-row-block {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 12rpx;
overflow: hidden;
border-radius: 999rpx;
color: #fff;
font-size: 13rpx;
font-weight: 900;
line-height: 1;
white-space: nowrap;
text-shadow: 0 1rpx 3rpx rgba(37, 31, 24, 0.22);
box-shadow: inset 0 0 0 1rpx rgba(255, 255, 255, 0.24);
}
.month-row-block.named {
height: 20rpx;
}
.month-blocks .month-empty {
width: 100%;
}
.month-empty {
margin-top: 10rpx;
white-space: nowrap;
color: #b5ada4;
font-size: 20rpx;
text-align: center;
}
@keyframes pageFadeIn {
from {
opacity: 0;
transform: translateY(8rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.historical-backfill-card{margin:20rpx 0;padding:22rpx}.historical-backfill-row{display:flex;justify-content:space-between;align-items:center;padding:18rpx 0;border-top:1rpx solid #e7ece9;font-size:26rpx}.historical-backfill-row .muted{display:block;color:#71807a;font-size:22rpx;margin-top:8rpx}