人生啊人生 2 nedēļas atpakaļ
vecāks
revīzija
426c02c000

+ 7 - 0
user_web/src/components/student/event/DragAndDropEvent.ts

@@ -2062,6 +2062,8 @@ export class DragAndDropEvent {
         console.log(
             " 鼠标点击弹起了 threeWorldPointerupEvent = (obj : Object) => { ", objMesh.id
         );
+
+        // console.log("courseChapter3dShow().show.objTypeViewEvent ---", courseChapter3dShow().show.objTypeViewEvent);
         
         switch (objMesh.id) {
 
@@ -2222,6 +2224,11 @@ export class DragAndDropEvent {
      */
     public meshEventTxt = (car : any, meshId : any) : any => {
 
+        if (courseChapter3dShow().show.objTypeViewEvent != null && courseChapter3dShow().show.objTypeViewEvent != undefined) {
+            // 停止播放声音
+            courseChapter3dShow().show.objTypeViewEvent.objModelHtml5Audio.pause();
+        }
+
         if (meshId == null || meshId == undefined) {
             return this;
         }

+ 5 - 0
user_web/src/view/student/trainChapter/trainChapter.vue

@@ -366,6 +366,11 @@ const initTips = () => {
         stepThreeWorldEndOk.value
     );
 
+    if (courseChapter3dShow().show.objTypeViewEvent != null && courseChapter3dShow().show.objTypeViewEvent != undefined) {
+        // 停止播放声音
+        courseChapter3dShow().show.objTypeViewEvent.objModelHtml5Audio.pause();
+    }
+    
     if (state.currentStep == 0 && state.currentNode == 0) {
         state.tipsBtns = [
             {