diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue
index f723dec9..a77c9905 100644
--- a/src/pages/course/components/talkingItem.vue
+++ b/src/pages/course/components/talkingItem.vue
@@ -65,7 +65,7 @@
-
+
{{ userInfo.userName }}
@@ -97,7 +97,7 @@
style="width: 100%;height: 100%;"
>
- 文
+ 文
完成
撤回
@@ -107,7 +107,7 @@
-
+
{{ userInfo.userName }}
@@ -148,6 +148,7 @@ import { getUserInfo } from '@/common/common';
})
const { type, dataInfo, activeVoiceId } = toRefs(props)
const emit = defineEmits(['changePlay', 'nextQuestion'])
+ // 声音播放初始化
const talkVoiceObj = uni.createInnerAudioContext()
const userInfo = computed(() => getUserInfo())
watch(() => props.activeVoiceId,(val) => {
@@ -160,7 +161,6 @@ import { getUserInfo } from '@/common/common';
})
talkVoiceObj.onEnded(()=>{
- // talkVoiceObj.src = ''
emit('changePlay',unref(dataInfo)?.id)
})
talkVoiceObj.onError(()=>{
@@ -171,8 +171,8 @@ import { getUserInfo } from '@/common/common';
talkVoiceObj.pause()
emit('changePlay',unref(dataInfo)?.id)
}
+ // 重播
const restartPlay = () => {
- console.log(userInfo)
if(talkVoiceObj.src){
talkVoiceObj.seek(0)
talkVoiceObj.play()
@@ -205,7 +205,9 @@ import { getUserInfo } from '@/common/common';
}
}
const playQnsVoice = (readType = 'qns', item) =>{
- if(item.type === 2){
+ console.log(unref(dataInfo))
+ if(type.value === 2){
+ // 录音
playVoice(readType)
return
}
diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue
index 0a5b2e8d..28585253 100644
--- a/src/pages/course/study.vue
+++ b/src/pages/course/study.vue
@@ -37,7 +37,7 @@
课程学习
-
+
{{ showOrder }} / {{ pgrphNum }}
@@ -95,7 +95,7 @@