From bd8725acab600f6c510a49e23b4ba2bf3fc1bd83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B1=95=E9=B9=8F?= Date: Thu, 20 Nov 2025 12:06:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dfinally=E5=9D=97?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=8A=B6=E6=80=81=E9=9A=90=E8=97=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复在获取预约记录失败时finally块位置错误的问题,确保无论成功或失败都能正确隐藏加载状态 --- vip.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vip.php b/vip.php index ac181ce..662ce20 100644 --- a/vip.php +++ b/vip.php @@ -878,11 +878,13 @@ try { } catch (e) { console.error('解析预约数据失败:', e); document.getElementById('noBookings').style.display = 'block'; + } finally { + // 隐藏加载状态 + document.getElementById('bookingsLoading').style.display = 'none'; } } else { console.error('获取预约记录失败:', xhr.status); document.getElementById('noBookings').style.display = 'block'; - } finally { // 隐藏加载状态 document.getElementById('bookingsLoading').style.display = 'none'; }