lsc 1 day ago
parent
commit
1deb5a2e31
4 changed files with 22 additions and 3 deletions
  1. 22 0
      js/Desktop/DeskTop.js
  2. 0 1
      js/app/Onload.js
  3. 0 1
      js/liyuan/Onload.js
  4. 0 1
      js/liyuan/Onload2.js

+ 22 - 0
js/Desktop/DeskTop.js

@@ -5394,6 +5394,28 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
     if (_type == 4) {
         tType = 4
     }
+    let opArray = [ "project", "study", "appStore", "futureClass", "evaluate", "student", "testTeacher", "testStudent", "testTeacherSies", "testStudentSies", "studyDetail"]
+    if(opArray.includes(str)){
+        let _str = str
+        if(str == 'appStore'){
+            _str = "cocoFlow"
+        }else if(str == "futureClass"){
+            _str = "cocoNote"
+        }else if(str == "testTeacher" || str == "testTeacherSies"){
+            _str = "IntelligentForm"
+        }else if(str == "testStudent" || str == "testStudentSies"){
+            _str = "TeacherCenter"
+        }
+        try {
+            if (data) {
+                U.MD.D.addOp3('1', "", { type: _str+'Open', cid: data  }, "success")                
+            }else {
+                U.MD.D.addOp3('1', "", { type: _str+'Open' }, "success")
+            }
+        } catch (error) {
+            console.log(error);
+        }
+    }
     switch (str) {
         case "studyDetailNT": //无终端模式
             if (!_userinfo || Object.keys(_userinfo).length === 0) {

+ 0 - 1
js/app/Onload.js

@@ -727,7 +727,6 @@ U.MD.D.getuser2 = function (userid, cid) {
                     }
                     U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                     U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
-                    U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
                 });
             }
             

+ 0 - 1
js/liyuan/Onload.js

@@ -775,7 +775,6 @@ U.MD.D.getuser2 = function (userid, cid) {
                     }
                     U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                     U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
-                    U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
                 });
             }
             

+ 0 - 1
js/liyuan/Onload2.js

@@ -775,7 +775,6 @@ U.MD.D.getuser2 = function (userid, cid) {
                     }
                     U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                     U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
-                    U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
                 });
             }