main
kgdxpr 2 years ago
parent 279b955c78
commit e61d1c1392

@ -180,20 +180,25 @@
return; return;
} }
$.ajax({ layer.confirm('您确定提交吗?提交后将无法进行修改,请确保所提交的内容准确无误!', {
type: "POST", icon: 3,
url: "/FengHuang/yp/save", title: '提示'
data: { "code": fields.vcode, "task_id": taskId, "name": fields.name, "xb": fields.xb, "sfzh": fields.sfzh, "bx_id": stageId, "address": fields.address, "father_name": fields.father_name, "mother_name": fields.mother_name, "tel": fields.tel, "uuid": imgId }, }, function (index) {
success: function (data) { $.ajax({
if (data.success) { type: "POST",
window.location = "./success.html"; url: "/FengHuang/yp/save",
} else { data: { "code": fields.vcode, "task_id": taskId, "name": fields.name, "xb": fields.xb, "sfzh": fields.sfzh, "bx_id": stageId, "address": fields.address, "father_name": fields.father_name, "mother_name": fields.mother_name, "tel": fields.tel, "uuid": imgId },
layer.msg(data.message, { success: function (data) {
icon: 2, if (data.success) {
time: 3000 window.location = "./success.html";
}); } else {
layer.msg(data.message, {
icon: 2,
time: 3000
});
}
} }
} });
}); });
} }
else { else {
@ -278,7 +283,7 @@
}); });
//刷新验证码 //刷新验证码
window.refreshCaptcha = function () { window.refreshCaptcha = function () {
$("#userCaptchaImage").attr("src", "/FengHuang/yp/getYzm?id=" + new Date() + Math.floor(Math.random() * 24)); $("#userCaptchaImage").attr("src", "/FengHuang/yp/getYzm?id=" + new Date() + Math.floor(Math.random() * 24));
} }

Loading…
Cancel
Save