From 2edc968559775ef8016e9a24f847ffc96c6a5a85 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Sat, 6 May 2023 14:31:47 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/dangjian/view/exam.html | 26 +- WebRoot/html/dangjian/view/result.html | 351 +++++++++++++++++++++++++ 2 files changed, 372 insertions(+), 5 deletions(-) create mode 100644 WebRoot/html/dangjian/view/result.html diff --git a/WebRoot/html/dangjian/view/exam.html b/WebRoot/html/dangjian/view/exam.html index dd0181e..839f913 100644 --- a/WebRoot/html/dangjian/view/exam.html +++ b/WebRoot/html/dangjian/view/exam.html @@ -219,12 +219,28 @@ header.appendChild(submitBtn); submitBtn.addEventListener('tap', function () { var btnArray = ['取消', '确认']; - var aaa = "2"; - mui.confirm("还有"+aaa+"道题未做,是否确认交卷?", '确认交卷', btnArray, function (e) { + var message = "是否确认交卷?"; + + $.ajax({ + url: "/FengHuang/exam/getPersonUnFinishCount", + async: false, + type: 'GET', + success: function (res) { + if (res.count > 0) { + message = "您还有 " + res.count + " 道题未做,是否确认交卷?" + } + } + }); + + mui.confirm(message, '确认交卷', btnArray, function (e) { if (e.index == 1) { - console.log("11111"); - } else { - console.log("22222"); + $.ajax({ + url: "/FengHuang/exam/jiaoJuan", + type: 'POST', + success: function (res) { + console.log(res); + } + }); } }) }); diff --git a/WebRoot/html/dangjian/view/result.html b/WebRoot/html/dangjian/view/result.html new file mode 100644 index 0000000..8b5edd9 --- /dev/null +++ b/WebRoot/html/dangjian/view/result.html @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + +
+
+ + +
+ + + + +
+
+
+ + + + + + + + + + \ No newline at end of file