87,909
社区成员
发帖
与我相关
我的任务
分享
//已包含JQuery1.7.js
//PC可用,手机端不可用
$.ajax(
{
url: '<?=PC_BUY_INDEX?>index/cars/apply/',
data: {'proId': productId, 'carsId': carsId, 'cityId': cityId, 'sex': sex, 'phone': phone, 'hopePrice': hopePrice, 'realName': realName}, //参数没有问题
type: 'get',
async: false,
dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback:'flightHandler',
complete: function (XMLHttpRequest, textStatus){
var data = XMLHttpRequest.responseText;
//alert("responseText:"+data);
//alert('textStatus: ' + textStatus); //PC端输出success
},
success: function (json) {
if (json.success) {
location.href = '/index.php?c=Buy_Apply&a=ApplySuccess&productId=' + productId + '&carsId=' + carsId + '&cityId=' + cityId;
} else {
$("#mch_err").attr('class', "mch_err_show");
$("#mch_err").html(json.message);
}
}
});