You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jwl-applet/src/pages/questionBank/practiceExams.vue

71 lines
1.4 KiB

2 years ago
<template>
<view>
2 years ago
<!-- <u-navbar title="模拟考试" @rightClick="rightClick" :autoBack="true">
</u-navbar> -->
2 years ago
<j-navbar :isDefineBack="true" @toBack="toBack">模拟考试</j-navbar>
<Question ref="question" :tabsList="tabsList" v-model:isSubmit="isSubmit" type="exam" :subject="subject" />
2 years ago
</view>
</template>
<script>
2 years ago
import {
2 years ago
getTestQuestion
} from '@/jtools/api/question';
import storage from '@/jtools/storage';
2 years ago
import Question from './components/Question.vue';
2 years ago
export default {
2 years ago
components: {
Question
},
2 years ago
data() {
return {
2 years ago
subject:1,
2 years ago
isSubmit:false,
2 years ago
tabsList:[{
label:"模拟考试",
value:0
},{
label:"考前密卷",
value:1
}]
2 years ago
}
},
2 years ago
onLoad(op) {
if(op.subject){
this.subject=op.subject
getTestQuestion({
carTypeId: storage.get('carType') || '1001',
subject: this.subject
}).then(resp=>{
if(resp.code==='0000'){
this.$refs.question.getQuestionList(JSON.stringify(resp.data))
}
})
}
2 years ago
},
computed: {
},
2 years ago
methods: {
2 years ago
toBack(){
this.$refs.question.submitPaper()
2 years ago
}
2 years ago
}
}
</script>
2 years ago
<style scoped>
::v-deep .u-count-down{
font-size: 28rpx;
color:#fff !important;
display: inline-block !important;
}
::v-deep .u-count-down__text{
font-size: 28rpx;
color:#fff !important;
}
2 years ago
::v-deep .balckColor .u-count-down__text{
font-size: 28rpx;
color:#333 !important;
}
2 years ago
</style>