2022-01-07 14:43:46 +08:00

41 lines
1.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<a-modal title="课中检查" :visible="visible" :confirm-loading="confirmLoading" :footer="null" :closable="false">
<DbQuestionItem></DbQuestionItem>
<div class="text-center margin-top">
<a-button type="primary" @click="handlerSubmit">提交</a-button>
</div>
<p class="tip-info margin-top">
注意每段课程学习完成后都会随机出现1道小题答对题目方可继续下一部分学习您有2次机会否则之前上一小段学习时间不计算学时需要重新学习
</p>
</a-modal>
</template>
<script>
import DbQuestionItem from '@/components/DbQuestionItem/index.vue'
export default {
components: { DbQuestionItem },
data () {
return {
visible: false,
confirmLoading: false
}
},
methods: {
show(){
this.visible = true
},
handlerSubmit () {
// 处理考试提交逻辑
this.visible = false
}
}
}
</script>
<style lang="less" scoped>
.tip-info {
margin-top: 10px;
color: #f5222d;
}
</style>