From e56c0931d3114a2a01f379f9fa92f72757637328 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 14 Oct 2022 10:19:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B0=B4=E7=81=AF=E8=8A=82=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BB=B7=E6=A0=BC=E7=BB=9F=E4=B8=80=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=20159?= 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 | 5 +++-- 2 files changed, 5 insertions(+), 3 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 77f826cd..ba9d0182 100644 --- a/application/views/mobile_first/ah-lantern-form-info-page.php +++ b/application/views/mobile_first/ah-lantern-form-info-page.php @@ -61,7 +61,7 @@

Children under 8 years old enter free; 8-year-olds and above are charged the same as adults. You can buy a ticket for your child under 8 if you would like her or him to enjoy the same provision.

-
Total price: $179
+
Total price: $159

Please provide correct personal information for your ticket booking. Double check.

@@ -692,6 +692,7 @@ var adultNumberValue = parseInt(adultNumberNode.value); var ticketPrice = 159; totalPriceHidden.value = ticketPrice * adultNumberValue; + totalPriceText.innerText = '$'+totalPrice; 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 8db93f94..a2f2cd19 100644 --- a/application/views/mobile_first/ah-lantern-form.php +++ b/application/views/mobile_first/ah-lantern-form.php @@ -61,7 +61,7 @@

Children under 8 years old enter free; 8-year-olds and above are charged the same as adults. You can buy a ticket for your child under 8 if you would like her or him to enjoy the same provision.

-
Total price: $179
+
Total price: $159

Please provide correct personal information for your ticket booking. Double check.

@@ -687,8 +687,9 @@ var totalPriceText = document.getElementById("totalPriceText"); var totalPriceHidden = document.getElementById("totalPriceHidden"); var adultNumberValue = parseInt(adultNumberNode.value); - var ticketPrice = 179; + var ticketPrice = 159; totalPriceHidden.value = ticketPrice * adultNumberValue; + totalPriceText.innerText = '$'+totalPrice; for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; ticketTypeNode.addEventListener('click', function(event) { From f1ae4f81bd730bf22120794e53e675a5684cc2e5 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 14 Oct 2022 10:35:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20JS=20=E9=94=99?= =?UTF-8?q?=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) {