StartQuestion.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="start-question">
  3. <div class="notice">答题须知</div>
  4. <div class="prompt">
  5. <div>本练习题共{{ questionLength }}题,限时{{ answerTimeLimitMinute }}分钟</div>
  6. <div>点击“开始答题”按钮进行作答,作答完毕后请点击“提交”按钮。</div>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'StartQuestion',
  13. props: {
  14. questionLength: {
  15. type: Number,
  16. default: 0,
  17. },
  18. answerTimeLimitMinute: {
  19. type: Number,
  20. default: 30,
  21. },
  22. },
  23. data() {
  24. return {};
  25. },
  26. methods: {},
  27. };
  28. </script>
  29. <style lang="scss" scoped>
  30. .start-question {
  31. display: flex;
  32. flex-direction: column;
  33. row-gap: 24px;
  34. align-items: center;
  35. justify-content: center;
  36. height: calc(100vh - 245px);
  37. min-height: 400px;
  38. padding: 24px 40px;
  39. background: #f7f7f7;
  40. border-radius: 4px;
  41. .notice {
  42. font-size: 40px;
  43. font-weight: bold;
  44. color: $light-main-color;
  45. }
  46. .prompt {
  47. font-size: 24px;
  48. text-align: center;
  49. }
  50. }
  51. </style>