From b7c940b952d32d8b64213f625ca28da910790e5a Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Thu, 27 Jul 2023 11:53:31 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/zz103/info.html | 75 +++++++++++++++++++++------------ WebRoot/html/zz103/success.html | 7 +-- 2 files changed, 50 insertions(+), 32 deletions(-) diff --git a/WebRoot/html/zz103/info.html b/WebRoot/html/zz103/info.html index 6fb1be4..01ff550 100644 --- a/WebRoot/html/zz103/info.html +++ b/WebRoot/html/zz103/info.html @@ -37,7 +37,7 @@
- +
@@ -115,7 +115,7 @@ 家庭是否享受低保
- +
@@ -146,7 +146,7 @@
-
@@ -154,7 +154,7 @@
-
@@ -163,7 +163,7 @@
-
@@ -174,7 +174,7 @@
-
@@ -182,7 +182,7 @@
-
@@ -191,7 +191,7 @@
-
@@ -219,7 +219,7 @@ 初三是否
班委
- +
@@ -230,7 +230,7 @@ 是否因身体原因需特殊照顾
- +
@@ -247,7 +247,7 @@ 是否希望加入志愿者组织
- +
@@ -258,7 +258,7 @@ 是否愿意参加暑期夏令营
- +
@@ -266,7 +266,7 @@ 是否愿意参加暑期省内外游学交流活动
- +
@@ -275,7 +275,7 @@ 家长是否愿意参加家长委员会
- +
@@ -359,22 +359,36 @@ $("#st").val(res.record["st"]); $("#xx").val(res.record["xx"]); - $("input:radio[name=xb][value=" + res.record["xb"] + "]").attr("checked", "true"); - - $("input:radio[name=db][value=" + res.record["db"] + "]").attr("checked", "true"); - $("input:radio[name=bw][value=" + res.record["bw"] + "]").attr("checked", "true"); - $("input:radio[name=zg][value=" + res.record["zg"] + "]").attr("checked", "true"); - $("input:radio[name=zyz][value=" + res.record["zyz"] + "]").attr("checked", "true"); - $("input:radio[name=xly][value=" + res.record["xly"] + "]").attr("checked", "true"); - $("input:radio[name=jlhd][value=" + res.record["jlhd"] + "]").attr("checked", "true"); - $("input:radio[name=jwh][value=" + res.record["jwh"] + "]").attr("checked", "true"); + if (res.record["xb"] != "") { + $("input:radio[name=xb][value=" + res.record["xb"] + "]").attr("checked", "true"); + } + if (res.record["db"] != "") { + $("input:radio[name=db][value=" + res.record["db"] + "]").attr("checked", "true"); + } + if (res.record["bw"] != "") { + $("input:radio[name=bw][value=" + res.record["bw"] + "]").attr("checked", "true"); + } + if (res.record["zg"] != "") { + $("input:radio[name=zg][value=" + res.record["zg"] + "]").attr("checked", "true"); + } + if (res.record["zyz"] != "") { + $("input:radio[name=zyz][value=" + res.record["zyz"] + "]").attr("checked", "true"); + } + if (res.record["xly"] != "") { + $("input:radio[name=xly][value=" + res.record["xly"] + "]").attr("checked", "true"); + } + if (res.record["jlhd"] != "") { + $("input:radio[name=jlhd][value=" + res.record["jlhd"] + "]").attr("checked", "true"); + } + if (res.record["jwh"] != "") { + $("input:radio[name=jwh][value=" + res.record["jwh"] + "]").attr("checked", "true"); + } if (res.record["pic"] != "") { layui.$('#uploadView').removeClass('layui-hide').find('img').attr('src', "/FengHuang" + res.record["pic"]); } - - + uuid = res.record["uuid"]; form.render(); } else { @@ -404,6 +418,15 @@ // 提交事件 form.on('submit(save)', function (data) { + + if (uuid == "") { + layer.msg("请上传照片!", { + icon: 2, + time: 2500 + }); + return; + } + data.field["uuid"] = uuid; $.ajax({ type: "POST", @@ -420,7 +443,7 @@ } } }); - return false; // 阻止默认 form 跳转 + return false; }); }); diff --git a/WebRoot/html/zz103/success.html b/WebRoot/html/zz103/success.html index 09b268d..5690a12 100644 --- a/WebRoot/html/zz103/success.html +++ b/WebRoot/html/zz103/success.html @@ -37,12 +37,7 @@ - + \ No newline at end of file