From f1ae4f81bd730bf22120794e53e675a5684cc2e5 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 14 Oct 2022 10:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20JS=20=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 | 2 +- application/views/mobile_first/ah-lantern-form.php | 2 +- 2 files changed, 2 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 ba9d0182..a47caf3a 100644 --- a/application/views/mobile_first/ah-lantern-form-info-page.php +++ b/application/views/mobile_first/ah-lantern-form-info-page.php @@ -692,7 +692,7 @@ var adultNumberValue = parseInt(adultNumberNode.value); var ticketPrice = 159; totalPriceHidden.value = ticketPrice * adultNumberValue; - totalPriceText.innerText = '$'+totalPrice; + totalPriceText.innerText = '$'+ticketPrice; for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; 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 a2f2cd19..74cbec68 100644 --- a/application/views/mobile_first/ah-lantern-form.php +++ b/application/views/mobile_first/ah-lantern-form.php @@ -689,7 +689,7 @@ var adultNumberValue = parseInt(adultNumberNode.value); var ticketPrice = 159; totalPriceHidden.value = ticketPrice * adultNumberValue; - totalPriceText.innerText = '$'+totalPrice; + totalPriceText.innerText = '$'+ticketPrice; for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; ticketTypeNode.addEventListener('click', function(event) {