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 @@