人生啊人生 2 тижнів тому
батько
коміт
354cfaa154

+ 4 - 0
src/components/ThreeWorldEventQingXiCheAndQv/ThreeWorldEventMainQingXiCheAndQv.vue

@@ -367,6 +367,10 @@ const callbackCameraVisualAngleJsonToLookEvent = (json) => {
         objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车进入副驾驶2");
     }
 
+    if (json.name == '清洗车下车_1') {
+        objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车下车_2");
+    }
+
 }
 
 

+ 22 - 4
src/components/ThreeWorldEventQingXiCheAndQv/event/store/QingXiCheAndQvProcessEventStore.js

@@ -76,7 +76,7 @@ export const QingXiCheAndQvProcessEventStore = defineStore('QingXiCheAndQvProces
                     "model_1754298683935左门_primitive5" : "",
                 },
             },
-
+            
             {
                 "note" : "确认手刹已拉起,档位是P档,然后发动车辆",
                 "name" : "确认手刹已拉起档位是P档然后发动车辆",
@@ -161,17 +161,35 @@ export const QingXiCheAndQvProcessEventStore = defineStore('QingXiCheAndQvProces
             },
 
             {
-                "note" : "下车确定安全灯显示是否正常(请点击地面触发)",
-                "name" : "下车确定安全灯显示是否正常",
+                "note" : "下车(请点击左门触发)",
+                "name" : "下车",
                 "correctAnswerMesh" : {
-                    "model_1754298683935离合" : "",
                     "model_1754298683935左门_primitive0" : "",
                     "model_1754298683935左门_primitive1" : "",
                     "model_1754298683935左门_primitive2" : "",
                     "model_1754298683935左门_primitive3" : "",
                     "model_1754298683935左门_primitive4" : "",
                     "model_1754298683935左门_primitive5" : "",
+                },
+            },
+
+            {
+                "note" : "下车确定安全灯显示是否正常(请点击地面触发)",
+                "name" : "下车确定安全灯显示是否正常",
+                "correctAnswerMesh" : {
+                    // "model_1754298683935离合" : "",
+                    // "model_1754298683935左门_primitive0" : "",
+                    // "model_1754298683935左门_primitive1" : "",
+                    // "model_1754298683935左门_primitive2" : "",
+                    // "model_1754298683935左门_primitive3" : "",
+                    // "model_1754298683935左门_primitive4" : "",
+                    // "model_1754298683935左门_primitive5" : "",
                     // "model_1754298683931地面_primitive0" : "",
+
+                    "model_1754298683935车厢_primitive0" : "",
+                    "model_1754298683935车厢_primitive1" : "",
+                    "model_1754298683935车厢_primitive2" : "",
+
                 },
             },
 

+ 51 - 4
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEvent.js

@@ -349,6 +349,10 @@ export class QingXiCheAndQvCarEvent {
                 thisClass.work_new_6_1();
                 break;
 
+            case '下车':
+                thisClass.work_new_6_2();
+                break;
+
             // 下车确定安全灯显示是否正常
             case '下车确定安全灯显示是否正常':
                 thisClass.work_new_7();
@@ -1060,9 +1064,9 @@ export class QingXiCheAndQvCarEvent {
     }
 
     /**
-     * 下车确定安全灯显示是否正常
+     * 下车
      */
-    work_new_7 = function() {
+    work_new_6_2 = function() {
         
         let thisClass = this;
         let objThreeWorldEventMain = this.objThreeWorldEventMain;
@@ -1077,10 +1081,53 @@ export class QingXiCheAndQvCarEvent {
         objIframeEdit.roleShow(false);
 
         QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
-        // QingXiCheAdnQvCarEventStep.find().meshVisibility("下车确定安全灯显示是否正常", true);
+        QingXiCheAdnQvCarEventStep.find().meshVisibility("下车", true);
+
+        // objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车缓慢抬起离合器");
 
-        objIframeEdit.cameraVisualAngleGetListNameGpsTo("下车观察各项灯光0");
+        // WindowEvent.find().WindowTxtViewOpenEvent(
+        //     "手肘轻靠座椅,以脚跟为支点,脚掌缓慢上抬离合器踏板,力度由重渐轻,同时感受车辆动力衔接,避免急抬引发顿挫。" + "\n"
+        // );
+
+        // WindowEvent.find().WindowVideoRemoveColorOpen(
+        //     QingXiCheAndQvComRes.find().resJson["QingXiChe_22"],
+        //     "top:auto;left:auto;bottom:5%;right:10%;",
+        //     null,
+        //     null
+        // );
+        
+        thisClass.tipsBtnsUpOpenEventCallbackMain(false);
+        thisClass.tipsBtnsDownOpenEventCallbackMain(false);
+        
+    }
 
+    /**
+     * 下车确定安全灯显示是否正常
+     */
+    work_new_7 = function() {
+        
+        let thisClass = this;
+        let objThreeWorldEventMain = this.objThreeWorldEventMain;
+
+        let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
+        let objIframe = objThreeWorldEventMain.objIframe;
+        let objScene = objThreeWorldEventMain.objScene;
+        let BABYLON = objThreeWorldEventMain.BABYLON;
+        let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
+        
+        // objIframeEdit.modelPeopleLook(3);
+        // objIframeEdit.roleShow(false);
+
+        // 切换到人物的视角
+        objThreeWorldEventMain.commonBirthplaceUpdate();
+        objIframeEdit.modelPeopleLook(1);
+        objIframeEdit.roleShow(true);
+
+        QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
+        // QingXiCheAdnQvCarEventStep.find().meshVisibility("下车确定安全灯显示是否正常", true);
+
+        // objIframeEdit.cameraVisualAngleGetListNameGpsTo("下车观察各项灯光0");
+        
         WindowEvent.find().WindowTxtViewOpenEvent(
             "下车并确认车辆双闪灯快速交替闪烁,工作箭头清晰明亮,各项灯光显示均正常无误。" + "\n"
         );

+ 55 - 1
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEventClick.js

@@ -905,6 +905,51 @@ export class QingXiCheAndQvCarEventClick {
 
                 break;
 
+            // 下车
+            case '下车':
+
+                if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
+
+                    QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
+
+                    // 切换成正在处理中
+                    QingXiCheAndQvCarEvent.find().eventEnd = 1;
+
+                    QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_打开左门', function() {
+                    
+                        // 切换视角
+                        objIframeEdit.modelPeopleLook(3);
+                        objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车下车_1");
+                        objIframeEdit.roleShow(false);
+
+                        let thisTime = new Date().getTime();
+                        // 控制延迟逻辑
+                        ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500 * 2, function(fpsEventAddRet) {
+                            ComVal.find().fpsEventDel(fpsEventAddRet.code);
+                            
+                            QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_关门', function() {
+
+                                QingXiCheAndQvCarEvent.find().eventEnd = 2;
+                                QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
+                                QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
+
+                                ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
+                                    confirmButtonText: '知道了',
+                                    callback: (action) => {
+                                        
+                                    },
+                                });
+
+                            });
+                            
+                        });
+
+                    });
+                    
+                }
+
+                break;
+
             // 下车确定安全灯显示是否正常
             case '下车确定安全灯显示是否正常':
 
@@ -919,7 +964,9 @@ export class QingXiCheAndQvCarEventClick {
                         
                         // 切换视角
                         objIframeEdit.modelPeopleLook(3);
-                        objIframeEdit.cameraVisualAngleGetListNameGpsTo("下车观察各项灯光");
+                        // objIframeEdit.cameraVisualAngleGetListNameGpsTo("下车观察各项灯光");
+                        objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车确定安全灯是否正常");
+
                         objIframeEdit.roleShow(false);
 
                         let thisTime = new Date().getTime();
@@ -930,6 +977,13 @@ export class QingXiCheAndQvCarEventClick {
                             QingXiCheAndQvCarEvent.find().eventEnd = 2;
                             QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
                             QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
+
+                            ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
+                                confirmButtonText: '知道了',
+                                callback: (action) => {
+                                    
+                                },
+                            });
                             
                         });