| | |
| | | <!-- <nav-bar-sub></nav-bar-sub> --> |
| | | <!-- 用于提示是否确认退出考试 --> |
| | | <u-modal v-model="show" :content="content" :show-cancel-button="true" @confirm="handleConfirm"></u-modal> |
| | | |
| | | <!-- 渲染题目 --> |
| | | <Answer @submit='handleCommit' @timeEnd='handleConfirm' @onChange='onChange'></Answer> |
| | | |
| | |
| | | this.$store.state.questionList = [] |
| | | |
| | | var that = this |
| | | console.log(this.$store.state.UserData) |
| | | // 理论考试 |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/simulateExamRecord/beginExam", |
| | | // url: "http://localhost:81/simulateExamRecord/beginExam", |
| | | method: 'POST', |
| | | data: { |
| | | idCardNo: this.$store.state.UserData.cardid |
| | |
| | | }, |
| | | methods: { |
| | | /* 提交答案 显示再次确认*/ |
| | | handleCommit(questionList) { |
| | | handleCommit() { |
| | | // 显示是否确认交卷 |
| | | this.show = true; |
| | | }, |
| | |
| | | }, |
| | | /* 题目答案变化 |
| | | */ |
| | | onChange(answer) {} |
| | | onChange(answer) { |
| | | } |
| | | } |
| | | } |
| | | </script> |