From df844bae116a89eec89dcd94474afb12db43a1c7 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 23 Oct 2025 18:46:47 +0800 Subject: [PATCH 1/9] =?UTF-8?q?feat:=20=E5=9B=BE=E7=89=87=E7=9B=B8?= =?UTF-8?q?=E5=86=8C=E4=B8=8E=E5=9B=BE=E7=89=87=E6=B5=8F=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageSwiper/index.vue | 11 +++- src/pages.json | 6 ++ src/pages/goods/album/index.vue | 87 ++++++++++++++++++++++++++++ src/static/scss/background.scss | 4 ++ src/static/scss/overflow.scss | 4 ++ src/static/scss/padding.scss | 8 +++ src/store/modules/app.js | 10 +++- 7 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 src/pages/goods/album/index.vue diff --git a/src/components/ImageSwiper/index.vue b/src/components/ImageSwiper/index.vue index 872bf4a..fe7edf9 100644 --- a/src/components/ImageSwiper/index.vue +++ b/src/components/ImageSwiper/index.vue @@ -52,7 +52,7 @@ - + {{ zniconsMap["zn-camera"] }} @@ -68,6 +68,8 @@ diff --git a/src/static/scss/background.scss b/src/static/scss/background.scss index aae9d34..31bd2d4 100644 --- a/src/static/scss/background.scss +++ b/src/static/scss/background.scss @@ -37,3 +37,7 @@ .bg-button { background: linear-gradient(90deg, #2d91ff 0%, #4de4ff 100%); } + +.bg-transparent { + background-color: transparent; +} diff --git a/src/static/scss/overflow.scss b/src/static/scss/overflow.scss index bd67572..c440df7 100644 --- a/src/static/scss/overflow.scss +++ b/src/static/scss/overflow.scss @@ -2,3 +2,7 @@ .overflow-hidden { overflow: hidden; } + +.overflow-auto { + overflow: auto; +} diff --git a/src/static/scss/padding.scss b/src/static/scss/padding.scss index 45fef9c..2834468 100644 --- a/src/static/scss/padding.scss +++ b/src/static/scss/padding.scss @@ -103,6 +103,14 @@ padding: 24px; } +.pt-24 { + padding-top: 24px; +} + +.pb-24 { + padding-bottom: 24px; +} + .pb-safe-area { padding-bottom: Max(env(safe-area-inset-bottom), 12px); } diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 622c0c7..440fefc 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -4,9 +4,10 @@ export const useAppStore = defineStore("app", { state() { return { title: "", - sceneId: "", - hasToken: false, - tokenExpired: false, + sceneId: "", /// 分身场景id + hasToken: false, /// 是否有token + tokenExpired: false, /// token是否过期 + previewImageData: [], /// 预览图片数据 }; }, getters: {}, @@ -24,6 +25,9 @@ export const useAppStore = defineStore("app", { setTokenExpired(status) { this.tokenExpired = status; }, + setPreviewImageData(data) { + this.previewImageData = data; + }, }, unistorage: true, From f73a92ec11cd65ea50dcd13d2a5686da867e27f7 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 23 Oct 2025 19:46:26 +0800 Subject: [PATCH 2/9] =?UTF-8?q?feat:=20=E5=9B=BE=E7=89=87=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E7=9A=84=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageSwiper/styles/index.scss | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/ImageSwiper/styles/index.scss b/src/components/ImageSwiper/styles/index.scss index 66e0eb9..ecf2fc1 100644 --- a/src/components/ImageSwiper/styles/index.scss +++ b/src/components/ImageSwiper/styles/index.scss @@ -25,6 +25,9 @@ display: flex; align-items: flex-end; flex-direction: row; + flex-wrap: nowrap; + max-width: 100%; + box-sizing: border-box; } .custom-indicator { @@ -32,6 +35,11 @@ background: rgba(0, 0, 0, 0.5); border-radius: $uni-border-radius-50px; padding: 0 6px 4px 8px; + display: inline-flex; + align-items: center; + flex: 0 0 auto; + flex-shrink: 0; + white-space: nowrap; } .custom-indicator-text { @@ -43,7 +51,9 @@ } .thumbnail-scroll { - flex: 1; + flex: 1 1 auto; + min-width: 0; // 允许在flex容器中收缩以适配剩余空间 + overflow: auto; // 防止超出thumbnail-box的宽度 height: 100%; white-space: nowrap; } @@ -71,7 +81,7 @@ height: 36px; border-radius: 8px; box-sizing: border-box; - border: 2px solid transparent; + border: 1px solid #171717; transition: all 0.3s ease; display: block; } From 40647ead8392b17c56d010031635f3b2505faf66 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 23 Oct 2025 19:51:16 +0800 Subject: [PATCH 3/9] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index/components/module/DetailCardCompontent/index.vue | 2 +- src/pages/index/components/module/RecommendPostsList/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index/components/module/DetailCardCompontent/index.vue b/src/pages/index/components/module/DetailCardCompontent/index.vue index 4d91458..d707896 100644 --- a/src/pages/index/components/module/DetailCardCompontent/index.vue +++ b/src/pages/index/components/module/DetailCardCompontent/index.vue @@ -2,7 +2,7 @@