From 441e321fdccdfa487d75925a73706be91c489f81 Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Mon, 26 Oct 2026 16:40:00 +0800 Subject: [PATCH] feat: refine installation fee card units and action --- .../installation-fee-summary.blade.php | 129 ++++++++++++------ tests/Feature/Business/ManagementCrudTest.php | 6 +- 2 files changed, 95 insertions(+), 40 deletions(-) diff --git a/resources/views/business/pages/partials/installation-fee-summary.blade.php b/resources/views/business/pages/partials/installation-fee-summary.blade.php index e2b29237..383db060 100644 --- a/resources/views/business/pages/partials/installation-fee-summary.blade.php +++ b/resources/views/business/pages/partials/installation-fee-summary.blade.php @@ -18,21 +18,8 @@ background: #ffffff; color: #171717; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); - font: inherit; + font-family: "JetBrains Mono", "Microsoft YaHei", "PingFang SC", monospace; text-align: left; - cursor: pointer; - } - - .installation-fee-card:hover, - .installation-fee-card:focus-visible { - border-color: #b9954f; - border-left-color: #006395; - background: #fffdf8; - outline: none; - } - - .installation-fee-card:focus-visible { - box-shadow: 0 0 0 3px rgba(133, 102, 50, 0.2); } .installation-fee-card__top { @@ -75,7 +62,7 @@ font-size: 2.5rem; font-weight: 700; line-height: 1; - letter-spacing: -0.035em; + letter-spacing: 0; font-variant-numeric: tabular-nums; } @@ -110,6 +97,7 @@ .installation-fee-card__split { display: flex; align-items: center; + justify-content: space-between; gap: 0.45rem; flex-wrap: wrap; margin: auto -1rem 0 -1.15rem; @@ -121,6 +109,14 @@ font-variant-numeric: tabular-nums; } + .installation-fee-card__split-summary { + display: flex; + min-width: 0; + align-items: center; + gap: 0.45rem; + flex-wrap: wrap; + } + .installation-fee-card__split strong { font-weight: 600; } @@ -136,6 +132,35 @@ font-weight: 400; } + .installation-fee-card__detail-button { + display: inline-flex; + min-height: 1.55rem; + align-items: center; + justify-content: center; + gap: 0.25rem; + margin-left: auto; + padding: 0 0.45rem; + border: 0; + border-radius: 0.3rem; + background: transparent; + color: #006395; + cursor: pointer; + font: inherit; + font-size: 0.75rem; + font-weight: 600; + white-space: nowrap; + } + + .installation-fee-card__detail-button:hover { + background: #eef6fa; + } + + .installation-fee-card__detail-button:focus-visible { + background: #eef6fa; + box-shadow: 0 0 0 3px rgba(0, 99, 149, 0.16); + outline: none; + } + @media (max-width: 720px) { .installation-fee-card { height: auto; @@ -162,6 +187,10 @@ padding-right: 0.85rem; padding-left: 0.95rem; } + .installation-fee-card__detail-button { + width: 100%; + justify-content: flex-end; + } } .installation-fee-dialog { @@ -362,13 +391,9 @@
- - +
@@ -462,9 +496,10 @@