From 5ca375f14bc9ee80691e4863785d2b35c0f9757f Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Sun, 12 Jul 2026 12:13:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A2=84=E7=BA=A6=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=96=9C=E6=9D=A0=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/ArtistCalendarView.vue | 6 +-- .../pages/artist-calendar/index.wxss | 16 +++---- JY-Salon-Front/src/views/PlanningView.vue | 36 ++++++--------- JY-Salon-WeChat/pages/planning/index.wxss | 45 ++++++++++--------- 4 files changed, 48 insertions(+), 55 deletions(-) diff --git a/JY-Artist-Frontend/src/views/ArtistCalendarView.vue b/JY-Artist-Frontend/src/views/ArtistCalendarView.vue index 940cfa01..a8cb4e2f 100644 --- a/JY-Artist-Frontend/src/views/ArtistCalendarView.vue +++ b/JY-Artist-Frontend/src/views/ArtistCalendarView.vue @@ -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; } diff --git a/JY-Artist-WeChat/pages/artist-calendar/index.wxss b/JY-Artist-WeChat/pages/artist-calendar/index.wxss index 4757c4d6..e92e8f5b 100644 --- a/JY-Artist-WeChat/pages/artist-calendar/index.wxss +++ b/JY-Artist-WeChat/pages/artist-calendar/index.wxss @@ -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 { diff --git a/JY-Salon-Front/src/views/PlanningView.vue b/JY-Salon-Front/src/views/PlanningView.vue index 8aa7e5b3..51e8a78c 100644 --- a/JY-Salon-Front/src/views/PlanningView.vue +++ b/JY-Salon-Front/src/views/PlanningView.vue @@ -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 { diff --git a/JY-Salon-WeChat/pages/planning/index.wxss b/JY-Salon-WeChat/pages/planning/index.wxss index 91ebac3e..1f2e0935 100644 --- a/JY-Salon-WeChat/pages/planning/index.wxss +++ b/JY-Salon-WeChat/pages/planning/index.wxss @@ -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 {