You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
6 years ago
|
$(function(){
|
||
|
//日历
|
||
|
var sdates = $("#takeoffDate1,#takeoffDate2,#takeoffDate3,#takeoffDate4,#takeoffDate5,#takeoffDate6")
|
||
|
.datepicker({showAnim:"fadeIn",duration:0,minDate: 0, maxDate:"1y",numberOfMonths: 2,showButtonPanel: true});
|
||
|
iniPrice();
|
||
|
});
|
||
|
|
||
|
function iniPrice(){
|
||
|
//往返选择
|
||
|
$("#flightSearchBox :radio").click(function(){
|
||
|
$("#flightSearchBox label:last").hide(1);
|
||
|
if($(this).val()=="2"){
|
||
|
$("#flightSearchBox label:last").show(1);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
$("#price").change(function(){
|
||
|
if($(this).val()=="3"){
|
||
|
$(this).parents("form").attr("action","/china-flights/searchresult.asp");
|
||
|
$("#inlandFlight").hide();
|
||
|
$("#outlandFlight").show();
|
||
|
$("#triptypeDiv").find("span").eq(1).hide().end().eq(0).find("input").trigger("click");
|
||
|
}else{
|
||
|
$(this).parents("form").attr("action","/china-flights/postquery.asp");
|
||
|
$("#triptypeDiv").find("span").show();
|
||
|
$("#inlandFlight").show();
|
||
|
$("#outlandFlight").hide();
|
||
|
|
||
|
if($(this).val()=="1"){
|
||
|
$("#startCode1").html(citystr);
|
||
|
$("#destinationCode1").html(citystr1).val("SHA");
|
||
|
}else{
|
||
|
$("#startCode1").html(cityHM);
|
||
|
$("#destinationCode1").html(cityHM).val("MFM");
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|