From e658ea335b19db6c58339be818f99678de731b73 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 16 Oct 2025 17:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=8C=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/memorial/addMemorial.vue | 569 +++++++++++++++++++++++++++++++ pages/memorial/adminMemorial.vue | 25 ++ 3 files changed, 601 insertions(+) create mode 100644 pages/memorial/addMemorial.vue diff --git a/pages.json b/pages.json index 05eaff6..ae77dcb 100644 --- a/pages.json +++ b/pages.json @@ -249,6 +249,13 @@ "style": { "navigationStyle": "custom" } + }, + { + "path" : "pages/memorial/addMemorial", + "style" : + { + "navigationStyle": "custom" + } } ], "subPackages": [ diff --git a/pages/memorial/addMemorial.vue b/pages/memorial/addMemorial.vue new file mode 100644 index 0000000..adf399d --- /dev/null +++ b/pages/memorial/addMemorial.vue @@ -0,0 +1,569 @@ + + + + + diff --git a/pages/memorial/adminMemorial.vue b/pages/memorial/adminMemorial.vue index 17f2398..a3df2b7 100644 --- a/pages/memorial/adminMemorial.vue +++ b/pages/memorial/adminMemorial.vue @@ -36,6 +36,7 @@ 时长归零 增加时长 寻找牌位 + 添加牌位 @@ -451,6 +452,24 @@ export default { console.log("提交供奉,跳转到往生大殿页面,ID:", this.selectedUnitId); this.navigateToMemorialHall(this.selectedUnitId); }, + + // 跳转到添加牌位页面 + handleAddMemorial() { + console.log("跳转到添加牌位页面"); + uni.navigateTo({ + url: "/pages/memorial/addMemorial", + success: () => { + console.log("跳转到添加牌位页面成功"); + }, + fail: (error) => { + console.error("跳转失败:", error); + uni.showToast({ + title: "页面跳转失败", + icon: "none", + }); + }, + }); + }, }, }; @@ -511,4 +530,10 @@ export default { border-radius: 12rpx; font-size: 28rpx; } + +.add-memorial-btn { + background: #4a90e2 !important; + font-weight: bold; + box-shadow: 0 4rpx 8rpx rgba(74, 144, 226, 0.3); +}