From bdcc9560a0c934d3b5249212471f111afe1bdd90 Mon Sep 17 00:00:00 2001 From: LLL <15374889135@163.com> Date: Thu, 29 May 2025 11:56:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/apiRoute.js | 14 ++ pages.json | 19 ++- pages/coach/my/exam_results.vue | 47 +++++++ pages/coach/my/gotake_exam.vue | 185 +++++++++++++++++++++++++ pages/coach/my/teaching_management.vue | 12 +- 5 files changed, 272 insertions(+), 5 deletions(-) create mode 100644 pages/coach/my/exam_results.vue create mode 100644 pages/coach/my/gotake_exam.vue diff --git a/api/apiRoute.js b/api/apiRoute.js index 76f946b..d1869d8 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -152,6 +152,20 @@ export default { return res; }) }, + //获取试卷 + getTeachingTestPaper(data = {}) { + let url = '/teachingResearch/teachingTestPaper' + return http.get(url, data).then(res => { + return res; + }) + }, + //提交试卷 + submitTestPaper(data = {}) { + let url = '/teachingResearch/submitTestPaper' + return http.get(url, data).then(res => { + return res; + }) + }, //↑↑↑↑↑↑↑↑↑↑↑↑-----教练接口相关-----↑↑↑↑↑↑↑↑↑↑↑↑ diff --git a/pages.json b/pages.json index 29bbcd4..e4795b8 100644 --- a/pages.json +++ b/pages.json @@ -400,7 +400,24 @@ "navigationBarTextStyle": "black" } }, - + { + "path": "pages/coach/my/gotake_exam", + "style": { + "navigationBarTitleText": "考试", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#171717", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/coach/my/exam_results", + "style": { + "navigationBarTitleText": "考试结果", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" + } + }, diff --git a/pages/coach/my/exam_results.vue b/pages/coach/my/exam_results.vue new file mode 100644 index 0000000..1e1083c --- /dev/null +++ b/pages/coach/my/exam_results.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/pages/coach/my/gotake_exam.vue b/pages/coach/my/gotake_exam.vue new file mode 100644 index 0000000..e675ceb --- /dev/null +++ b/pages/coach/my/gotake_exam.vue @@ -0,0 +1,185 @@ + + + + diff --git a/pages/coach/my/teaching_management.vue b/pages/coach/my/teaching_management.vue index c93c413..7b1d912 100644 --- a/pages/coach/my/teaching_management.vue +++ b/pages/coach/my/teaching_management.vue @@ -2,15 +2,15 @@ - - + + {{item.title}} {{getTableType(item.table_type)}} {{item.create_time}} - 去考试 + 去考试 加载中... @@ -104,7 +104,6 @@ return this.tableTypeName[text] }, info(id) { - console.log(id) uni.navigateTo({ url: '/pages/coach/my/teaching_management_info?id=' + id }) @@ -126,6 +125,11 @@ this.loading = false } }) + }, + goTake(id,zid) { + uni.navigateTo({ + url: '/pages/coach/my/gotake_exam?id=' + id + '&zid=' + zid + }) } } }