优化店务小程序规划视图与表单加载

This commit is contained in:
2026-07-23 15:57:39 +08:00
parent 7d6929bcf6
commit 3d10affea3
8 changed files with 273 additions and 78 deletions
+79 -34
View File
@@ -423,58 +423,49 @@
.week-day-card {
position: relative;
display: inline-flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
box-sizing: border-box;
width: 148rpx;
min-height: 164rpx;
height: 142rpx;
min-height: 142rpx;
max-height: 142rpx;
margin-right: 12rpx;
padding: 16rpx;
}
.week-day-card.is-completed {
background: #f5fff7;
border-color: #c8ead1;
background: #fffdf8;
border-color: #eee8df;
}
.week-day-card.is-cancelled {
background: #fff5f6;
border-color: #e8c7cc;
background: #fffdf8;
border-color: #eee8df;
}
.week-day-card.is-completed::after,
.week-day-card.is-cancelled::after {
content: none;
}
.week-day-card.active {
outline: 3rpx solid #8fb89a;
}
.week-name,
.week-total {
.week-name {
color: #8f877e;
font-size: 22rpx;
}
.week-date {
margin: 8rpx 0;
margin-top: 10rpx;
color: #211e1a;
font-size: 38rpx;
font-weight: 800;
}
.week-bars {
display: flex;
flex-direction: column;
gap: 6rpx;
margin-top: 12rpx;
min-height: 22rpx;
}
.week-bars.empty {
min-height: 22rpx;
}
.week-bar {
position: relative;
height: 8rpx;
border-radius: 999rpx;
}
.week-grid {
margin-top: 18rpx;
padding: 20rpx;
@@ -528,8 +519,6 @@
font-weight: 700;
}
.week-bar.is-completed::after,
.week-bar.is-cancelled::after,
.week-count-bar.is-completed::after,
.week-count-bar.is-cancelled::after,
.month-order-block.is-completed::after,
@@ -548,8 +537,6 @@
pointer-events: none;
}
.week-bar.is-completed::before,
.week-bar.is-cancelled::before,
.week-count-bar.is-completed::before,
.week-count-bar.is-cancelled::before,
.month-order-block.is-completed::before,
@@ -568,14 +555,12 @@
pointer-events: none;
}
.week-bar.is-completed::before,
.week-count-bar.is-completed::before,
.month-order-block.is-completed::before,
.month-row-block.is-completed::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%2345825b' stroke-opacity='.9' stroke-width='2' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.week-bar.is-cancelled::before,
.week-count-bar.is-cancelled::before,
.month-order-block.is-cancelled::before,
.month-row-block.is-cancelled::before {
@@ -587,9 +572,9 @@
}
.month-toolbar {
display: flex;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
justify-content: space-between;
gap: 8rpx;
margin-bottom: 14rpx;
padding: 0 4rpx;
@@ -603,6 +588,7 @@
.month-mode-switch {
display: inline-flex;
justify-self: center;
gap: 6rpx;
padding: 6rpx;
border-radius: 999rpx;
@@ -633,6 +619,7 @@
.row-name-switch {
display: inline-flex;
align-items: center;
justify-self: end;
gap: 8rpx;
height: 44rpx;
padding: 0 10rpx;
@@ -728,6 +715,15 @@
background: #fff8f6;
}
.month-cell.today {
background: #fff3dc;
box-shadow: inset 0 0 0 3rpx #e1b76a;
}
.month-cell.today.selected {
background: #ffefd2;
}
.month-cell-head {
display: flex;
align-items: center;
@@ -1094,6 +1090,46 @@
line-height: 88rpx;
}
.planning-loading-mask {
position: fixed;
inset: 0;
z-index: 140;
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
background: rgba(36, 30, 24, 0.34);
animation: pageFadeIn 160ms ease both;
}
.planning-loading-card {
display: flex;
min-width: 248rpx;
min-height: 168rpx;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 22rpx;
padding: 32rpx 36rpx;
border: 1rpx solid rgba(255, 255, 255, 0.78);
border-radius: 20rpx;
background: rgba(255, 253, 248, 0.96);
color: #3d352f;
font-size: 26rpx;
font-weight: 900;
box-shadow: 0 24rpx 54rpx rgba(41, 31, 23, 0.2);
animation: emptyDateSheetIn 180ms ease both;
}
.planning-loading-spinner {
width: 54rpx;
height: 54rpx;
border: 6rpx solid #dfe8e2;
border-top-color: #6f8f83;
border-radius: 50%;
animation: planningSpinnerRotate 0.78s linear infinite;
}
@keyframes pageFadeIn {
from {
opacity: 0;
@@ -1115,3 +1151,12 @@
transform: translateY(0);
}
}
@keyframes planningSpinnerRotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}