水灯节改为默认9号的票

hotfix/paypal-note
LiaoYijun 3 years ago
parent 6298f09ebe
commit 256927b3da

@ -6,13 +6,13 @@
<p style=" font-size: 22px;"><strong>Select Date</strong></p>
<div class="selectHotl">
<div class="optionLable">
<input type="radio" value="2022-11-08" checked id="november8th" name="ticket_date">
<input type="radio" value="2022-11-08" id="november8th" name="ticket_date">
<label for="november8th">
November 8th, 2022
</label>
</div>
<div class="optionLable">
<input type="radio" value="2022-11-09" id="november9th" name="ticket_date">
<input type="radio" value="2022-11-09" checked id="november9th" name="ticket_date">
<label for="november9th">
November 9th, 2022
</label>
@ -21,7 +21,7 @@
<p style="margin-top: -30px;">The premium tickets for Nov. 8 are sold out, but for the Nov. 9 are still available.</p>
<p style=" font-size: 22px;"><strong>Select Ticket Type</strong></p>
<div class="selectHotl">
<div class="optionLable" id="ticket_type_premium" style="display: none;">
<div class="optionLable" id="ticket_type_premium">
<input type="radio" value="Premium + Free Transfer" id="Premium" name="ticket_type">
<label for="Premium">
Premium + Free Transfer
@ -31,7 +31,7 @@
</label>
</div>
<div class="optionLable">
<input type="radio" value="VIP + Free Transfer" checked id="VIP" name="ticket_type">
<input type="radio" value="VIP + Free Transfer" id="VIP" name="ticket_type">
<label for="VIP">
VIP + Free Transfer
<div class="selectionMemo">
@ -40,7 +40,7 @@
</label>
</div>
<div class="optionLable">
<input type="radio" value="Standard + Free Transfer" id="Standard" name="ticket_type">
<input type="radio" value="Standard + Free Transfer" checked id="Standard" name="ticket_type">
<label for="Standard">
Standard + Free Transfer
<div class="selectionMemo">
@ -61,7 +61,7 @@
</div>
</div>
<p>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.</p>
<div class="payonline_price">Total price: <strong id="totalPriceText">$159</strong></div>
<div class="payonline_price">Total price: <strong id="totalPriceText">$122</strong></div>
<p style="margin-top: 50px;"><strong>Please provide correct personal information for your ticket
booking. Double
check.</strong></p>
@ -690,7 +690,7 @@
var totalPriceText = document.getElementById("totalPriceText");
var totalPriceHidden = document.getElementById("totalPriceHidden");
var adultNumberValue = parseInt(adultNumberNode.value);
var ticketPrice = 159;
var ticketPrice = 122;
totalPriceHidden.value = ticketPrice * adultNumberValue;
totalPriceText.innerText = '$'+ticketPrice;
for (var i = 0; i < ticketTypeList.length; i++) {
@ -713,16 +713,20 @@
var ticketDateList = document.querySelectorAll("input[name='ticket_date']");
var ticketTypePremium = document.getElementById("ticket_type_premium");
var vipTypePremium = document.getElementById("vip_type_premium");
for (var i = 0; i < ticketDateList.length; i++) {
var ticketDateNode = ticketDateList[i];
ticketDateNode.addEventListener('click', function(event) {
var currentTarget = event.currentTarget;
// 8 号的 premium 票卖完了
// 8 号的 premium, VIP 票卖完了,只能选 Standard
if (currentTarget.id === 'november8th') {
ticketTypePremium.style.display = 'none';
vipTypePremium.style.display = 'none';
$('#Standard').click();
} else {
ticketTypePremium.style.display = '';
vipTypePremium.style.display = '';
}
});
}

@ -6,13 +6,13 @@
<p style=" font-size: 22px;"><strong>Select Date</strong></p>
<div class="selectHotl">
<div class="optionLable">
<input type="radio" value="2022-11-08" checked id="november8th" name="ticket_date">
<input type="radio" value="2022-11-08" id="november8th" name="ticket_date">
<label for="november8th">
November 8th, 2022
</label>
</div>
<div class="optionLable">
<input type="radio" value="2022-11-09" id="november9th" name="ticket_date">
<input type="radio" value="2022-11-09" checked id="november9th" name="ticket_date">
<label for="november9th">
November 9th, 2022
</label>
@ -21,7 +21,7 @@
<p style="margin-top: -30px;">The premium tickets for Nov. 8 are sold out, but for the Nov. 9 are still available.</p>
<p style=" font-size: 22px;"><strong>Select Ticket Type</strong></p>
<div class="selectHotl">
<div class="optionLable" id="ticket_type_premium" style="display: none;">
<div class="optionLable" id="ticket_type_premium">
<input type="radio" value="Premium + Free Transfer" id="Premium" name="ticket_type">
<label for="Premium">
Premium + Free Transfer
@ -30,8 +30,8 @@
</div>
</label>
</div>
<div class="optionLable">
<input type="radio" value="VIP + Free Transfer" checked id="VIP" name="ticket_type">
<div class="optionLable" id="vip_type_premium">
<input type="radio" value="VIP + Free Transfer" id="VIP" name="ticket_type">
<label for="VIP">
VIP + Free Transfer
<div class="selectionMemo">
@ -40,7 +40,7 @@
</label>
</div>
<div class="optionLable">
<input type="radio" value="Standard + Free Transfer" id="Standard" name="ticket_type">
<input type="radio" value="Standard + Free Transfer" checked id="Standard" name="ticket_type">
<label for="Standard">
Standard + Free Transfer
<div class="selectionMemo">
@ -61,7 +61,7 @@
</div>
</div>
<p>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.</p>
<div class="payonline_price">Total price: <strong id="totalPriceText">$159</strong></div>
<div class="payonline_price">Total price: <strong id="totalPriceText">$122</strong></div>
<p style="margin-top: 50px;"><strong>Please provide correct personal information for your ticket
booking. Double
check.</strong></p>
@ -687,7 +687,7 @@
var totalPriceText = document.getElementById("totalPriceText");
var totalPriceHidden = document.getElementById("totalPriceHidden");
var adultNumberValue = parseInt(adultNumberNode.value);
var ticketPrice = 159;
var ticketPrice = 122;
totalPriceHidden.value = ticketPrice * adultNumberValue;
totalPriceText.innerText = '$'+ticketPrice;
for (var i = 0; i < ticketTypeList.length; i++) {
@ -710,16 +710,20 @@
var ticketDateList = document.querySelectorAll("input[name='ticket_date']");
var ticketTypePremium = document.getElementById("ticket_type_premium");
var vipTypePremium = document.getElementById("vip_type_premium");
for (var i = 0; i < ticketDateList.length; i++) {
var ticketDateNode = ticketDateList[i];
ticketDateNode.addEventListener('click', function(event) {
var currentTarget = event.currentTarget;
// 8 号的 premium 票卖完了
// 8 号的 premium, VIP 票卖完了,只能选 Standard
if (currentTarget.id === 'november8th') {
ticketTypePremium.style.display = 'none';
vipTypePremium.style.display = 'none';
$('#Standard').click();
} else {
ticketTypePremium.style.display = '';
vipTypePremium.style.display = '';
}
});
}

Loading…
Cancel
Save