From 4ef9a485d616f81beadca468a482bacc57484ee4 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Fri, 21 Apr 2023 16:12:37 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/ypzs/view/apply.html | 17 ++++++++++------- WebRoot/html/ypzs/view/error.html | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 WebRoot/html/ypzs/view/error.html diff --git a/WebRoot/html/ypzs/view/apply.html b/WebRoot/html/ypzs/view/apply.html index 2ee3f74..09cd3a2 100644 --- a/WebRoot/html/ypzs/view/apply.html +++ b/WebRoot/html/ypzs/view/apply.html @@ -100,7 +100,8 @@
- +
@@ -129,14 +130,16 @@ dataType: "json", url: "/FengHuang/yp/getCurrentTaskInfo", success: function (res) { - taskId = res.task_id; - $("#title").html(res.task_name); + if (res.task_id > 0) { + taskId = res.task_id; + $("#title").html(res.task_name); + } else { + window.location = "./error.html"; + } } }); - - //拖拽上传 upload.render({ elem: "#uploadImg" @@ -211,7 +214,7 @@ $.ajax({ type: "GET", dataType: "json", - url: "/FengHuang/yp/evalBx?sfzh=" + $('#idcard').val(), + url: "/FengHuang/yp/evalBx?sfzh=" + $('#idcard').val() + "&task_id=" + taskId, success: function (res) { if (res.bx_id > 0) { $("#stageTag").html(res.bx_name); @@ -237,7 +240,7 @@ $.ajax({ type: "GET", dataType: "json", - url: "/FengHuang/yp/evalBx?sfzh=" + $(this).val(), + url: "/FengHuang/yp/evalBx?sfzh=" + $(this).val() + "&task_id=" + taskId, success: function (res) { if (res.bx_id > 0) { $("#stageTag").html(res.bx_name); diff --git a/WebRoot/html/ypzs/view/error.html b/WebRoot/html/ypzs/view/error.html new file mode 100644 index 0000000..16fadc7 --- /dev/null +++ b/WebRoot/html/ypzs/view/error.html @@ -0,0 +1,24 @@ + + + + + 失败 + + + + +
+
+
+
+ +
+

报名未开始!

+
+
+
+ + + + +