From 5349c734ca888b0362b832ce05fd6f4a0fc1b58a Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 15:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=98=AF=E5=90=A6=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/memorial/memorial.js | 11 ++++++ pages/memorial/memorialHall.vue | 62 ++++++++++++++++++++++++--------- 2 files changed, 56 insertions(+), 17 deletions(-) diff --git a/api/memorial/memorial.js b/api/memorial/memorial.js index b80e449..6dd5ba5 100644 --- a/api/memorial/memorial.js +++ b/api/memorial/memorial.js @@ -40,6 +40,17 @@ export function collectMemorial(data) { }) } +// 检查是否已收藏 +export function checkIsCollected(memorialId) { + return request({ + url: '/app/collect/isCollect', + method: 'get', + params: { + memorialId: memorialId, + }, + }) +} + // // 收藏牌位 (使用 form-data 格式,可选) // export function collectMemorialFormData(data) { // return request({ diff --git a/pages/memorial/memorialHall.vue b/pages/memorial/memorialHall.vue index 4b41646..3e41f9f 100644 --- a/pages/memorial/memorialHall.vue +++ b/pages/memorial/memorialHall.vue @@ -124,7 +124,9 @@