diff --git a/.env.development.yh b/.env.development.yh index 2b8b529b..193ce295 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -2,9 +2,9 @@ ENV = 'development.yh' # 'development.yh' -VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' -# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604' 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..f2e54504 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -61,7 +61,7 @@ - { + return (dataInfo.value.imageAddrs || []) + }) + const previewFile = info => { previewFileFnc({ fileId: info.fileId, @@ -705,19 +709,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) { // 文本转语音 @@ -942,6 +957,13 @@ &:nth-child(3n){ margin-right: 0; } + &.cont-img-box2{ + width: calc(50% - 10rpx); + height: 200rpx; + &:nth-child(2n){ + margin-right: 0rpx; + } + } } } diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 0655014d..c3c16b5c 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -1,7 +1,7 @@