lsc 2 years ago
parent
commit
338ad936b7
1 changed files with 24 additions and 0 deletions
  1. 24 0
      js/Desktop/DeskTop.js

+ 24 - 0
js/Desktop/DeskTop.js

@@ -127,6 +127,11 @@ U.MD.D.I.studentDeskIcon2 = [
     // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
 ]
 
+U.MD.D.I.studentDeskIcon3 = [
+    { "Name": "学生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
+    { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
+]
+
 U.MD.D.I.schoolDeskIcon = [
     { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
     { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
@@ -162,6 +167,7 @@ U.MD.D.I.orgDeskIcon = [
 U.MD.D.I.orgStemDeskIcon = [
     { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
     { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
+    { "Name": "学生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
     { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
     { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
     { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
@@ -387,6 +393,7 @@ U.MD.D.I.initDesktopIcons = function (el) {
         _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
         _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
         _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
+        _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
         _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
         _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
         _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
@@ -438,6 +445,23 @@ U.MD.D.I.initDesktopIcons = function (el) {
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
             $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
         }
+    } else if (_type == 2 && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
+        for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
+            _content = $$("div", {
+                className: "U_MD_D_KO",
+                "onmousedown": U.UF.C.closure(function (obj) {
+                    //防止拖动图标即打开了桌面应用
+                    U.MD.D.click(this, obj);
+                }, [_studentDesktopIconInfo3[i]]),
+                "onclick": U.UF.C.closure(function (obj) {
+                    //防止拖动图标即打开了桌面应用
+                    U.MD.D.click(this, obj);
+                }, [_studentDesktopIconInfo3[i]])
+            }, _frag); // 
+            _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
+            $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
+        }
     } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
         for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
             _content = $$("div", {