| | |
| | | data |
| | | }) |
| | | } |
| | | // 获取题目数据 |
| | | export const getProblemsVO = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/problem/getProblemsVO', |
| | | method: 'get', |
| | | data |
| | | }) |
| | | } |
| | | // 授权 |
| | | export const wxAuthorize = (data) => { |
| | | return http({ |
| | |
| | | import { http } from '@/utils/service.js' |
| | | |
| | | |
| | | // 获取题目数据 |
| | | export const getProblemsVO = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/problem/getProblemsVO', |
| | | method: 'get', |
| | | data |
| | | }) |
| | | } |
| | | // 提交题目数据 |
| | | export const saveProblemsVO = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/problem/finishAnswer', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | // 访客预约详情 |
| | | export const visitorSubDetail = (data) => { |
| | | return http({ |
| | |
| | | </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() { |
| | | uni.navigateTo({ |
| | | url: `/pages/userinfo/userinfo` |
| | | saveProblemsVO({ |
| | | openId: this.$store.state.openId, |
| | | useType: '1', |
| | | content: '' |
| | | }).then(res => { |
| | | uni.navigateTo({ |
| | | url: `/pages/userinfo/userinfo` |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | } |
| | | } |