lsc 2 vuotta sitten
vanhempi
commit
411ed5dc95
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      js/Desktop/DeskTop.js

+ 5 - 1
js/Desktop/DeskTop.js

@@ -474,7 +474,8 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
 window.addEventListener('message', function(e) { // 监听 message 事件
     // alert(e.data.type);
     if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
-        U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 3)
+        U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 1)
+        //3是展示全部阶段  2学生 1老师 4专家
     } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
     }  else if (e.data.close && e.data.close == "1") { //更新用户信息
@@ -579,6 +580,9 @@ U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
         _type = US.userInfo.type,
         _org = US.userInfo.org,
         _classId = US.userInfo.classid;
+    if(_type == 4){
+        tType = 4
+    }
     switch (str) {
         case "studyDetail":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {