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 @@
+
+
+
+
+ 失败
+
+
+
+
+
+
+
+
+
+