//主要是添加同步处理
$.ajax({ url: "ashx/OrderHander.ashx?action=CheckRepeat", data: { "OrderId": data.OrderNo }, dataType: "json", async:false, type: "post", success: function (data) { if (data == "1") { window.location.href = "index.html"; return; } else { //var v = $("input[name=‘approve‘]:checked").val() var i = 0.01; //支付价格处理,暂时设置为0.01 //location.href = "/create_direct_pay_by_user-CSHARP-UTF-8/pay.aspx?paytypeid=1&username=" + i + "&Orderid=" + data.OrderNo + ""; result = "/create_direct_pay_by_user-CSHARP-UTF-8/pay.aspx?paytypeid=1&username=" + i + "&Orderid=" + data.OrderNo + ""; } if (result.length > 0) { window.open(result, "_blank"); return; } } });
时间: 2024-09-28 00:02:28