人生啊人生 2 semanas atrás
pai
commit
9cde1439b0

+ 24 - 15
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEventClick.js

@@ -736,29 +736,38 @@ export class QingXiCheAndQvCarEventClick {
 
                     // 切换成正在处理中
                     QingXiCheAndQvCarEvent.find().eventEnd = 1;
+                    
+                    
+                    // 切换视角
+                    objIframeEdit.modelPeopleLook(3);
+                    objIframeEdit.cameraVisualAngleGetListNameGpsTo("手握方向盘");
+                    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('踩下车辆离合器5秒', function() {
+                        QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('踩下车辆离合器5秒', function() {
 
-                        WindowEvent.find().WindowCountdownOpen(5, "自定义返回数据", function(WindowCountdownOpenRes) {
+                            WindowEvent.find().WindowCountdownOpen(5, "自定义返回数据", function(WindowCountdownOpenRes) {
 
-                            QingXiCheAndQvCarEvent.find().eventEnd = 2;
-                            QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
-                            QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
+                                QingXiCheAndQvCarEvent.find().eventEnd = 2;
+                                QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
+                                QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
 
-                            ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
-                                confirmButtonText: '知道了',
-                                callback: (action) => {
-                                    
-                                },
-                            });
+                                ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
+                                    confirmButtonText: '知道了',
+                                    callback: (action) => {
+                                        
+                                    },
+                                });
 
+                            });
+                            
                         });
-                        
-                    });
 
-                    
+                    });
                     
                 }
                 break;