弹出提醒框 几秒后执行页面跳转等操作,
$.ajax({
url: "@Url.Action("AjaxChannelPlaceOrderEdit", "Order")",
type: "GET", cache: false,
contentType: "application/json; charset=utf-8",
data: data,
beforeSend: function () {
//$('#dk_refresh').show();
},
success: function (i) {
switch (i) {
case "-5":
parent.layer.msg("账户余额不足!请充值");
break;
case "-1":
parent.layer.msg("下单失败");
break;
case "-3":
parent.layer.msg("请勿重复提交订单");
break;
case "1":
parent.layer.msg("下单成功");
setTimeout(function () {
window.history.back(-1);
}, 3000)
break;
}
}
})