From 23981900c9641a56bf1ee80305573813d701442c Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Wed, 8 May 2024 09:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=BB=98=E8=AE=A4=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ah-lantern-form-info-page.php | 3 ++- application/views/mobile_first/ah-lantern-form.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/views/mobile_first/ah-lantern-form-info-page.php b/application/views/mobile_first/ah-lantern-form-info-page.php index d2499acf..f9b9a198 100644 --- a/application/views/mobile_first/ah-lantern-form-info-page.php +++ b/application/views/mobile_first/ah-lantern-form-info-page.php @@ -478,8 +478,9 @@ for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; - currentTicketPrice = parseInt(ticketTypeNode.getAttribute('data-price')); + var dataPrice = parseInt(ticketTypeNode.getAttribute('data-price')); if (ticketTypeNode.checked) { + currentTicketPrice = dataPrice; calcTotalPrice(currentTicketPrice, adultNumberValue); } ticketTypeNode.addEventListener('click', function (event) { diff --git a/application/views/mobile_first/ah-lantern-form.php b/application/views/mobile_first/ah-lantern-form.php index d2499acf..f9b9a198 100644 --- a/application/views/mobile_first/ah-lantern-form.php +++ b/application/views/mobile_first/ah-lantern-form.php @@ -478,8 +478,9 @@ for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; - currentTicketPrice = parseInt(ticketTypeNode.getAttribute('data-price')); + var dataPrice = parseInt(ticketTypeNode.getAttribute('data-price')); if (ticketTypeNode.checked) { + currentTicketPrice = dataPrice; calcTotalPrice(currentTicketPrice, adultNumberValue); } ticketTypeNode.addEventListener('click', function (event) {