1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204 |
- <template>
- <div class="center">
- <beforeSubmitMask
- :show="beforeSubmitVisible"
- @cancel="
- () => {
- beforeSubmitVisible = false;
- }
- "
- :correctScore="correctScore"
- :errorScore="errorScore"
- :total="list.length"
- @confirm="
- () => {
- beforeSubmitVisible = false;
- submitVisible = true;
- }
- "
- ></beforeSubmitMask>
- <submitMask v-if="submitVisible" :correctScore="correctScore"></submitMask>
- <correctAnswerMask
- :question="wrongQuestion"
- :no="wrongQuestionIndex"
- @close="
- () => {
- correctAnswerVisible = false;
- }
- "
- v-if="correctAnswerVisible"
- ></correctAnswerMask>
- <div class="box">
- <div class="main">
- <div class="container1">
- <div class="kaoti">
- <div class="kaoti-header">金牌驾考</div>
- <div class="kaoti-headerText">第01考台</div>
- </div>
- <div class="student">
- <div class="student-header">考生信息</div>
- <div class="mt10">
- <img class="driver" :src="headimg" />
- <div class="driverInfo">
- <div>姓名:{{ username }}</div>
- <div>性别:{{ sex }}</div>
- <div>类型:{{ carType }}</div>
- <div>科目:{{ subject }}</div>
- </div>
- </div>
- </div>
- <div class="restTime">
- <div class="restTime-header">剩余时间</div>
- <div class="restTime-headerText">{{ countdownTime }}</div>
- </div>
- </div>
- <div class="container2">
- <div class="container2-row1">
- <div class="topic">
- <div class="topic-header">考试题目</div>
- <div class="topic-issue">
- <span>{{ listIndex + 1 }}.{{ list[listIndex].issue }}</span>
- </div>
- <div class="mt9 topic-select">
- <div
- v-for="(item, index) in list[listIndex].optsArr"
- :key="index"
- class="topic-select-item"
- >
- {{ letter[index] }}.<span>{{ item }}</span>
- </div>
- <!-- <div class="topic-select-item">B.<span>xx</span></div> countdown-->
- </div>
- </div>
- <div class="answer">
- <span class="answer-tip">您选择的答案:</span>
- <div style="display: flex; align-items: center">
- <span>选项:</span>
- <div v-if="list[listIndex].questionType < 3" class="answer-list">
- <div
- v-for="(item, index) in list[listIndex].optsArr"
- :key="index"
- class="answer-list-item"
- @click="selectExamAnswer(item)"
- :class="{
- answer_selected: list[listIndex].userAnswer == item,
- }"
- >
- {{ letter[index] }}
- </div>
- <!-- <div class="answer-list-item answer-list-item_select">B</div> -->
- </div>
- <div v-if="list[listIndex].questionType == 3" class="answer-list">
- <div
- v-for="(item, index) in list[listIndex].optsArr"
- :key="index"
- class="answer-list-item"
- @click="selectExamAnswers(item)"
- :class="{
- answer_selected: list[listIndex].userAnswer.includes(item),
- }"
- >
- {{ letter[index] }}
- </div>
- <!-- <div class="answer-list-item answer-list-item_select">B</div> -->
- </div>
- </div>
- </div>
- <div class="coll">
- <table border="0" class="coll-table-topic">
- <tr :key="index" v-for="(item, index) in list.length / 10">
- <td
- v-for="(_item, _index) in 10"
- :class="{
- collselected: index * 10 + _index == listIndex,
- }"
- :data-key="index * 10 + _index + 1"
- :key="_index"
- @click="changeListIndex"
- >
- <div
- style="white-space: nowrap"
- :data-key="index * 10 + _index + 1"
- class="coll-table-topic-item"
- :class="{
- 'text-red': list[index * 10 + _index].isError,
- }"
- >
- {{list[index * 10 + _index ].userAnswerLetter || "" }}
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="container2-row2">
- <div class="w-half">
- <div class="left-line1">
- 操作提示:{{ questionTypeMap[list[listIndex].questionType] }}
- </div>
- <div class="left-line2">请在备选答案中选择你认为正确的答案!</div>
- </div>
- <div class="w-half">
- <div class="right">
- <div
- @click="beforeTopic"
- class="right-button1"
- :class="{
- button1_disabled: listIndex == 0,
- }"
- >
- 上一题
- </div>
- <div
- @click="nextTopic"
- class="right-button1"
- :class="{
- button1_disabled: listIndex == list.length - 1,
- }"
- >
- 下一题
- </div>
- <div @click="submitScore" class="right-button2">交卷</div>
- </div>
- </div>
- </div>
- </div>
- <!-- <div class="container3">
- <div class="coll">
- <table border="0" class="coll-table-topic">
- <tr>
- <td class="coll-table-topic-item bg-498ef5">
- <div class="coll-table-topic-item coll-header1-row bg-498ef5">题目</div>
- </td>
- <td
- class="coll-table-topic-item bg-498ef5"
- v-for="(item, index) in 10"
- :key="index"
- >
- <div class="coll-table-topic-item coll-header1-row bg-498ef5">
- {{ index + 1 }}列
- </div>
- </td>
- </tr>
- <tr :key="index" v-for="(item, index) in list.length / 10">
- <td class="coll-table-topic-item bg-498ef5">
- <div style="white-space: nowrap">{{ index + 1 }}行</div>
- </td>
- <td
- v-for="(_item, _index) in 10"
- :class="{
- collselected: index * 10 + _index == listIndex,
- }"
- :data-key="index * 10 + _index + 1"
- :key="_index"
- @click="changeListIndex"
- >
- <div
- style="white-space: nowrap"
- :data-key="index * 10 + _index + 1"
- class="coll-table-topic-item"
- >
- {{ index * 10 + _index + 1 }}
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div> -->
- </div>
- <div class="bottom">
- <img
- class="icon"
- @click="
- () => {
- router.back();
- }
- "
- src="@/assets/img/backButton.png"
- />
- <img class="answer-img" v-if="list[listIndex].image" :src="list[listIndex].image" />
- </div>
- </div>
- </div>
- </template>
- <script lang="ts">
- import { defineComponent, reactive, ref, onMounted } from 'vue';
- import dayjs from 'dayjs';
- import beforeSubmitMask from '@/components/mask/beforeSubmitMask.vue';
- import submitMask from '@/components/mask/submitMask.vue';
- import correctAnswerMask from '@/components/mask/correctAnswerMask.vue';
- // import Api from '@/api/api';
- import { countdownTime, countdown, countdownTimer } from '@/hooks/countdown';
- import { useStore } from 'vuex';
- // import router from '@/router';
- import { useExamTest } from '@/hooks/examTest';
- import { useRoute, useRouter } from 'vue-router';
- import { useStringMap } from '@/hooks/stringMap';
- export default defineComponent({
- setup() {
- //清除定时器
- //
- window.clearInterval(countdownTimer.value);
- const headimg = useRoute().query?.headimg;
- const username = useRoute().query?.username;
- const store = useStore();
- const router = useRouter();
- const { subjectMap, carTypeMap } = useStringMap();
- let subject = subjectMap[Number(useRoute().query?.subject)];
- let sex = '男';
- let carType = carTypeMap[useRoute().query?.gs as string];
- let {
- list,
- beforeSubmitVisible,
- listIndex,
- submitScore,
- changeListIndex,
- selectExamAnswer,
- beforeTopic,
- nextTopic,
- getPgae,
- selectExamAnswers,
- correctScore,
- errorScore,
- submitVisible,
- wrongQuestion,
- wrongQuestionIndex,
- correctAnswerVisible,
- } = useExamTest();
- //设置开始时间
- store.commit('SET_BEGINTIME', {
- beginTime: `${dayjs().format('MM-DD HH:mm:ss')}`,
- });
- getPgae();
- // let list = ref<selectTestQuestionInfo.row[]>([
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // {
- // createTime: '2021-11-05 10:25:51',
- // id: 20,
- // image: null,
- // imageYdt: null,
- // answer: '√',
- // answerkeyword: null,
- // explainGif: 'https://t1-1305573081.file.myqcloud.com/qb/gif/20.gif',
- // explainJq: '题目中看到“追究”.答对;“不追究”.答错。',
- // explainJs:
- // '《道路交通安全法》第九十九条:未取得机动车驾驶证、机动车驾驶证被吊销或者机动车驾驶证被暂扣期间驾驶机动车的,由公安机关交通管理部门处二百元以上二千元以下罚款,可以并处十五日以下拘留。',
- // explainMp3: 'https://t1-1305573081.file.myqcloud.com/qb/mp3/explain20.mp3',
- // issue: '对未取得驾驶证驾驶机动车的,追究其法律责任。',
- // opts: '√-×',
- // optsArr: ['√', '×'],
- // skillkeyword: '追究-答对',
- // titlekeyword: '追究',
- // issuemp3: 'https://t1-1305573081.file.myqcloud.com/qb/issue/issue20.mp3',
- // answermp3: 'https://t1-1305573081.file.myqcloud.com/qb/answer/answer20.mp3',
- // explainjsmp3: 'https://t1-1305573081.file.myqcloud.com/qb/explainjs/explainJS20.mp3',
- // liceCar: '1',
- // liceBus: '1',
- // liceTruck: '1',
- // liceMoto: '0',
- // sequeIssue: '2',
- // classIssue: '32',
- // placeIssue: '0',
- // excellIssue: '1',
- // copyIssue: '0',
- // mockIssue: '0',
- // sequeIssueName: '练习二',
- // placeIssueName: null,
- // excellIssueName: '必学题一',
- // classIssueName: '刑法题',
- // questionType: 1,
- // subject: 1,
- // classSort: 16,
- // excellSort: 39,
- // sequeSort: 118,
- // placeSort: null,
- // userAnswer: '',
- // },
- // ]);
- // let listIndex = ref(0);
- // let submitScore = () => {
- // let score =0
- // list.value.forEach(item=>{
- // score +=item.answer==item.userAnswer?1:0
- // })
- // store.commit('SET_ENDTIME', {
- // endTime: `${dayjs().format('MM-DD HH:mm:ss')}`,
- // });
- // router.push({
- // name: 'examScore',
- // query: {
- // score:score,
- // total:list.value.length
- // },
- // });
- // };
- // let changeListIndex = (e: PointerEvent) => {
- // listIndex.value = Number(e.target?.dataset?.key) - 1;
- // };
- // let selectExamAnswer = (item: string) => {
- // list.value[listIndex.value] = { ...list.value[listIndex.value], userAnswer: item };
- // console.log(list.value[listIndex.value], item);
- // };
- // let beforeTopic = () => {
- // if (listIndex.value == 0) {
- // return;
- // }
- // listIndex.value = listIndex.value - 1;
- // };
- // let nextTopic = () => {
- // if (listIndex.value == list.value.length - 1) {
- // return;
- // }
- // listIndex.value = listIndex.value + 1;
- // };
- // Api.studentQustionInfoSelectTestQuestionInfo({
- // liceBus: '',
- // liceCar: '1',
- // liceMoto: '',
- // liceTruck: '',
- // subject: 1,
- // }).then((res) => {
- // res.data.rows.forEach((item) => {
- // item.optsArr = item.opts.split('-');
- // item.userAnswer = '';
- // });
- // list.value = res.data.rows;
- // });
- onMounted(() => {
- //倒计时结束
- countdown().then((timer) => {
- window.clearInterval(timer as number);
- submitScore();
- });
- });
- return {
- list,
- letter: ['A', 'B', 'C', 'D', 'E', 'F'],
- questionTypeMap: ['', '判断题', '选择题', '多选题'],
- listIndex: listIndex,
- beforeTopic,
- nextTopic,
- changeListIndex,
- selectExamAnswer,
- selectExamAnswers,
- countdownTime,
- store,
- router,
- submitScore,
- beforeSubmitVisible,
- submitVisible,
- correctScore,
- errorScore,
- headimg,
- subject,
- username,
- carType,
- sex,
- wrongQuestion,
- wrongQuestionIndex,
- correctAnswerVisible,
- };
- },
- components: {
- beforeSubmitMask,
- submitMask,
- correctAnswerMask,
- },
- });
- </script>
- <style lang="scss" scoped>
- .text-red {
- color: red;
- }
- .w-half {
- width: 50%;
- }
- .mt10 {
- margin-top: 10px;
- }
- .mt6 {
- margin-top: 6px;
- }
- .mt13 {
- margin-top: 13px;
- }
- .border-none {
- border: none;
- }
- .bg-498ef5 {
- background: #498ef5;
- }
- .bottom {
- display: flex;
- position: relative;
- justify-content: center;
- border-left: 1px solid #c6c7c9;
- border-bottom: 1px solid #c6c7c9;
- border-right: 1px solid #c6c7c9;
- height: 74px;
- .icon {
- width: 35px;
- height: 35px;
- position: absolute;
- left: 17px;
- bottom: 21px;
- }
- }
- .center {
- display: flex;
- height: 100vh;
- background: #f6f2f1;
- }
- .box {
- padding-top: 5px;
- padding-bottom: 5px;
- padding-left: 7px;
- padding-right: 7px;
- overflow: hidden;
- }
- .main {
- display: flex;
- border: 1px solid #c6c7c9;
- }
- .container3 {
- flex: 1;
- }
- .container2 {
- box-sizing: border-box;
- width: 613px;
- .container2-row1 {
- display: flex;
- flex-wrap: wrap;
- flex-direction: column;
- height: 220px;
- width: 100%;
- }
- .container2-row2 {
- display: flex;
- flex-wrap: wrap;
- flex-direction: row;
- height: 42px;
- width: 100%;
- align-content: center;
- align-items: center;
- border-top: 1px solid #b8c0cc;
- border-left: 1px solid #b8c0cc;
- text-align: left;
- font-size: 11px;
- padding-left: 8px;
- .left-line1 {
- color: #bc322d;
- text-align: left;
- font-size: 11px;
- width: 100%;
- }
- .left-line2 {
- color: #3d3c38;
- text-align: left;
- font-size: 11px;
- width: 100%;
- }
- .right {
- display: flex;
- align-content: center;
- align-items: center;
- justify-content: flex-end;
- padding-right: 16px;
- .right-button1 {
- width: 58px;
- height: 28px;
- background: #fffffb;
- opacity: 1;
- font-size: 12px;
- color: #3d3c38;
- line-height: 28px;
- text-align: center;
- margin-left: 16px;
- }
- .button1_disabled {
- background-color: #f9faf5;
- color: #979893;
- }
- .right-button2 {
- width: 58px;
- height: 28px;
- background: #fffffb;
- opacity: 1;
- font-size: 12px;
- line-height: 28px;
- text-align: center;
- margin-left: 16px;
- }
- }
- }
- }
- .container1 {
- display: flex;
- width: 119px;
- flex-direction: column;
- }
- .coll {
- position: relative;
- display: flex;
- margin-top: 9px;
- .coll-header1 {
- width: 231px;
- height: 21px;
- border-spacing: 0;
- border-right: 1px solid #b8c0cc;
- div {
- box-sizing: border-box;
- }
- .coll-header1-row {
- width: 21px;
- height: 21px;
- line-height: 21px;
- background: #498ef5;
- border-right: 1px solid #b8c0cc;
- font-size: 10px;
- white-space: nowrap;
- }
- // .coll-header1-row_border{
- // border-bottom: 1px solid #fff;
- // }
- }
- .coll-header2 {
- // position: absolute;
- // top: 0px;
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- border-spacing: 0;
- height: 237px;
- width: 21px;
- .coll-header2-col {
- width: 23px;
- height: 25px;
- border-top: 1px solid #b8c0cc;
- font-size: 10px;
- line-height: 21px;
- background: #498ef5;
- white-space: nowrap;
- }
- }
- .coll-table-topic {
- background: #f2f3f5;
- border-spacing: 0;
- border-left: 1px solid #d2d1cf;
- border-top: 1px solid #d2d1cf;
- td {
- border-bottom: 1px solid #d2d1cf;
- border-right: 1px solid #d2d1cf;
- div {
- font-size: 8px;
- width: 15px;
- height: 17px;
- line-height: 17px;
- }
- // font-size: 12px;
- .coll-table-topic-item {
- border: none;
- white-space: nowrap;
- div {
- white-space: nowrap;
- }
- }
- }
- .collselected {
- background: #498ef5;
- color: #fff;
- }
- }
- }
- .answer {
- width: 410px;
- font-size: 13px;
- text-align: left;
- height: 41px;
- line-height: 41px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- align-content: center;
- flex-wrap: wrap;
- padding-left: 18px;
- padding-right: 13px;
- border-left: 1px solid #b8c0cc;
- .answer-tip {
- color: #498ef5;
- font-weight: 700;
- }
- .answer-list {
- display: flex;
- justify-content: space-between;
- width: auto;
- height: 24px;
- .answer_selected {
- color: #fff;
- background: #498ef5;
- }
- .answer-list-item {
- width: 24px;
- height: 24px;
- line-height: 24px;
- border-radius: 2px;
- font-size: 13px;
- font-weight: 600;
- border: 1px solid #b8c0cc;
- border-radius: 6px;
- text-align: center;
- margin-left: 6px;
- }
- .answer-list-item_select {
- color: #fff;
- background: #498ef5;
- }
- }
- }
- .answer-img {
- height: 74px;
- }
- .topic {
- border: 1px solid #b8c0cc;
- width: 410px;
- height: 178px;
- position: relative;
- border-top: none;
- border-right: none;
- border-bottom: none;
- padding-top: 6px;
- .topic-issue {
- font-size: 14px;
- padding-left: 10px;
- font-weight: normal;
- text-align: left;
- font-weight: 700;
- }
- .topic-header {
- display: none;
- color: #498ef5;
- background: #f6f2f1;
- top: 0;
- left: 30px;
- text-align: left;
- padding-left: 2px;
- padding-right: 2px;
- white-space: nowrap;
- font-size: 10px;
- }
- .topic-select {
- display: flex;
- width: 100%;
- height: 37px;
- padding-left: 10px;
- padding-right: 10px;
- font-size: 14px;
- flex-wrap: wrap;
- }
- .topic-select-item {
- width: 100%;
- font-size: 14px;
- text-align: left;
- font-weight: 700;
- }
- }
- .student {
- border-bottom: 1px solid #b8c0cc;
- width: 100%;
- height: 175px;
- font-size: 13px;
- position: relative;
- .student-header {
- color: #498ef5;
- background: #f6f2f1;
- text-align: left;
- padding-left: 2px;
- padding-right: 2px;
- white-space: nowrap;
- font-weight: 600;
- font-size: 10px;
- text-align: center;
- margin-top: 7px;
- }
- .driver {
- width: 54px;
- height: 54px;
- }
- .driverInfo {
- font-size: 9px;
- font-weight: 600;
- padding-top: 10px;
- text-align: left;
- padding-left: 10px;
- div {
- margin-bottom: 6px;
- }
- }
- }
- .kaoti {
- width: 100%;
- position: relative;
- height: 46px;
- border-bottom: 1px solid #b8c0cc;
- font-size: 13px;
- font-weight: 600;
- display: flex;
- flex-wrap: wrap;
- align-content: center;
- align-items: center;
- .kaoti-header {
- color: #498ef5;
- background: #f6f2f1;
- width: 100%;
- font-size: 10px;
- text-align: center;
- white-space: nowrap;
- font-size: 12px;
- }
- .kaoti-headerText {
- font-size: 8px;
- font-weight: normal;
- width: 100%;
- text-align: center;
- font-size: 11px;
- color: #3d3c38;
- }
- }
- .restTime {
- width: 100%;
- position: relative;
- height: 42px;
- font-size: 9px;
- font-weight: 600;
- display: flex;
- align-content: center;
- align-items: center;
- flex-wrap: wrap;
- // border-right: 1px solid #b8c0cc;
- .restTime-header {
- color: #498ef5;
- font-size: 11px;
- background: #f6f2f1;
- width: 100%;
- text-align: center;
- padding-left: 8px;
- padding-right: 8px;
- white-space: nowrap;
- }
- .restTime-headerText {
- font-size: 14px;
- color: #3d3c38;
- width: 100%;
- }
- }
- .mt6 {
- margin-top: 6px;
- }
- .mt9 {
- margin-top: 9px;
- }
- .mt19 {
- margin-top: 19px;
- }
- .font13 {
- font-size: 13px;
- }
- </style>
|