diff --git a/application/third_party/order/views/gh/confirm_order.php b/application/third_party/order/views/gh/confirm_order.php index bec9423b..d1d2274e 100644 --- a/application/third_party/order/views/gh/confirm_order.php +++ b/application/third_party/order/views/gh/confirm_order.php @@ -896,14 +896,13 @@ input.arrivalDate {height: 50px; width: 347px; font-size: 19px; padding: 5px 15p } $(function() { + var $travelerTemplate = $(".traveler_info:first").clone(); //添加客户 $("#add_traveler_button").click(function() { - var html = $(".traveler_info:first").clone(); - $('#add_traveler_button').before(html); - var travelerCount = $(".traveler_info").length; - var $currentBox = $(".traveler_info:last"); - $currentBox.find('[data-header]').text('Traveler ' + travelerCount); - $currentBox.find('.datepicker').removeClass('hasDatepicker').attr('id', ''); + var $addTraveler = $travelerTemplate.clone(); + var travelerCount = $(".traveler_info").length + 1; + $addTraveler.find('[data-header]').text('Traveler ' + travelerCount); + $('#add_traveler_button').before($addTraveler); $('.datepicker').datepicker({ controlType: 'select', diff --git a/application/third_party/order/views/link_tips.php b/application/third_party/order/views/link_tips.php index 01e775f9..300dff9f 100644 --- a/application/third_party/order/views/link_tips.php +++ b/application/third_party/order/views/link_tips.php @@ -62,7 +62,6 @@