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 + }) } } }