From 46ebf7de2e723ef049282c1f4bfe60abcb5bd57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=AE=87=E5=AE=81?= Date: Thu, 29 Oct 2026 20:19:55 +0700 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/pages/eightPop.js | 9 +++++---- app/templates/base/eightPop.html | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/static/js/pages/eightPop.js b/app/static/js/pages/eightPop.js index f739b4e..8372bd4 100644 --- a/app/static/js/pages/eightPop.js +++ b/app/static/js/pages/eightPop.js @@ -47,11 +47,12 @@ } } - var confirmBtn = mask.querySelector("[data-eight-pop-confirm]"); + // 确认按钮和右下角关闭按钮(X)都视为确认年龄并进入网站。 + var confirmBtns = mask.querySelectorAll("[data-eight-pop-confirm]"); var exitBtns = mask.querySelectorAll("[data-eight-pop-exit]"); - if (confirmBtn) { - confirmBtn.addEventListener("click", confirmAge); - } + confirmBtns.forEach(function (button) { + button.addEventListener("click", confirmAge); + }); exitBtns.forEach(function (button) { button.addEventListener("click", exitSite); }); diff --git a/app/templates/base/eightPop.html b/app/templates/base/eightPop.html index 8962e94..afe0037 100644 --- a/app/templates/base/eightPop.html +++ b/app/templates/base/eightPop.html @@ -13,10 +13,10 @@ - - + {{end}}