From b43cdc6ccb7e6a7b8632c403d2823358100bf6c0 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 13 Oct 2025 17:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=A5=89=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E5=8F=8A=E6=97=B6=E5=88=B7=E6=96=B0=E7=89=8C=E4=BD=8D=E7=8A=B6?= =?UTF-8?q?=E6=80=81-=E8=BF=94=E5=9B=9E=E5=BE=80=E7=94=9F=E6=AE=BF?= =?UTF-8?q?=E4=B9=9F=E5=90=8C=E6=AD=A5=E9=87=8D=E6=96=B0=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=89=8C=E4=BD=8D=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/memorial/memorial.vue | 7 +++++++ pages/memorial/memorialHall.vue | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/memorial/memorial.vue b/pages/memorial/memorial.vue index 4db7402..056d84a 100644 --- a/pages/memorial/memorial.vue +++ b/pages/memorial/memorial.vue @@ -27,6 +27,7 @@ @@ -93,6 +94,12 @@ export default { } this.initPage(); }, + onShow() { + // 返回该页面时,刷新状态栏数据,避免与供奉页操作不一致 + if (this.selectedUnitId && this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') { + this.$refs.statusBar.loadUnitData(this.selectedUnitId); + } + }, methods: { // 初始化页面 async initPage() { diff --git a/pages/memorial/memorialHall.vue b/pages/memorial/memorialHall.vue index 1257977..73ecdf5 100644 --- a/pages/memorial/memorialHall.vue +++ b/pages/memorial/memorialHall.vue @@ -454,8 +454,7 @@ export default { this.$refs.statusBar.loadUnitData(this.selectedUnitId); } } - this.selectedUnitId += 1; - this.selectedUnitId -= 1; + // 关闭弹窗 this.closeOfferingModal();