diff --git a/WebRoot/html/ypzs/view/apply.html b/WebRoot/html/ypzs/view/apply.html index d8a2c28..da509da 100644 --- a/WebRoot/html/ypzs/view/apply.html +++ b/WebRoot/html/ypzs/view/apply.html @@ -180,20 +180,25 @@ return; } - $.ajax({ - type: "POST", - url: "/FengHuang/yp/save", - 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 }, - success: function (data) { - if (data.success) { - window.location = "./success.html"; - } else { - layer.msg(data.message, { - icon: 2, - time: 3000 - }); + layer.confirm('您确定提交吗?提交后将无法进行修改,请确保所提交的内容准确无误!', { + icon: 3, + title: '提示' + }, function (index) { + $.ajax({ + type: "POST", + url: "/FengHuang/yp/save", + 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 }, + success: function (data) { + if (data.success) { + window.location = "./success.html"; + } else { + layer.msg(data.message, { + icon: 2, + time: 3000 + }); + } } - } + }); }); } 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)); }