[ol]var param={
"userId":$("#dataForm input[name='userId']").val(),
"userType":20,
"phoneNo":$("#dataForm input[name='phoneNo']").val(),
"mustPayMoney":"0",
"payMoney":prompt('要充多少?'),
};
$.ajax({
type:"POST",
url:contextPath+"/payRecharge/submitBill?timestamp="+commonTools.getTimestamp(),
dataType:"json",
data:param,
cache:false,
success:function(response){
if (response.code == 0) {
var channelCode=response.data.channelCode;
var channelOrderNo=response.data.channelOrderNo;
var orderType=response.data.orderType;
window.location.href=response.data.mallUrl+"/orderpay/payQuery?channelCode="+channelCode+"&channelOrderNo="+channelOrderNo+"&orderType="+orderType+'×tamp='+commonTools.getTimestamp();
}else {
$("#erroMsg").html(response.data);
}
},
error:function(){
$("#erroMsg").html(msgData.payMoneysubmiterr01);
}
});[/ol]复制代码