diff --git a/api/HistoryExam/index.js b/api/HistoryExam/index.js new file mode 100644 index 0000000..633c9d4 --- /dev/null +++ b/api/HistoryExam/index.js @@ -0,0 +1,9 @@ +import request from "../request.js" + +export function paging(data) { + return request({ + url: `/exam/api/user/exam/my-paging`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/api/request.js b/api/request.js index 88db997..9caa217 100644 --- a/api/request.js +++ b/api/request.js @@ -9,7 +9,7 @@ var request = function(config) { url: baseurl + config.url, data: config.data, method: config.method, - timeout: 10000, + timeout: 30000, header: { ...config.header, token: uni.getStorageSync('examh5token') diff --git a/pages.json b/pages.json index 97e272d..4781be0 100644 --- a/pages.json +++ b/pages.json @@ -4,6 +4,12 @@ }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { + "path": "pages/register/register", + "style": { + "navigationBarTitleText": "注册账号", + "enablePullDownRefresh": false + } + }, { "path": "pages/login/login", "style": { "navigationBarTitleText": "登录", @@ -24,12 +30,6 @@ "navigationStyle": "custom", "enablePullDownRefresh": false } - }, { - "path": "pages/register/register", - "style": { - "navigationBarTitleText": "注册账号", - "enablePullDownRefresh": false - } }, { "path": "pages/forgotPassword/forgotPassword", "style": { @@ -42,6 +42,18 @@ "navigationBarTitleText": "新增考试", "enablePullDownRefresh": false } + }, { + "path": "pages/HistoryExam/HistoryExam", + "style": { + "navigationBarTitleText": "历史考试成绩" + } + }, + { + "path" : "pages/SimulatedExam/SimulatedExam", + "style" : + { + "navigationBarTitleText" : "模拟考试" + } } ], "globalStyle": { diff --git a/pages/HistoryExam/HistoryExam.vue b/pages/HistoryExam/HistoryExam.vue new file mode 100644 index 0000000..9ec5d20 --- /dev/null +++ b/pages/HistoryExam/HistoryExam.vue @@ -0,0 +1,179 @@ + + + + + \ No newline at end of file diff --git a/pages/SimulatedExam/SimulatedExam.vue b/pages/SimulatedExam/SimulatedExam.vue new file mode 100644 index 0000000..8c3b35f --- /dev/null +++ b/pages/SimulatedExam/SimulatedExam.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/pages/examlist/examlist.vue b/pages/examlist/examlist.vue index 629821b..7655cbd 100644 --- a/pages/examlist/examlist.vue +++ b/pages/examlist/examlist.vue @@ -34,6 +34,11 @@ 考试时长:{{item.totalTime}}分钟 + + 考试类型:{{item.examType==1?"模拟考试":""}} + {{item.examType==2?"正式考试":""}} + {{item.examType==3?"补考":""}} + 试卷总分:{{item.totalScore}} @@ -49,7 +54,7 @@ - + diff --git a/pages/register/register.vue b/pages/register/register.vue index 423d5a9..0af8424 100644 --- a/pages/register/register.vue +++ b/pages/register/register.vue @@ -35,6 +35,33 @@ + + + 密码 + + + 密码: + + + + + + 重复密码: + + + + + + 教育背景 @@ -137,33 +164,6 @@ - - - 密码 - - - 密码: - - - - - - 重复密码: - - - - - - 注册 diff --git a/pages/user/user.vue b/pages/user/user.vue index b2cab40..8e166ad 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -17,6 +17,12 @@ + + + + 历史考试成绩 + + @@ -65,6 +71,11 @@ url: '/pages/login/login' }) }, + goHistoryExam() { + uni.navigateTo({ + url: '/pages/HistoryExam/HistoryExam' + }) + }, //退出账号 goremove() { let that = this diff --git a/static/qbgd.png b/static/qbgd.png new file mode 100644 index 0000000..2785428 Binary files /dev/null and b/static/qbgd.png differ