Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop
This commit is contained in:
@@ -131,11 +131,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { watch, unref, ref, toRefs, computed, nextTick } from 'vue'
|
||||
import { watch, unref, ref, toRefs, computed, nextTick,onMounted } from 'vue'
|
||||
import ImagePreview from '@/components/image-preview/image-preview.vue'
|
||||
import VideoPreview from '@/components/image-preview/video-preview.vue'
|
||||
import { downloadVoiceFile, uploadVoiceFile, } from "@/api/common.js"
|
||||
import { studyParagraphOverApi } from "@/api/study.js"
|
||||
import { studyParagraphOverApi, getAskAboutRawApi } from "@/api/study.js"
|
||||
import ChartFour from "./chartFour.vue"
|
||||
import ChartThree from "./chartThree.vue"
|
||||
import common from '@/common/common';
|
||||
@@ -169,7 +169,11 @@ const audioCacheObj = computed(() => storageStore.audioObj)
|
||||
voiceRate: {
|
||||
default: '1.0',
|
||||
type:[Number,String],
|
||||
}
|
||||
},
|
||||
isTransform:{
|
||||
default: false,
|
||||
type: Boolean
|
||||
},
|
||||
})
|
||||
const { type, dataInfo, activeVoiceId, isPlaying, isLast} = toRefs(props)
|
||||
const emit = defineEmits(['changePlay', 'nextQuestion', 'withdraw', 'finishQuestion'])
|
||||
@@ -194,6 +198,23 @@ const audioCacheObj = computed(() => storageStore.audioObj)
|
||||
immediate: true
|
||||
})
|
||||
|
||||
const transformContent = ref('')
|
||||
const showContent = computed(() => {
|
||||
return props.isTransform
|
||||
? transformContent.value
|
||||
: unref(dataInfo)?.pgrphContent || unref(dataInfo)?.qnsContent || unref(dataInfo)?.talkingContent || ''
|
||||
})
|
||||
|
||||
onMounted(()=>{
|
||||
// getAskAboutRawApi({
|
||||
// question: unref(dataInfo)?.pgrphContent,
|
||||
// streaming: true
|
||||
// }).then(res=>{
|
||||
// console.log(res)
|
||||
// })
|
||||
if(props.isTransform){}
|
||||
})
|
||||
|
||||
talkVoiceObj.value.onEnded(()=>{
|
||||
emit('changePlay', '')
|
||||
talkVoiceObj.value.src = ''
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="course-study-body" v-show="step === 1">
|
||||
<view class="seek-setting" @click="showSeekModel = true">
|
||||
{{chooseRate}}倍
|
||||
<img src="@/static/images/course/setting.png" alt="">
|
||||
<image src="@/static/images/course/setting.png" alt=""/>
|
||||
</view>
|
||||
<view class="body-title">
|
||||
<uv-icon class="arrow-icon" name="arrow-left" @click="common.navigateBack()"/>
|
||||
|
||||
Reference in New Issue
Block a user