<script>
const form = document.getElementById('booking-form');form.addEventListener('submit', (event) => {event.preventDefault();const name = document.getElementById('name').value;const email = document.getElementById('email').value;const phone = document.getElementById('phone').value;const arrival = document.getElementById('arrival').value;const departure = document.getElementById('departure').value;const roomType = document.getElementById('room-type').value;const numAdults = document.getElementById('num-adults').value;const numChildren = document.getElementById('num-children').value;if (name === '' || email === '' || phone === '' || arrival === '' || departure === '' || roomType === '') {alert('请填写所有必填项。');return;}const data = {name: name,email: email,phone: phone,arrival: arrival,departure: departure,roomType: roomType,numAdults: numAdults,numChildren: numChildren};// 发送预订数据到服务器...alert('您的预订已成功提交。我们将在 24 小时内与您联系以确认您的预订。');});
script>
郑重声明:本文由:
重庆民宿于(2024-11-14)发表了关于
重庆朝天门酒店预订 (重庆朝天门餐饮集团有限公司)的文章。如转载请注明出处!部分文章来源于网络,仅作为参考,如果网站中图片和文字侵犯了您的版权,请联系我们处理!