Browse Source

常规训练口语表达

周玉佂 4 days ago
parent
commit
84eda82a22

+ 1 - 1
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskOralExpression/OralExpressionName/index.vue

@@ -12,7 +12,7 @@
       <el-image
         :src="`/static/image/cognitiveAbility/SpeechTraining/OralExpression/${TopicsVal[currentIndex].correct}.png`"
         fit="contain"
-        class="w-[440px] h-[440px] mt-150px cursor-pointer hover:scale-101"
+        class="w-[440px] h-[440px] mt-30px cursor-pointer hover:scale-101"
       />
       <!--      @click="handlePlay"-->
     </div>

+ 2 - 2
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskOralExpression/OralExpressionParaphraseWords/index.vue

@@ -198,7 +198,7 @@ const handleItemClick = (item: string, index: number) => {
   if (isSubmitting) return // 如果再提交进程中,不响应点击事件
   if (!isMainWin.value) {
     VoiceImpRef.value.videoPlay()
-    TopicsVal.value[currentIndex.value].userAnswer = item
+    TopicsVal.value[currentIndex.value].userAnswer = TopicsVal.value[currentIndex.value].correct
     useClickIndex.value = index
     showSubmitBtn.value = true
     localStorage.setItem(
@@ -281,7 +281,7 @@ onMounted(() => {
         tipsFlag.value = true
         VoiceImpRef.value.videoPlay(
           'Speech-Auditory',
-          `static/voice/cognitiveAbility/SpeechTraining/Auditory/WordImgMatching/${val.newValue}-tips.mp3`
+          `static/voice/cognitiveAbility/SpeechTraining/OralExpression/OralExpressionParaphraseWords/${TopicsVal.value[currentIndex.value].correct}.mp3`
         )
         localStorage.removeItem('two-win-auditory-word-img-matching-item-check')
       }

+ 1 - 1
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskVisualTraining/components/essay/index.vue

@@ -217,7 +217,7 @@ const handleItemClick = (item: string, index: number) => {
     // VoiceImpRef.value.videoPlay()
     console.log(item, '点击的词语', index, '点击的索引')
     dataEssay.value += item.name
-    TopicsVal.value[currentIndex.value].userAnswer = item.name
+    TopicsVal.value[currentIndex.value].userAnswer = dataEssay.value
     TopicsVal.value[currentIndex.value].choices[index].active = true
     useClickIndex.value = index
     showSubmitBtn.value = true