富贵资源网 Design By www.hznty.com
如果有Ajax,那么设置
async:false,//使AJax同步 var countdownInterval; /*确认立即充值*/ function ToRecharge(){ var paramData = new Object(); paramData.PayType = 1;//支付宝支付 paramData.OrderMoney = parseFloat($("#spShouldPay").text());//支付总金额 var gprsTel = []; var orderDetail = new Array(); for(var i = 0; i < deviceList.length; i++){ orderDetail[i] = new Object(); orderDetail[i].DeviceSN = deviceList[i].DeviceSN;//设备SN码 orderDetail[i].GPRSTel = deviceList[i].GPRSTel;//GPRS手机号码 orderDetail[i].PayYear = parseInt($("#hdnYear").val());//年数 orderDetail[i].PayPotency = 100;//暂时默认是两百元 gprsTel.push(deviceList[i].GPRSTel); } paramData.GPRSTel = gprsTel.join(","); paramData.OrderDetail = $.toJSON(orderDetail); paramData.rand = Math.random(); paramData.PostType = "AddRecharge"; $.ajax({ url: '/App_Ajax/Service.ashx', data: paramData, type: 'post', async:false,//使AJax同步 success: function(resultData){ var jsonResult = $.parseJSON(resultData); if(!jsonResult.success){ window.$.messager.alert('提示', "充值记录保存失败!"); newwindow.close(); return; } $("#backupdate").text("返回修改"); $("#timerecharge").hide(); $("#onrecharge").show(); $("#rechargesuccess").hide(); $("#hdnOrderStatus").val(jsonResult.obj.OrderStatus); $("#hdnOID").val(jsonResult.obj.OID); //启动一个轮询,不断去读取Recharge_Order表的OrderStatus如果成功那么就停止 CheckOrderStatus(jsonResult.obj.OID); //window.open("http://www.baidu.com"); openPostWindow(String.format("http://{0}/Default/Service/Recharge.aspx", location.host), $.toJSON(jsonResult.obj), "_blank") } }); }
/*POST 打开新窗口*/ function openPostWindow(url, data, target) { var tempForm = document.createElement("form"); tempForm.id = "tempForm1"; tempForm.method = "post"; tempForm.action = url; tempForm.target = target; var hideInput = document.createElement("input"); hideInput.type="hidden"; hideInput.name= "PostName" hideInput.value= data; tempForm.appendChild(hideInput); document.body.appendChild(tempForm); tempForm.submit(); document.body.removeChild(tempForm); }
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。