Sfoglia il codice sorgente

修改消防新增形状知觉

plg 1 giorno fa
parent
commit
f3f0729914

+ 12 - 0
src/views/Cognize.vue

@@ -35,6 +35,9 @@ onMounted(() => {
     planId.value = route.params.planId as string
     planName.value = route.params.planName as string
     type.value = route.params.type as string
+    if (flag.value == 'SHAPE_RANDOM') {
+        isPass.value = userInfoStore().isPass
+    }
     if (flag.value == 'ETB01') {
         isPass.value = userInfoStore().isPassETB01
     }
@@ -104,6 +107,14 @@ const startCog = (val: number) => {
     //         name: 'shapeIntuitionRandom',
     //         params: { planId: planId.value, planName: planName.value, flag: flag.value, flagName: cognizeDetail.value.name, formalTest: val }
     //     })
+    //跳转到鸭蛋
+    if (flag.value == 'SHAPE_RANDOM') {
+        router.push(
+            {
+                name: 'shapeIntuitionRandom',
+                params: { planId: planId.value, planName: planName.value, flag: flag.value, flagName: cognizeDetail.value.name, formalTest: val }
+            })
+    }
 
     //更改到 跳转到人脸表情这里的认知任务
     if (flag.value == 'ETB01') {
@@ -286,6 +297,7 @@ onUnmounted(() => {
                                 <!-- <source src="../assets/cognize/Stroop.mp4" type="video/mp4"> -->
                                 <source src="../assets/cognize/Stroop.mp4" v-if="flag == 'EMOTION_STROOP'"
                                     type="video/mp4">
+                                <source src="../assets/cognize/yd.mp4" v-if="flag == 'SHAPE_RANDOM'" type="video/mp4">
                                 <source src="../assets/cognize/dt.mp4" v-if="flag == 'FDOT'" type="video/mp4">
                                 <!-- <source src="movie.ogg" type="video/ogg"> -->
                                 您的浏览器不支持 video 标签。

+ 3 - 1
src/views/shapeIntuition_random.vue

@@ -37,6 +37,8 @@
           </p>
           <img v-show="showMouseLeft" src="../assets/cognize/mouseL.png" alt="" style="visibility: hidden;">
           <img v-show="showMouseRight" src="../assets/cognize/mouseR.png" alt="" style="visibility: hidden;">
+          <!-- <img v-show="showMouseLeft" src="../assets/cognize/mouseL.png" alt="">
+          <img v-show="showMouseRight" src="../assets/cognize/mouseR.png" alt=""> -->
         </div>
       </div>
       <!-- <img v-show="showWhiteFlag" src='../../assets/congnitiveAblitity/whiteFlag.png' alt="" style="width: 50px; height: 50px; margin-top: 20%"> -->
@@ -300,7 +302,7 @@ export default {
 
         if (this.userRightResponseCount / this.userTestPicList.length >= 0.8) {
           //设置状态为true
-          userInfo.saveIspass()
+          userInfo.saveIspass('')
           this.$message({
             message: `练习测试通过!正确率为${this.userRightResponseCount / this.userTestPicList.length * 100}%`,
             type: "success",

+ 1 - 1
src/views/shapeIntuition_random2.vue

@@ -86,7 +86,7 @@ const state = reactive({
 
 // 页面初始化函数
 const init = (taskId) => {
-  startTest(1);
+  startTest(0);
 };
 
 // 用户点击事件