From 5dfecfeae08069e1debd637a8b02e3c1616af2da Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 20 六月 2024 16:08:17 +0800
Subject: [PATCH] fix:修改成绩单页面问题
---
src/components/ExamInfo/index.vue | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/components/ExamInfo/index.vue b/src/components/ExamInfo/index.vue
index 8fd4032..c092215 100644
--- a/src/components/ExamInfo/index.vue
+++ b/src/components/ExamInfo/index.vue
@@ -1,31 +1,39 @@
<template>
<div class="info-container w-full">
<div class="exam-title break-all mb-4 text-base text-gray-700">
- {{ title }}
+ 绗瑊{questionIndex + 1}}棰�: {{ activeQuestion.title }}
</div>
- <div class="img-container flex">
+
+ <div class="audio-container" v-if="activeQuestion.audioFile">
+ <ExamAudio :audioSrc="activeQuestion.audioFile"></ExamAudio>
+ </div>
+
+ <div class="img-container flex" v-if="activeQuestion.img">
<div class="img-item">
- <img src="@/assets/test.png" class="width-img" alt="">
+ <img :src="activeQuestion.img" class="info-img" alt="">
</div>
</div>
</div>
</template>
<script setup>
+import ExamAudio from '@/components/ExamAudio/index.vue';
+
const props = defineProps({
questionIndex: {
type: Number,
required: true
},
- title: {
- type: String,
+ activeQuestion: {
+ type: Object,
required: true
}
})
</script>
<style lang="scss" scoped>
-.img-item {
- max-width: 400px;
+.info-img {
+ max-height: 250px;
+ margin: 20px 10px;
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0