|
|
|
@ -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
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|