| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getProblemsVO, getSystemDictData } from '@/api' |
| | | import { getProblemsVO, getSystemDictData, saveProblemsVO } from '@/api' |
| | | export default { |
| | | name: 'answer', |
| | | |
| | |
| | | }, |
| | | // 单选选择中题目 |
| | | select(line, i) { |
| | | if(this.status === '2') return |
| | | this.list.forEach((item, index) => { |
| | | if (index === i) { |
| | | item.selAnswer = line.code |
| | |
| | | // this.problemIndex = index |
| | | }, |
| | | changeBox(index, jeck) { |
| | | if(this.status === '2') return |
| | | this.list.forEach((item, i) => { |
| | | if (index === i) { |
| | | item.options.forEach((item2, j) => { |
| | |
| | | this.getProblems() |
| | | }, |
| | | next() { |
| | | saveProblemsVO({ |
| | | openId: this.$store.state.openId, |
| | | useType: '1', |
| | | content: '' |
| | | }).then(res => { |
| | | uni.navigateTo({ |
| | | url: `/pages/userinfo/userinfo` |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | } |
| | | } |