QuestionItem.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <div class="question_preview">
  3. <div class="question_header">
  4. <div class="header_index">
  5. {{ index}}
  6. </div>
  7. <span class="header_type">
  8. 选择题
  9. </span>
  10. <span class="header_difficulty">
  11. 容易
  12. </span>
  13. <div class="header_exam_name">
  14. 25-26学年高一下学期期末考试 第14题
  15. </div>
  16. </div>
  17. <div class="question_content" v-html="questionContent">
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. // 题目预览公共组件
  23. import { mapGetters } from "vuex";
  24. export default {
  25. components: {
  26. },
  27. props: {
  28. questionData: {
  29. type: Object,
  30. default: () => {
  31. return {};
  32. },
  33. },
  34. index: {
  35. type: Number,
  36. default: 1,
  37. },
  38. },
  39. computed: {
  40. },
  41. data() {
  42. return {
  43. questionContent:"<div class=\"qml-stem\" data-copyright=\"xkw.com-1778721752-107161725521013800-LOqLkjMPMHlPSNdJ2YSObDfSIpJYVbaMq2PwNexeT3jLb8OIq6bBG4DxeSUqDFM9\"><p style=\"text-align: left;\"><span style=\"font-family: 宋体;\">赏析有误的一项是(<span style=\"font-family: 'Times New Roman'\" qml-space-size=\"3\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>)</span></p><p style=\"text-align: center;\"><span style=\"font-family: 楷体;\">十一月四日风雨大作(其二)</span></p><p style=\"text-align: center;\"><span style=\"font-family: 楷体;\">陆游</span></p><p style=\"text-align: center;\"><span style=\"font-family: 楷体;\">僵卧孤村不自哀,尚思为国戍轮台。</span></p><p style=\"text-align: center;\"><span style=\"font-family: 楷体;\">夜阑卧听风吹雨,铁马冰河入梦来。</span></p><div class=\" qml-og\"><table class=\"qml-og\" style=\"width:100%\"><tr><td>A.&nbsp;<span class=\"qml-op\"><span style=\"font-family: 宋体;\">全诗由述志和记梦两部分组成,两者之间是因果关系。</span></span></td></tr><tr><td>B.&nbsp;<span class=\"qml-op\"><span style=\"font-family: 宋体;\">诗中“尚”字表现了诗人强烈而至死不渝的爱国之情,报国之志。</span></span></td></tr><tr><td>C.&nbsp;<span class=\"qml-op\"><span style=\"font-family: 宋体;\">诗的后两句都是写梦境,与前两句写实相映衬。</span></span></td></tr><tr><td colspan=\"1\">D.&nbsp;<span class=\"qml-op\"><span style=\"font-family: 宋体;\">全诗气势豪壮,感情真挚,具有强烈的感染力。</span></span></td></tr></table></div></div>",//总菜单
  44. };
  45. },
  46. watch: {
  47. userInfo: {
  48. handler(newValue, oldValue) {
  49. console.log(newValue, oldValue);
  50. },
  51. deep: true, // 监听对象的深层变化
  52. },
  53. },
  54. created() {
  55. },
  56. mounted() {
  57. },
  58. methods: {
  59. },
  60. };
  61. </script>
  62. <style lang="scss" scoped>
  63. .question_preview
  64. {
  65. width: 100%;
  66. height: auto;
  67. // background: #FFFFFF;
  68. // border-radius: 10px 10px 10px 10px;
  69. // border: 1px solid #DCDFE6;
  70. // padding: 16px;
  71. // box-sizing: border-box;
  72. .question_header
  73. {
  74. width: 100%;
  75. height: 25px;
  76. background: #fff;
  77. display: flex;
  78. justify-content:flex-start;
  79. align-items: center;
  80. gap: 16px;
  81. margin-bottom: 16px;
  82. .header_index
  83. {
  84. width: 20px;
  85. height: 20px;
  86. line-height: 18px;
  87. background: #F3F3F3;
  88. border-radius: 2px 2px 2px 2px;
  89. font-weight: 500;
  90. font-size: 14px;
  91. color: #333333;
  92. text-align: center;
  93. }
  94. .header_type
  95. {
  96. font-weight: 550;
  97. font-size: 14px;
  98. color: #333333;
  99. }
  100. .header_difficulty
  101. {
  102. font-weight: 400;
  103. font-size: 14px;
  104. color: #90CB75;
  105. }
  106. .header_exam_name
  107. {
  108. font-weight: 400;
  109. font-size: 14px;
  110. color: #999999;
  111. }
  112. }
  113. .question_content
  114. {
  115. width: 100%;
  116. height: auto;
  117. background: #fff;
  118. }
  119. }
  120. </style>