From df844bae116a89eec89dcd94474afb12db43a1c7 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 23 Oct 2025 18:46:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E7=89=87=E7=9B=B8=E5=86=8C?= =?UTF-8?q?=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,