Html跳转代码
function doublechooseclick() { //alert("doublechooseclick"); $.ajax({ type: "POST", dataType: "json", url: "/HttpUrl/UserReg.ashx?UserMail=" + emailTxt, success: function (msg) { // alert(msg.user); var user = msg.user; var balance = msg.balance; // alert(user); /// alert(balance); if (user != "") { location.href = "RegSuccess.html?user=" + user + "&balance=" + balance; //location.href实现客户端页面的跳转 // location.href = "RegSuccess.html"; //location.href实现客户端页面的跳转 } else { alert("注册失败!"); return; } } }); } //function doublechooseclick() { // $.post("/HttpUrl/UserReg.ashx", { id: "1", name: "join" }, function () { location.href = "/User/RegSuccess.html"; }); //} /**********************************************************************************/ //var falg = true; //定义是否通过的标志 //function bt_reg_C() { // location.href = "/User/reg.html "; //} //$(document).ready(function () { // $("#VerifyCode").bind("click", function () { // $("#VerifyCode img").attr("src", "/Httpurl/RandomImage.ashx?time=" + Math.random()); // }); // $("#bt_login").bind("click", function () { // //alert("1"); // login(); // }); //}); //function login() {///登陆 // var falg = ""; // var username = $("#UserName").val(); // var password = $("#PassWord").val(); // var val = $("#Validate").val(); // $.ajax({ // type: "POST", // url: "/HttpUrl/UserReg.ashx?Validate=" + val, // success: function (msg) { // var msg = "ok"; ///测试先写死,到时候进行屏蔽 // if (msg == "ok") { // falg = true; // if (falg) { // $.ajax({ // type: "POST", // url: "/HttpUrl/index.ashx?type=3&uname=" + username + "&pwd=" + password, // success: function (msg) { // if (msg.user == username) { // downdan("ssq", username); ///下单 // } // else { // alert("用户名密码错误!"); // } // } // }); // } // } // else { // alert("验证码不一致!"); // falg = false; // } // } // }); //} ///跳转按钮中的事件 最强护卫 function sure() { var combination = getcombination(); var amount = $("#pt_bs").val() - 0; var posturl = "/order/sure"; var count; var btype = $("input[name='buyType']:checked").val(); var title; //<li class="chasing_name"><span>追号名称:</span><input name="" type="text"></li> if (btype == 3) { posturl = "/order/autoplay"; count = $("#lx").val(); title = $(".chasing_name :text").val(); if (title == null || title == '') { title = '\u8ffd\u53f7'; } if (count == null || count <= 0) { alert("\u8bf7\u8f93\u5165\u8ffd\u53f7\u7684\u671f\u6570"); return; } } var lotterytype = $("#lotterytype").val(); if ($("#lx_buy").attr("checked") == "checked") { posturl = "/order/autoplay"; } $.ajax({ //一个Ajax过程 type: "post", url: posturl, dataType: 'json', data: { combination: combination, amount: amount, lotterytype: lotterytype, count: count, title: title }, success: function (data) { if (data.success == true) { tdialog("\u6210\u529f ", "\u8d2d\u4e70\u6210\u529f,\u8bf7<a href='/payment/pay?orderid=" + data.orderid + "&money=" + data.money + "' target='_blank'>\u4ed8\u6b3e</a>"); } else if (data.status == 0) { $.ajax({ type: "get", url: "/home/login", data: { isdialog: true }, success: function (data) { if (btype == 1) { var m = "<div class='Directbuy'><h2>\u76f4\u63a5\u8d2d\u4e70</h2>-<h4>\u65e0\u9700\u767b\u5f55\u5c31\u53ef\u8d2d\u4e70</h4><ul class='popUp_logincon'><li><span class='popUp_loginname'></span><div class='popUp_error' id='noneuserinfo'></div></li><li><span class='popUp_loginname'>\u771f\u5b9e\u59d3\u540d</span><input class='login_input' type='text' name='realname'></li>"; m += "<li><span class='popUp_loginname'>\u8eab\u4efd\u8bc1\u53f7\u7801</span><input class='login_input' type='text' name='idcard'></li>"; m += "<li><span class='popUp_loginname'>\u4e2d\u5956\u8054\u7cfb\u624b\u673a</span><input class='login_input' type='text' name='mobile'></li>"; m += "<li><span class='popUp_loginname'></span><input class='popUp_btn' type='button' name='noneuserbuy' value='\u76f4\u63a5\u8d2d\u4e70' onclick='noneuserbuy();' /></li></ul></div>"; tdialog("\u8bf7\u767b\u5f55", m + data); } else if (btype == 3) { tdialog("\u8bf7\u767b\u5f55", data); } } }); } else if (data.status == 2) { tdialog("\u8bf7\u5b8c\u5584\u8eab\u4efd\u4fe1\u606f", "<a class='improve' href='/account/userinfo' target='_blank'>\u70b9\u6b64\u5b8c\u5584\u4fe1\u606f</a>"); } else { tdialog("\u5931\u8d25\u4e86", data.info); } } }); }