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.
38 lines
708 B
JavaScript
38 lines
708 B
JavaScript
6 years ago
|
//获取游船价格
|
||
|
function getshipprice(fid,shipname){
|
||
|
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "/api/api.php",
|
||
|
data:{method:'cruisegetprice',sn:shipname},
|
||
|
success: function(cp){
|
||
|
$("#"+fid).html('$' + cp[shipname.replace(/ /g,'-').toLowerCase()]);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
function getshipprice(fid,shipname){
|
||
|
|
||
|
$.ajax({
|
||
|
type: "GET",
|
||
|
url: "/api/api.asp?method=cht.yangtzecruise.getPrice&shipname="+shipname,
|
||
|
success: function(cp){
|
||
|
$("#"+fid).html(cp);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
function getcruiseprice(fid,shipname){
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "/api/api.php",
|
||
|
data:{method:'cruisegetprice',sn:shipname},
|
||
|
success: function(cp){
|
||
|
$("#"+fid).html(cp[shipname.replace(/ /g,'-').toLowerCase()]);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|