调整预约状态斜杠方向

This commit is contained in:
2026-07-12 12:13:20 +08:00
parent 58498db422
commit 5ca375f14b
4 changed files with 48 additions and 55 deletions
@@ -275,9 +275,9 @@ onMounted(loadAppointments)
.appointment-block:hover { transform: translateY(-2px); border-color: var(--theme-primary); }
.appointment-block.is-completed { background: #f5fff7; border-color: #c8ead1; }
.appointment-block.is-cancelled { background: #fff5f6; border-color: #e8c7cc; }
.appointment-block.is-completed::after, .appointment-block.is-cancelled::after { content: ""; position: absolute; right: 10px; left: 10px; top: 50%; border-top: 3px solid; pointer-events: none; transform: rotate(-10deg); transform-origin: center; }
.appointment-block.is-completed::after { border-color: rgba(69, 130, 91, 0.78); }
.appointment-block.is-cancelled::after { border-color: rgba(198, 78, 91, 0.8); }
.appointment-block.is-completed::after, .appointment-block.is-cancelled::after { content: ""; position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.appointment-block.is-completed::after { 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='.78' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.appointment-block.is-cancelled::after { 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='%23c64e5b' stroke-opacity='.8' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.appointment-block .time { color: var(--theme-primary); font-weight: 700; }
.appointment-block small { color: var(--text-secondary); }
.detail-body { display: grid; gap: 18px; }
@@ -21,21 +21,21 @@
.appointment-card.is-cancelled::after {
content: "";
position: absolute;
top: 50%;
right: 20rpx;
left: 20rpx;
border-top: 5rpx solid;
transform: rotate(-10deg);
transform-origin: center;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
}
.appointment-card.is-completed::after {
border-color: rgba(69, 130, 91, 0.78);
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='.78' stroke-width='5' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.appointment-card.is-cancelled::after {
border-color: rgba(198, 78, 91, 0.8);
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='%23c64e5b' stroke-opacity='.8' stroke-width='5' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.day-box {
+14 -22
View File
@@ -810,23 +810,20 @@ onMounted(() => {
.week-day-card.is-cancelled::after {
content: "";
position: absolute;
right: 8px;
left: 8px;
top: 50%;
border-top: 3px solid;
inset: 0;
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
}
.appointment-block.is-completed::after,
.week-day-card.is-completed::after {
border-color: rgba(69, 130, 91, 0.78);
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='.78' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.appointment-block.is-cancelled::after,
.week-day-card.is-cancelled::after {
border-color: rgba(198, 78, 91, 0.8);
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='%23c64e5b' stroke-opacity='.8' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.appointment-block strong,
@@ -938,13 +935,11 @@ onMounted(() => {
.month-blocks span.is-cancelled::after {
content: "";
position: absolute;
right: 3px;
left: 3px;
top: 50%;
border-top: 2px solid rgba(255, 255, 255, 0.92);
inset: 0;
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='%23ffffff' stroke-opacity='.92' stroke-width='2' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
}
.week-count-bar.is-completed::before,
@@ -955,26 +950,23 @@ onMounted(() => {
.month-blocks span.is-cancelled::before {
content: "";
position: absolute;
right: 3px;
left: 3px;
top: 50%;
border-top: 1px solid;
inset: 0;
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
z-index: 1;
}
.week-count-bar.is-completed::before,
.month-bars span.is-completed::before,
.month-blocks span.is-completed::before {
border-color: rgba(69, 130, 91, 0.9);
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='1' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.week-count-bar.is-cancelled::before,
.month-bars span.is-cancelled::before,
.month-blocks span.is-cancelled::before {
border-color: rgba(198, 78, 91, 0.92);
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='%23c64e5b' stroke-opacity='.92' stroke-width='1' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.month-toolbar {
+23 -22
View File
@@ -323,23 +323,23 @@
.week-day-card.is-cancelled::after {
content: "";
position: absolute;
top: 50%;
right: 14rpx;
left: 14rpx;
border-top: 5rpx solid;
transform: rotate(-15deg);
transform-origin: center;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
}
.appointment-block.is-completed::after,
.week-day-card.is-completed::after {
border-color: rgba(69, 130, 91, 0.78);
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='.78' stroke-width='5' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.appointment-block.is-cancelled::after,
.week-day-card.is-cancelled::after {
border-color: rgba(198, 78, 91, 0.8);
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='%23c64e5b' stroke-opacity='.8' stroke-width='5' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.block-title {
@@ -493,12 +493,13 @@
.month-row-block.is-cancelled::after {
content: "";
position: absolute;
top: 50%;
right: 4rpx;
left: 4rpx;
border-top: 3rpx solid rgba(255, 255, 255, 0.92);
transform: rotate(-15deg);
transform-origin: center;
top: 0;
right: 0;
bottom: 0;
left: 0;
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='%23ffffff' stroke-opacity='.92' stroke-width='3' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
}
@@ -514,13 +515,13 @@
.month-row-block.is-cancelled::before {
content: "";
position: absolute;
top: 50%;
right: 4rpx;
left: 4rpx;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
border-top: 2rpx solid;
transform: rotate(-15deg);
transform-origin: center;
background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none;
}
@@ -529,7 +530,7 @@
.month-artist-bar.is-completed::before,
.month-order-block.is-completed::before,
.month-row-block.is-completed::before {
border-color: rgba(69, 130, 91, 0.9);
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,
@@ -537,7 +538,7 @@
.month-artist-bar.is-cancelled::before,
.month-order-block.is-cancelled::before,
.month-row-block.is-cancelled::before {
border-color: rgba(198, 78, 91, 0.92);
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='%23c64e5b' stroke-opacity='.92' stroke-width='2' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.month-card {