From 6e227ff4411b326d7c92bde9b488b01c7c0795e2 Mon Sep 17 00:00:00 2001 From: DEV_DSW <562304744@qq.com> Date: Fri, 29 May 2026 10:14:06 +0800 Subject: [PATCH] style(home-components): update tailwind classes and clean up code - replace legacy tailwind shorthand classes with modern bracket notation - remove unused CSS styles and imports from SharedVisual components - remove unused `mode` prop from MediaFrame.vue - fix trailing newline in shared stylesheet --- .../components/LongTextGuideCard/index.vue | 2 +- .../components/OpenMapComponent/index.vue | 2 +- .../home/components/RoutePlanCard/index.vue | 2 +- .../components/SharedVisual/MediaFrame.vue | 14 +++-------- .../components/SharedVisual/styles/index.scss | 23 ++++--------------- 5 files changed, 10 insertions(+), 33 deletions(-) diff --git a/src/pages/home/components/LongTextGuideCard/index.vue b/src/pages/home/components/LongTextGuideCard/index.vue index 0e3e373..9a52922 100644 --- a/src/pages/home/components/LongTextGuideCard/index.vue +++ b/src/pages/home/components/LongTextGuideCard/index.vue @@ -75,7 +75,7 @@
{{ activeItem.action.label }}
-
+
diff --git a/src/pages/home/components/OpenMapComponent/index.vue b/src/pages/home/components/OpenMapComponent/index.vue index c72cde8..57e8570 100644 --- a/src/pages/home/components/OpenMapComponent/index.vue +++ b/src/pages/home/components/OpenMapComponent/index.vue @@ -3,7 +3,7 @@
-
+
diff --git a/src/pages/home/components/RoutePlanCard/index.vue b/src/pages/home/components/RoutePlanCard/index.vue index 9132daf..486bb15 100644 --- a/src/pages/home/components/RoutePlanCard/index.vue +++ b/src/pages/home/components/RoutePlanCard/index.vue @@ -108,7 +108,7 @@ const tips = computed(() => detail.value.tips || []); const getTagClass = (tone) => { if (tone === "green") return "color-047857 bg-ECFDF5"; - return "color-64748B bg-F1F5F9"; + return "color-64748B bg-[#f1f5f9]"; }; const openDetail = () => { diff --git a/src/pages/home/components/SharedVisual/MediaFrame.vue b/src/pages/home/components/SharedVisual/MediaFrame.vue index d3a21ea..1cf0c2f 100644 --- a/src/pages/home/components/SharedVisual/MediaFrame.vue +++ b/src/pages/home/components/SharedVisual/MediaFrame.vue @@ -1,7 +1,7 @@ @@ -12,17 +12,9 @@ defineProps({ type: String, default: "", }, - mode: { - type: String, - default: "aspectFill", - }, rounded: { type: Boolean, default: true, }, }); - - diff --git a/src/pages/home/components/SharedVisual/styles/index.scss b/src/pages/home/components/SharedVisual/styles/index.scss index 63c771c..a7c948f 100644 --- a/src/pages/home/components/SharedVisual/styles/index.scss +++ b/src/pages/home/components/SharedVisual/styles/index.scss @@ -62,18 +62,6 @@ background: #f5f3ff; } -.visual-media { -} - -.visual-media__image, -.visual-media__empty { -} - -.visual-media__empty { - min-height: 96px; - background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); -} - .visual-detail__header { min-height: 48px; } @@ -89,11 +77,9 @@ min-width: 0; } -.visual-action-row { -} +.visual-action-row {} -.visual-action-row__icon { -} +.visual-action-row__icon {} .visual-action-row__icon--green { color: #047857; @@ -119,8 +105,7 @@ min-width: 0; } -.visual-action-row__title { -} +.visual-action-row__title {} .visual-action-row__subtitle { margin-top: 4px; @@ -131,4 +116,4 @@ .visual-action-row__arrow { font-size: 24px; -} +} \ No newline at end of file