From 1e2179eed8e28ad2d3b0ef675a1f4c10a37bcbbb Mon Sep 17 00:00:00 2001 From: minimaxagent1 Date: Mon, 11 Aug 2025 10:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=80=E7=94=9F=E5=A4=A7=E6=AE=BF=E9=80=9D?= =?UTF-8?q?=E8=80=85=E8=AE=B0=E5=BD=953.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/memorial/index.js | 16 +++++ pages.json | 4 +- pages/memorial/memorialHall.vue | 123 +++++++++++++++++++------------- 3 files changed, 91 insertions(+), 52 deletions(-) diff --git a/api/memorial/index.js b/api/memorial/index.js index 47881af..cecf401 100644 --- a/api/memorial/index.js +++ b/api/memorial/index.js @@ -83,4 +83,20 @@ export function getMemorialTree() { return get('/app/memorial/listTree', {}, { showLoading: false }) +} + +/** + * 获取往生者列表 + * @param {Object} params - 查询参数 + * @param {string} params.memorialId - 往生殿ID + * @param {number} params.pageNum - 页码 + * @param {number} params.pageSize - 每页数量 + * @param {string} params.keyword - 搜索关键词 + * @returns {Promise} 返回往生者列表数据 + */ +export function getDeceasedList(params) { + return get('/app/deceased/list', params, { + timeout: 10000, + showLoading: false + }) } \ No newline at end of file diff --git a/pages.json b/pages.json index ee8dd46..f82aca9 100644 --- a/pages.json +++ b/pages.json @@ -151,7 +151,9 @@ "path" : "pages/memorial/memorialHall", "style" : { - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" } } ], diff --git a/pages/memorial/memorialHall.vue b/pages/memorial/memorialHall.vue index 08e1c75..554a41d 100644 --- a/pages/memorial/memorialHall.vue +++ b/pages/memorial/memorialHall.vue @@ -17,9 +17,6 @@ @search="handleSearch" /> - - - @@ -30,62 +27,33 @@ 刻铭 - - - - - - - - + + - 显妣 - 陈秀恋 + {{ deceased.honorific }} + {{ deceased.fullName }} - 2003 + {{ deceased.bornYear }} - 4 + {{ deceased.bornMonths }} - 5 + {{ deceased.bornDay }} - 一九八六 + {{ deceased.diedYear || '吉' }} - + {{ deceased.diedMonths || '吉利' }} - 二十 - - - - - - - - 显妣 - 陈秀恋 - - - - - 2003 - - 4 - - 5 - - - - - 2003 - - 4 - - 5 + {{ deceased.diedDay || '吉' }} @@ -105,7 +73,6 @@ @view-details="handleViewDetails" /> - -