diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue
index 9667dcc0..abff4c30 100644
--- a/src/pages/course/study.vue
+++ b/src/pages/course/study.vue
@@ -103,8 +103,25 @@
:canAnswer="testAnswer"
:adjustPosition="true"
:canAnswerText="canAnswerText"
- :answerMethod="answerMethod"
+ :answerMethod="answerMethod"
:isDisabled="(lastTalkingInfo.type || 0) !== 4 || ['SN', 'MU', 'JD'].includes(lastTalkingInfo.qnsTyp)" />
+
+
+
@@ -165,8 +182,8 @@ import common from '@/common/common'
import TalkingItem from '@/pages/course/components/talkingItem.vue'
import ImagePreview from '@/components/image-preview/image-preview.vue'
import PreviewDetail from '@/components/image-preview/preview-detail.vue'
-import TouchBtn from '@/pages/course/components/touchBtn.vue'
-import TouchBtnOnlyVoice from '@/pages/course/components/touchBtnOnlyVoice.vue'
+// import TouchBtn from '@/pages/course/components/touchBtn.vue'
+// import TouchBtnOnlyVoice from '@/pages/course/components/touchBtnOnlyVoice.vue'
import badge from '@/components/points-and-badge/badge';
import points from '@/components/points-and-badge/points';
import usePointsAndBadge from '@/components/points-and-badge/usePointsAndBadge';
@@ -885,6 +902,59 @@ const testAnswer = computed(() => {
let _num = _arr.map(t => [1, 2, 6].indexOf(Number(t.type)) >= 0).filter(t => !!t)
return _num.length < 5
})
+
+
+
+const sendLoading = () => {
+ if (!testAnswer.value) {
+ common.msg('每个问题最多连续发送五次答案!')
+ return
+ }
+ isUploadingVoice.value = true
+ let _data = {
+ stdyId: unref(stdyId),
+ qnsId: unref(lastTalkingInfo).qnsId, // 问题ID 必输项:true 类型:String
+ pgrphId: unref(lastTalkingInfo).pgrphId, // 段落ID 必输项:true 类型:String
+ qstLogId: unref(qstLogId), // 段落ID 必输项:true 类型:String
+ crsId: crsId.value, // 课程ID 必输项:true 类型:String
+ stdyBatch: stdyBatch.value, // 学习批次 必输项:true 类型:String
+ ansterContent: '', // 回答文本内容 必输项:false 类型:String
+ asrStartTm: unref(lastTalkingInfo).asrStartTm
+ }
+ let _id = new Date().getTime() + 'id'
+ //#ifndef APP-PLUS
+ // h5 假数据
+ talkingList.value.push({
+ crsId: crsId.value,
+ pgrphId: unref(lastTalkingInfo).pgrphId,
+ qnsId: unref(lastTalkingInfo).qnsId,
+ talkingContent: '',
+ talkingVoice: voicePath,
+ type: 1,
+ userInfo: {
+ ...choiceTeacherInfo.value
+ },
+ id: _id
+ })
+ setIsUploadingVoice()
+ scrollToBottomNow()
+ // #endif
+
+}
+// 新录音组件语音提交
+const submitVoice = ({ossKey,text}) => {
+ if(!ossKey) {
+
+ } else if (text === '') {
+
+ } else {
+
+ unref(ajaxApi)({
+ processType: 'ANSER-TEXT',
+ requestBody: JSON.stringify(_data)
+ })
+ }
+}
const uploadRecordNow = (voicePath, voiceTime) => {
if (!testAnswer.value) {
common.msg('每个问题最多连续发送五次答案!')
diff --git a/src/pages/index/components/question.vue b/src/pages/index/components/question.vue
index e95e15bb..3149dc0c 100644
--- a/src/pages/index/components/question.vue
+++ b/src/pages/index/components/question.vue
@@ -47,6 +47,7 @@