From ba74d094cd31762475ee37a634dae9b304055463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= Date: Sat, 12 Sep 2026 00:44:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(love):=20=E6=81=8B=E7=88=B1=E8=A7=A3?= =?UTF-8?q?=E9=94=81=E5=BC=B9=E7=AA=97=E9=80=9A=E7=94=A8=E5=8C=96,?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=20token=20=E5=A4=B1=E6=95=88=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E4=B8=8E=E6=A8=A1=E5=9D=97=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types/uni-halo.ts | 7 + .../uh-unlock-popup/uh-unlock-popup.vue | 200 ++++++++++++++++++ src/config/appConfig.ts | 1 + src/pages-blog/love/album.vue | 65 ++++-- src/pages-blog/love/list.vue | 68 ++++-- src/pages-blog/love/love.vue | 136 ++++++------ src/pages-blog/love/stories.vue | 76 ++++++- src/store/appConfig.ts | 10 +- src/utils/loveModuleToken.ts | 13 +- 9 files changed, 453 insertions(+), 123 deletions(-) create mode 100644 src/components/uh-unlock-popup/uh-unlock-popup.vue diff --git a/src/api/types/uni-halo.ts b/src/api/types/uni-halo.ts index 96cb1e7..b18eda6 100644 --- a/src/api/types/uni-halo.ts +++ b/src/api/types/uni-halo.ts @@ -112,6 +112,13 @@ export interface IPageConfig { categoryConfig?: { type?: string } momentConfig?: { useTagRandomColor?: boolean } galleryConfig?: { pageTitle?: string } + /** 恋爱日记页(插件端「通用配置 → 页面设置 → 恋爱日记」配置; + * 2026-09-11 起恋爱页背景图由 loveConfig.pageImages 迁入此处) */ + loveDiaryConfig?: { + pageTitle?: string + /** 恋爱页背景图(留空客户端内置回退) */ + bgImageUrl?: string + } aboutConfig?: { bgImageUrl?: string waveImageUrl?: string diff --git a/src/components/uh-unlock-popup/uh-unlock-popup.vue b/src/components/uh-unlock-popup/uh-unlock-popup.vue new file mode 100644 index 0000000..b042447 --- /dev/null +++ b/src/components/uh-unlock-popup/uh-unlock-popup.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/config/appConfig.ts b/src/config/appConfig.ts index 872b40f..799ae14 100644 --- a/src/config/appConfig.ts +++ b/src/config/appConfig.ts @@ -20,6 +20,7 @@ export const DefaultAppConfigs: IAppConfig = { momentConfig: { useTagRandomColor: true, }, + loveDiaryConfig: {}, }, auditConfig: { auditModeEnabled: false, diff --git a/src/pages-blog/love/album.vue b/src/pages-blog/love/album.vue index c7e510f..c6fa0fa 100644 --- a/src/pages-blog/love/album.vue +++ b/src/pages-blog/love/album.vue @@ -1,12 +1,13 @@