From c2141549eb69401d8acf6e3c53b643e8d7fc9ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 18 Sep 2025 10:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=99=82=E9=96=93=E6=9C=83?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=E4=B8=8A=E6=AC=A1=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/components/examination/question.vue | 24 +- src/pages/course/components/talkingItem.vue | 1905 ++++++++++--------- 3 files changed, 1028 insertions(+), 903 deletions(-) diff --git a/.env.development b/.env.development index f1545767..70d0ab7c 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 开发环境 ENV = 'development' # 'development' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # UAT # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue index ce182717..678d4a7a 100644 --- a/src/components/examination/question.vue +++ b/src/components/examination/question.vue @@ -81,9 +81,9 @@ import { computed, unref, ref, toRefs, watch, onMounted, nextTick } from 'vue'; import { onUnload } from '@dcloudio/uni-app'; // import { useinnerAudio, useAudioFun } from '@/store/innerAudio'; - + import { useAudio } from './useAudio.js'; - import {downloadFile} from '@/api/common.js' + import { downloadFile } from '@/api/common.js'; const props = defineProps({ dataInfo: { default: () => ({}), @@ -128,7 +128,7 @@ }); const innerAudio = useAudio(); - + const status = computed(() => props.status); watch( () => props.status, @@ -157,6 +157,9 @@ nextTick(() => { textShow.value = true; }); + setTimeout(() => { + voiceTime.value = ''; + }, 0); } emit('buutton_click', type, props.dataInfo); }; @@ -173,7 +176,7 @@ textShow.value = false; } }; - + const playVoice = () => { // isPlaying.value = true; console.log('点击播放'); @@ -210,15 +213,18 @@ watch( () => props.dataInfo.voicePath, (newVal) => { - console.log('newVal', newVal); - if(newVal === '' && props.dataInfo.ossKey) { // 去下载oss内容 + + if (newVal === '' && props.dataInfo.ossKey) { + // 去下载oss内容 console.log('去下载oss内容'); - downloadFile(props.dataInfo.ossKey).then(res => { + downloadFile(props.dataInfo.ossKey).then((res) => { + voiceTime.value = ''; innerAudio.setAudioSrc(res.tempFilePath); - }) - } else if(newVal === undefined){ + }); + } else if (newVal === undefined) { innerAudio.stopAudio(); } else { + voiceTime.value = ''; innerAudio.setAudioSrc(newVal); } }, diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 06453ab7..f5f1a5b1 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -10,955 +10,1074 @@ 8 问题反馈信息 9 已学完当前知识点反馈信息 --> -