From 20e82f78d44e99326ef0bff417177bf83322d79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 30 Dec 2025 11:01:43 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5Ffeat:=20=E8=AF=AD=E9=9F=B3=E8=BD=AC=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.development.yh | 2 +- src/common/common.js | 2 +- src/pages/course/components/talkingItem.vue | 35 +- src/pages/course/components/touchBtn.vue | 492 +++++++++--------- .../{touchBtn0.vue => touchBtn1.vue} | 128 +++-- src/pages/course/study.vue | 1 + src/pages/index/dialog.vue | 15 +- src/static/images/course/cancel-btn.png | Bin 0 -> 4635 bytes src/static/images/course/trans-btn.png | Bin 0 -> 5391 bytes 10 files changed, 355 insertions(+), 322 deletions(-) rename src/pages/course/components/{touchBtn0.vue => touchBtn1.vue} (88%) create mode 100644 src/static/images/course/cancel-btn.png create mode 100644 src/static/images/course/trans-btn.png diff --git a/.env.development b/.env.development index e336ca73..e26f82e8 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ ENV = 'development' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' diff --git a/.env.development.yh b/.env.development.yh index 2b8b529b..3930e2a8 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -9,7 +9,7 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604' # VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603' -# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' +VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.158:9601' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602' diff --git a/src/common/common.js b/src/common/common.js index 613c33cd..e5416482 100644 --- a/src/common/common.js +++ b/src/common/common.js @@ -5,7 +5,7 @@ import { import showDialog from '@/common/dialogMessage' import common from '@/common/common' // #endif -function msg(title, duration = 1000) { +function msg(title, duration = 1500) { uni.showToast({ title: title, duration: duration, diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 7b12b937..d4fc921f 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -705,19 +705,30 @@ // } }; const setVoiceTime = (sum) => { - sum += 1; - if (talkVoiceObj.value.duration) { - voiceTime.value = (Math.ceil(talkVoiceObj.value.duration) || 0) + 's'; - } else { - if (sum === 100) { - voiceTime.value = (unref(dataInfo).voiceTime || 0) + 's'; - return; + plus.io.getAudioInfo({ + filePath: unref(dataInfo).talkingVoice, + success:(res)=>{ + voiceTime.value = (Math.floor(res.duration) || 1) + 's' + }, + fail:(res)=>{ + voiceTime.value = (unref(dataInfo).voiceTime || 1) + 's' } - setTimeout(() => { - setVoiceTime(sum); - }, 300); - } - }; + }) + } + // const setVoiceTime = (sum) => { + // sum += 1; + // if (talkVoiceObj.value.duration) { + // voiceTime.value = (Math.ceil(talkVoiceObj.value.duration) || 0) + 's'; + // } else { + // if (sum === 100) { + // voiceTime.value = (unref(dataInfo).voiceTime || 0) + 's'; + // return; + // } + // setTimeout(() => { + // setVoiceTime(sum); + // }, 300); + // } + // }; const playQnsVoice = (readType = 'qns', item) => { if (type.value === 2) { // 文本转语音 diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 2e221eb8..c3c16b5c 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -1,7 +1,7 @@