ソースを参照

常规视康训练字字匹配提交

周玉佂 1 週間 前
コミット
cd6766b437

+ 4 - 4
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskVisualTraining/components/wordWord/index.vue

@@ -117,7 +117,7 @@ let currentLevel = 0
 // 得分列表
 const scoreList = [10, 30, 60, 100, 150, 210]
 
-const chengList = ref(['1', '2', '3', '4'])
+const chengList = ref(['1', '2', '3', '4', '5', '6', '7', '8', '9'])
 // 响应开始时间戳
 let responseStartTime = 0
 // 游戏收集的数据
@@ -132,7 +132,6 @@ const maxLevel = 0
 // 当前试次
 let currentNumber = 0
 // 每个等级的最大试次 15
-const maxNumber = 2
 let timerId: any
 const $emits = defineEmits(['close'])
 const openDialogRef = ref()
@@ -164,7 +163,6 @@ const handleClick = (answer: string, index, flag) => {
     console.log(answer, '用户操作数据', index, flag)
     const correct = false
     confirmation.value = true
-    flagFlag.value = -1
     localStorage.setItem('two-win-Visual-item-confirmation', 'true')
     // const correct = onceData.value.answer === answer
     // VoiceImpRef.value.videoPlay('click')
@@ -213,6 +211,7 @@ const nextOnce = () => {
   gameEndTime = performance.now()
   const gameDuration = gameEndTime - gameStartTime
   // 如果当前等级的试次小于最大试次,则试次加一,否则应该进入下一等级
+  let maxNumber = gameData.value.length - 1
   if (currentNumber < maxNumber) {
     currentNumber++
   } else {
@@ -369,7 +368,7 @@ onMounted(() => {
       if (val.key === 'two-win-Visual-item-confirmation') {
         let a = localStorage.getItem('two-win-Visual-item-confirmation')
         confirmation.value = a == 'true'
-        flagFlag.value = -1
+        // flagFlag.value = -1
         localStorage.removeItem('two-win-Visual-item-confirmation')
       }
       if (val.key === 'two-win-Visual-item-submitList') {
@@ -381,6 +380,7 @@ onMounted(() => {
       console.log('')
       if (val.key === 'two-win-Visual-item-next') {
         nextOnce()
+        flagFlag.value = -1
         localStorage.removeItem('two-win-Visual-item-next')
       }
     }

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

@@ -64,7 +64,6 @@
         />
       </div>
     </div>
-
     <Word-word v-if="gameActive === '1'" @close="handleClose" />
 
     <VoiceImp ref="VoiceImpRef" />