调整预约状态斜杠方向

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:hover { transform: translateY(-2px); border-color: var(--theme-primary); }
.appointment-block.is-completed { background: #f5fff7; border-color: #c8ead1; } .appointment-block.is-completed { background: #f5fff7; border-color: #c8ead1; }
.appointment-block.is-cancelled { background: #fff5f6; border-color: #e8c7cc; } .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, .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 { border-color: rgba(69, 130, 91, 0.78); } .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 { border-color: rgba(198, 78, 91, 0.8); } .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 .time { color: var(--theme-primary); font-weight: 700; }
.appointment-block small { color: var(--text-secondary); } .appointment-block small { color: var(--text-secondary); }
.detail-body { display: grid; gap: 18px; } .detail-body { display: grid; gap: 18px; }
@@ -21,21 +21,21 @@
.appointment-card.is-cancelled::after { .appointment-card.is-cancelled::after {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 0;
right: 20rpx; right: 0;
left: 20rpx; bottom: 0;
border-top: 5rpx solid; left: 0;
transform: rotate(-10deg); background-repeat: no-repeat;
transform-origin: center; background-size: 100% 100%;
pointer-events: none; pointer-events: none;
} }
.appointment-card.is-completed::after { .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 { .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 { .day-box {
+14 -22
View File
@@ -810,23 +810,20 @@ onMounted(() => {
.week-day-card.is-cancelled::after { .week-day-card.is-cancelled::after {
content: ""; content: "";
position: absolute; position: absolute;
right: 8px; inset: 0;
left: 8px; background-repeat: no-repeat;
top: 50%; background-size: 100% 100%;
border-top: 3px solid;
pointer-events: none; pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
} }
.appointment-block.is-completed::after, .appointment-block.is-completed::after,
.week-day-card.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, .appointment-block.is-cancelled::after,
.week-day-card.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, .appointment-block strong,
@@ -938,13 +935,11 @@ onMounted(() => {
.month-blocks span.is-cancelled::after { .month-blocks span.is-cancelled::after {
content: ""; content: "";
position: absolute; position: absolute;
right: 3px; inset: 0;
left: 3px; 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");
top: 50%; background-repeat: no-repeat;
border-top: 2px solid rgba(255, 255, 255, 0.92); background-size: 100% 100%;
pointer-events: none; pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
} }
.week-count-bar.is-completed::before, .week-count-bar.is-completed::before,
@@ -955,26 +950,23 @@ onMounted(() => {
.month-blocks span.is-cancelled::before { .month-blocks span.is-cancelled::before {
content: ""; content: "";
position: absolute; position: absolute;
right: 3px; inset: 0;
left: 3px; background-repeat: no-repeat;
top: 50%; background-size: 100% 100%;
border-top: 1px solid;
pointer-events: none; pointer-events: none;
transform: rotate(-15deg);
transform-origin: center;
z-index: 1; z-index: 1;
} }
.week-count-bar.is-completed::before, .week-count-bar.is-completed::before,
.month-bars span.is-completed::before, .month-bars span.is-completed::before,
.month-blocks 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, .week-count-bar.is-cancelled::before,
.month-bars span.is-cancelled::before, .month-bars span.is-cancelled::before,
.month-blocks 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 { .month-toolbar {
+23 -22
View File
@@ -323,23 +323,23 @@
.week-day-card.is-cancelled::after { .week-day-card.is-cancelled::after {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 0;
right: 14rpx; right: 0;
left: 14rpx; bottom: 0;
border-top: 5rpx solid; left: 0;
transform: rotate(-15deg); background-repeat: no-repeat;
transform-origin: center; background-size: 100% 100%;
pointer-events: none; pointer-events: none;
} }
.appointment-block.is-completed::after, .appointment-block.is-completed::after,
.week-day-card.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, .appointment-block.is-cancelled::after,
.week-day-card.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 { .block-title {
@@ -493,12 +493,13 @@
.month-row-block.is-cancelled::after { .month-row-block.is-cancelled::after {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 0;
right: 4rpx; right: 0;
left: 4rpx; bottom: 0;
border-top: 3rpx solid rgba(255, 255, 255, 0.92); left: 0;
transform: rotate(-15deg); 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");
transform-origin: center; background-repeat: no-repeat;
background-size: 100% 100%;
pointer-events: none; pointer-events: none;
} }
@@ -514,13 +515,13 @@
.month-row-block.is-cancelled::before { .month-row-block.is-cancelled::before {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 0;
right: 4rpx; right: 0;
left: 4rpx; bottom: 0;
left: 0;
z-index: 1; z-index: 1;
border-top: 2rpx solid; background-repeat: no-repeat;
transform: rotate(-15deg); background-size: 100% 100%;
transform-origin: center;
pointer-events: none; pointer-events: none;
} }
@@ -529,7 +530,7 @@
.month-artist-bar.is-completed::before, .month-artist-bar.is-completed::before,
.month-order-block.is-completed::before, .month-order-block.is-completed::before,
.month-row-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, .week-bar.is-cancelled::before,
@@ -537,7 +538,7 @@
.month-artist-bar.is-cancelled::before, .month-artist-bar.is-cancelled::before,
.month-order-block.is-cancelled::before, .month-order-block.is-cancelled::before,
.month-row-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 { .month-card {