From d8da850d926512e96900efbdd46c4c84f1e946bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 28 Aug 2025 23:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=83=E4=B9=A0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E7=AD=94=E9=A2=98=E7=AD=94=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/examination/es-analysis.vue | 131 +++++++ src/components/examination/question.vue | 140 ++++--- src/components/examination/subject.vue | 47 ++- src/pages/courseDetail/components/comment.vue | 19 +- src/pages/courseDetail/index.vue | 1 - src/pages/examination/components/dialog.vue | 2 +- src/pages/examination/components/feedback.vue | 2 +- src/pages/examination/index.vue | 22 +- src/pages/index/index.vue | 362 +++++++++--------- src/pages/practice/index.vue | 237 +++++++----- .../preview/components/previewCourse.vue | 3 +- src/pages/search/search.vue | 2 +- src/pages/testingHall/components/content.vue | 2 - 13 files changed, 604 insertions(+), 366 deletions(-) create mode 100644 src/components/examination/es-analysis.vue diff --git a/src/components/examination/es-analysis.vue b/src/components/examination/es-analysis.vue new file mode 100644 index 00000000..6174f9f2 --- /dev/null +++ b/src/components/examination/es-analysis.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue index d31e00aa..e2562594 100644 --- a/src/components/examination/question.vue +++ b/src/components/examination/question.vue @@ -1,57 +1,63 @@ @@ -85,12 +91,23 @@ default: '', type: String }, - isPreview: { // 是否是预览语音 + isPreview: { + // 是否是预览语音 default: false, type: Boolean - } + }, + button_again_show: { + // 是否显示重答按钮 + default: true, + type: Boolean + }, + button_complete_show: { + // 是否显示重答按钮 + default: true, + type: Boolean + }, }); - + console.log('props.isPreview', props.isPreview); const audioStore = useAudioStore(); const { dataInfo } = toRefs(props); const status = computed(() => props.status); @@ -139,7 +156,7 @@ console.log('点击播放'); audioStore.playAudio(); }; - let unsubscribe = () =>{}; + let unsubscribe = () => {}; onMounted(() => { // 2. 监听 Store 中 isPlaying 的变化,实时同步 unsubscribe = audioStore.$subscribe((mutation, state) => { @@ -174,12 +191,16 @@ audioStore.stopAudio(); // 2. 移除当前组件注册的回调(避免内存泄漏) audioStore.removeCallbacks(); - + unsubscribe(); }); \ No newline at end of file + diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 718df892..a818c10a 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -38,6 +38,7 @@ @change="swiperChange" :current="questionNumber" easing-function="linear" + @transition="transition" > @@ -62,9 +63,7 @@ ref="touchBtnRef" class="talk-btns" @submit="touchBtnSubmit" - loadingText="问题回答中,请在问题回答结束后重试!" disabledText="只能进行一条回答" - :isLoading="!answerIsOver" :isDisabled="touchIsDisabled" /> @@ -72,24 +71,26 @@ - +