From 20d8abfa8528f515e373285e4f96e52c41c4736c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 24 Nov 2025 11:15:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/pages/course/study.vue | 10 +++++++++- src/pages/index/dialog.vue | 9 +++++++++ src/pages/sparring/components/answer.vue | 4 ++++ src/pages/sparring/components/question.vue | 5 +++-- src/pages/sparring/result.vue | 10 +++++++++- src/pages/sparring/tip.vue | 13 +++++++++++-- 7 files changed, 47 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 136e3641..7ca2ff22 100644 --- a/.env.development +++ b/.env.development @@ -8,14 +8,14 @@ ENV = 'development' #VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' -# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' # VITE_APP_BASE_API_Url = 'http://aitscdn.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = 'http://192.168.108.129' # dev -VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # sit diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index e39f0779..9413450c 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -1260,7 +1260,15 @@ const chooseRateNow = item => { color: #000; position: sticky; top: 0; - + + .top-desc{ + position: absolute; + bottom: -10rpx; + font-size: 18rpx; + color: #999; + left: 50%; + transform: translateX(-50%); + } // margin-bottom: 23rpx; .arrow-icon { position: absolute; diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index 2608579a..7dcd07a9 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -14,6 +14,7 @@ AI问答 + 内容由AI生成 { talkVoiceObj.value.src = itemVoice.value; if (voiceIsPlaying.value) return + if(unref(dataInfo)?.id !== props.activeVoiceId) return talkVoiceObj.value.play(); }, 100); } else { @@ -185,6 +186,7 @@ itemVoice.value = url; talkVoiceObj.value.src = url; if (voiceIsPlaying.value) return + if(unref(dataInfo)?.id !== props.activeVoiceId) return talkVoiceObj.value.play(); } else { downloadVoiceFile(_url) @@ -197,6 +199,7 @@ itemVoice.value = res.tempFilePath; talkVoiceObj.value.src = res.tempFilePath; if (voiceIsPlaying.value) return + if(unref(dataInfo)?.id !== props.activeVoiceId) return talkVoiceObj.value.play(); storageStore.setStorage('audio', _url + _params.teachNo, itemVoice.value); }) @@ -260,6 +263,7 @@ () => props.dataInfo, (val) => { if (val.execLogId && isStudy.value) { + if(unref(dataInfo)?.id !== props.activeVoiceId) return playVoice() } }, { diff --git a/src/pages/sparring/components/question.vue b/src/pages/sparring/components/question.vue index 6d216f0b..d9b1e7d4 100644 --- a/src/pages/sparring/components/question.vue +++ b/src/pages/sparring/components/question.vue @@ -13,7 +13,7 @@ - + { // talkUserVoiceObj.value.src = itemVoice.value talkUserVoiceObj.value.play() + isPlaying.value = true }, 300) return } else { @@ -137,7 +138,7 @@ isTesting.value = true talkUserVoiceObj.value.volume = 0 talkUserVoiceObj.value.play() - talkUserVoiceObj.value.pause() + // talkUserVoiceObj.value.pause() } // #endif setTimeout(() => { diff --git a/src/pages/sparring/result.vue b/src/pages/sparring/result.vue index b240dff4..829a53fc 100644 --- a/src/pages/sparring/result.vue +++ b/src/pages/sparring/result.vue @@ -9,6 +9,7 @@ {{ '陪练报告' }} + 内容由AI生成 @@ -324,7 +325,14 @@ top: var(--status-bar-height); left: 0; z-index: 2; - + .top-desc{ + position: absolute; + bottom: 0; + font-size: 186rpx; + color: #999; + left: 50%; + transform: translateX(-50%); + } .top-title { height: 90rpx; // background-color: red; diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 87313aff..1e9704b9 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -10,6 +10,7 @@ {{ detailInfo.traName }} + 内容由AI生成 @@ -328,7 +329,7 @@ talkingText: body.content, isLoading: false, intrctWay: '02', - id: _id, + id: _id + 'qns', ...body, talkingVoice: askData.value.talkingVoice }); @@ -361,7 +362,7 @@ talkingText: answerText.value, isLoading: false, execLogId: body.execLogId||'', - id: _id, + id: _id + 'ans', ...body, askData: { ...askData.value @@ -519,6 +520,14 @@ left: 0; z-index: 2; + .top-desc{ + position: absolute; + bottom: 0; + font-size: 18rpx; + color: #999; + left: 50%; + transform: translateX(-50%); + } .top-title { height: 90rpx; // background-color: red;