From 4d7aad7896bb909821698fd19912ff9858cbba0f Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Thu, 27 Jul 2023 10:32:34 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/zz103/index.html | 32 ++++++++++++++++++++------------ WebRoot/html/zz103/info.html | 23 ++++++++++++++++++++--- 2 files changed, 40 insertions(+), 15 deletions(-) diff --git a/WebRoot/html/zz103/index.html b/WebRoot/html/zz103/index.html index 3e49a33..b8abc79 100644 --- a/WebRoot/html/zz103/index.html +++ b/WebRoot/html/zz103/index.html @@ -40,7 +40,7 @@
- @@ -49,16 +49,16 @@
- - - + +
- +
- + @@ -70,13 +70,21 @@ var layer = layui.layer; // 提交事件 form.on('submit(demo-login)', function (data) { - var field = data.field; // 获取表单字段值 - // 显示填写结果,仅作演示用 - layer.alert(JSON.stringify(field), { - title: '当前填写的字段值' + $.ajax({ + type: "POST", + url: "/FengHuang/yp/login", + 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 + }); + } + } }); - // 此处可执行 Ajax 等操作 - // … return false; // 阻止默认 form 跳转 }); }); diff --git a/WebRoot/html/zz103/info.html b/WebRoot/html/zz103/info.html index 2ab39fa..c8e352b 100644 --- a/WebRoot/html/zz103/info.html +++ b/WebRoot/html/zz103/info.html @@ -127,7 +127,7 @@
-
+
cm @@ -202,7 +202,8 @@
- +
@@ -227,7 +228,8 @@
- +
@@ -367,6 +369,21 @@ ] }); + //获取当前task_id + $.ajax({ + type: "GET", + dataType: "json", + url: "/FengHuang/yp/getCurrentTaskInfo", + success: function (res) { + if (res.task_id > 0) { + taskId = res.task_id; + $("#title").html(res.task_name); + } else { + window.location = "./error.html"; + } + } + }); + //拖拽上传 upload.render({ elem: "#uploadImg"