diff --git a/WebRoot/html/ypzs/view/apply.html b/WebRoot/html/ypzs/view/apply.html index 1ad9010..4b05f6a 100644 --- a/WebRoot/html/ypzs/view/apply.html +++ b/WebRoot/html/ypzs/view/apply.html @@ -137,12 +137,27 @@ if (stageId > 0) { var fields = data.field; + if (imgId == "0") { + layer.msg("请上传户口本照片(幼儿页)!", { + icon: 2, + time: 2500 + }); + return; + } + $.ajax({ type: "POST", url: "/FengHuang/yp/save", data: { "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) { - console.log(data) + if (data) { + window.location = "./success.html"; + } else { + layer.msg(data.message, { + icon: 2, + time: 2500 + }); + } } }); }