From 479c5175ecd4e9e1027baf6ae885f0d24a06766c Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Wed, 27 May 2026 22:17:57 +0800 Subject: [PATCH] refactor(goods): clean up components, update imports and add album page - replace scoped SCSS styles with inline utility classes for goods components - move LocationCard to goods subdirectory and update relative imports - fix DebounceUtils import path in FooterSection - update goods index page: replace scroll wrapper, switch to vue-router composable, replace uni modal with vant showDialog - add new album page component - remove unused PNG assets, old README and deprecated style files - update global type declarations for vant showDialog --- auto-imports.d.ts | 1 + src/components/LocationCard/index.vue | 80 ------ src/components/LocationCard/styles/index.scss | 56 ---- src/pages/{goods => }/album/index.vue | 0 .../goods/components/DateSelector/index.vue | 30 +-- .../components/DateSelector/styles/index.scss | 64 ----- .../goods/components/GoodFacility/index.vue | 27 +- src/pages/goods/components/GoodInfo/README.md | 255 ------------------ .../components/GoodInfo/images/商品详情.png | Bin 35513 -> 0 bytes src/pages/goods/components/GoodInfo/index.vue | 35 ++- .../components/GoodInfo/styles/index.scss | 35 --- .../goods/components/GoodPackage/index.vue | 28 +- .../components/GoodPackage/styles/index.scss | 20 -- .../goods/components/LocationCard/index.vue | 53 ++++ src/pages/goods/images/商品详情.png | Bin 599169 -> 0 bytes src/pages/goods/index.vue | 41 +-- .../order/components/FooterSection/index.vue | 2 +- 17 files changed, 133 insertions(+), 594 deletions(-) delete mode 100644 src/components/LocationCard/index.vue delete mode 100644 src/components/LocationCard/styles/index.scss rename src/pages/{goods => }/album/index.vue (100%) delete mode 100644 src/pages/goods/components/DateSelector/styles/index.scss delete mode 100644 src/pages/goods/components/GoodInfo/README.md delete mode 100644 src/pages/goods/components/GoodInfo/images/商品详情.png delete mode 100644 src/pages/goods/components/GoodPackage/styles/index.scss create mode 100644 src/pages/goods/components/LocationCard/index.vue delete mode 100644 src/pages/goods/images/商品详情.png diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 17379a7..bc31225 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,5 +6,6 @@ // biome-ignore lint: disable export {} declare global { + const showDialog: typeof import('vant/es').showDialog const showToast: typeof import('vant/es').showToast } diff --git a/src/components/LocationCard/index.vue b/src/components/LocationCard/index.vue deleted file mode 100644 index 56866ac..0000000 --- a/src/components/LocationCard/index.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - - diff --git a/src/components/LocationCard/styles/index.scss b/src/components/LocationCard/styles/index.scss deleted file mode 100644 index 15285c6..0000000 --- a/src/components/LocationCard/styles/index.scss +++ /dev/null @@ -1,56 +0,0 @@ -.store-address { - display: flex; - align-items: center; - margin-top: 12px; - padding: 12px; - background-color: #ffffff; - border-top: 1px solid #e0e0e0; - - // 左侧文本容器 - .text-container { - display: flex; - flex-direction: column; - flex: 1; - } - - .location-label { - color: $text-color-800; - font-size: 14px; - font-weight: 500; - } - - .address-text { - margin-top: 4px; - color: $text-color-600; - font-size: 12px; - font-weight: 400; - } - - // 右侧操作按钮组 - .actions { - display: flex; - align-items: center; - gap: 10px; - margin-left: 16px; - } - - .actions-btn { - width: 28px; - height: 28px; - border-radius: 10px; - background-color: #f5f5f5; - display: flex; - align-items: center; - justify-content: center; - } - - .actions-icon { - font-size: 16px; - line-height: 16px; - } - - .actions-text { - font-size: 12px; - color: $text-color-600; - } -} diff --git a/src/pages/goods/album/index.vue b/src/pages/album/index.vue similarity index 100% rename from src/pages/goods/album/index.vue rename to src/pages/album/index.vue diff --git a/src/pages/goods/components/DateSelector/index.vue b/src/pages/goods/components/DateSelector/index.vue index 766d928..3192bb5 100644 --- a/src/pages/goods/components/DateSelector/index.vue +++ b/src/pages/goods/components/DateSelector/index.vue @@ -1,25 +1,25 @@