From 8510b71ff62b9a5852dcf5daa78ff96bf740c7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= Date: Fri, 12 Jun 2026 22:30:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=9E=AC=E9=97=B4?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E3=80=81=E9=80=9A=E7=94=A8=E9=98=B4=E5=BD=B1?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增通用阴影样式工具类并引入全局样式 2. 新增moments瞬间页面并修改首页跳转指向 3. 为页面模板和瞬间页面添加下拉刷新、页面滚动等配置 4. 为halo瞬间api添加isHalo请求元信息 5. 优化links页面布局样式 --- src/api/halo-plugin/moment.ts | 9 +- .../page-template/page-template.vue | 39 +++++ src/pages/index/index.vue | 2 +- src/pages/links/links.vue | 2 +- src/pages/moments/moments.vue | 143 +++++++++++++++++- src/style/index.scss | 1 + src/style/uh-styles.css | 11 ++ 7 files changed, 202 insertions(+), 5 deletions(-) create mode 100644 src/style/uh-styles.css diff --git a/src/api/halo-plugin/moment.ts b/src/api/halo-plugin/moment.ts index b9b74a4..3202fb9 100644 --- a/src/api/halo-plugin/moment.ts +++ b/src/api/halo-plugin/moment.ts @@ -10,6 +10,9 @@ const EndpointBase = '/apis/api.moment.halo.run/v1alpha1/moments' export function queryMoments(params: any) { return http.Get(`${EndpointBase}`, { params, + meta: { + isHalo: true, + }, }) } @@ -19,5 +22,9 @@ export function queryMoments(params: any) { * @returns 获取瞬间详情响应参数 */ export function queryMomentByName(name: string) { - return http.Get(`${EndpointBase}/${name}`, {}) + return http.Get(`${EndpointBase}/${name}`, { + meta: { + isHalo: true, + }, + }) } diff --git a/src/pages-blog/page-template/page-template.vue b/src/pages-blog/page-template/page-template.vue index 7835ce2..beaaa87 100644 --- a/src/pages-blog/page-template/page-template.vue +++ b/src/pages-blog/page-template/page-template.vue @@ -1,4 +1,6 @@