|
@@ -8,23 +8,8 @@ U.MD.D.I.IsDrag;
|
|
|
|
|
|
U.MD.D.I.Ip;
|
|
|
|
|
|
-//桌面图标的全局变量
|
|
|
-U.MD.D.I.DeskIcon = [
|
|
|
- //
|
|
|
- // { "Name": "互联办公", "Url": "boomYun", "Img": { "x": "-844", "y": "-419"} },
|
|
|
- // { "Name": "Word", "Url": "word", "Img": { "x": "-462", "y": "-296"} },
|
|
|
- // { "Name": "Execl", "Url": "excel", "Img": { "x": "-523", "y": "-296"} },
|
|
|
- // { "Name": "文本文件", "Url": "txt", "Img": { "x": "-267", "y": "-413"} },
|
|
|
- // { "Name": "我的好友", "Url": "friend", "Img": { "x": "-648", "y": "-297"} },
|
|
|
- // { "Name": "查找好友", "Url": "lookupFriend", "Img": { "x": "-85", "y": "-413"} },
|
|
|
- // { "Name": "我的设置", "Url": "set", "Img": { "x": "-400", "y": "-296"} },
|
|
|
- // { "Name": "系统设置", "Url": "systemSet", "Img": { "x": "-144", "y": "-413"} },
|
|
|
- // { "Name": "云端下载", "Url": "client", "Img": { "x": "-648", "y": "-357"} },
|
|
|
- // { "Name": "云端产品", "Url": "xz", "Img": { "x": "-24", "y": "-413"} }
|
|
|
- // { "Name": "FTP", "Url": "ftp", "Img": { "x": "-24", "y": "-413"} },
|
|
|
- // { "Name": "群文档", "Url": "group", "Img": { "x": "-85", "y": "-413"} },
|
|
|
- // { "Name": "web编程", "Url": "frontEndProgramming", "Img": { "x": "-275", "y": "-297"} },
|
|
|
- // { "Name": "后端编程", "Url": "backEndProgramming", "Img": { "x": "-275", "y": "-297"} },
|
|
|
+//教师桌面图标的全局变量
|
|
|
+U.MD.D.I.teacherDeskIcon = [
|
|
|
{ "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
|
|
|
{ "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
|
|
|
{ "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
|
|
@@ -42,6 +27,21 @@ U.MD.D.I.DeskIcon = [
|
|
|
{ "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } }
|
|
|
];
|
|
|
|
|
|
+U.MD.D.I.studentDeskIcon = [
|
|
|
+ { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
|
|
|
+ { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
|
|
|
+ { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
|
|
|
+ { "Name": "我的资料", "Url": "studentMy", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
|
|
|
+ { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
|
|
|
+ { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
|
|
|
+ { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
|
|
|
+ // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
|
|
|
+ { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
|
|
|
+ { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
|
|
|
+ { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } }
|
|
|
+];
|
|
|
+
|
|
|
//#region 桌面初始化a
|
|
|
|
|
|
/**
|
|
@@ -103,26 +103,48 @@ U.MD.D.I.initDesktopIcons = function(el) {
|
|
|
_content, //桌面图标元素
|
|
|
_iconcontent, //桌面图标元素
|
|
|
_frag = $$("frag"), //定义一个碎片元素
|
|
|
- _DesktopIconInfo = U.MD.D.I.DeskIcon; //获取桌面图标
|
|
|
+ _type = US.userInfo.type,
|
|
|
+ _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
|
|
|
+ _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon; //获取桌面图标
|
|
|
//清楚桌面图标
|
|
|
el.innerHTML = "";
|
|
|
//循环创建桌面图标
|
|
|
- for (i = 0; i < _DesktopIconInfo.length; i++) {
|
|
|
- _content = $$("div", {
|
|
|
- className: "U_MD_D_KO",
|
|
|
- "onmousedown": U.UF.C.closure(function(obj) {
|
|
|
- //防止拖动图标即打开了桌面应用
|
|
|
- U.MD.D.click(this, obj);
|
|
|
- }, [_DesktopIconInfo[i]]),
|
|
|
- "onclick": U.UF.C.closure(function(obj) {
|
|
|
- //防止拖动图标即打开了桌面应用
|
|
|
- U.MD.D.click(this, obj);
|
|
|
- }, [_DesktopIconInfo[i]])
|
|
|
- }, _frag); //
|
|
|
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _DesktopIconInfo[i].style }, _iconcontent); //{ "backgroundPosition": _DesktopIconInfo[i].Img.x + "px " + _DesktopIconInfo[i].Img.y + "px" }
|
|
|
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _DesktopIconInfo[i].Name }, _iconcontent);
|
|
|
+ if (_type == 2) {
|
|
|
+ for (i = 0; i < _studentDesktopIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function(obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_studentDesktopIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function(obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_studentDesktopIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function(obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_teacherDesktopIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function(obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_teacherDesktopIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//加载好后给图标定位
|
|
|
U.MD.D.iconPostion($(_frag).Child());
|
|
|
//把图标加载到页面
|
|
@@ -384,17 +406,32 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
if (_type == 2) {
|
|
|
switch (str) {
|
|
|
|
|
|
- case "project": //好友打开
|
|
|
- U.Alert("你没有该权限");
|
|
|
- break;
|
|
|
- case "student":
|
|
|
- U.Alert("你没有该权限");
|
|
|
- break;
|
|
|
- case "evaluate":
|
|
|
- U.Alert("你没有该权限");
|
|
|
+ case "studnetProject": //好友打开
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "我的项目",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
+ "id": "studnetProject",
|
|
|
+ "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+
|
|
|
break;
|
|
|
- case "class":
|
|
|
- U.Alert("你没有该权限");
|
|
|
+
|
|
|
+ case "studentEvaluate": //好友打开
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "我的评价",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
+ "id": "studentEvaluate",
|
|
|
+ "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+
|
|
|
break;
|
|
|
case "my":
|
|
|
|
|
@@ -409,11 +446,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
- case "notice":
|
|
|
- U.Alert("你没有该权限");
|
|
|
- break;
|
|
|
case "library":
|
|
|
-
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"素材库",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
|
|
@@ -426,7 +459,6 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
case "whiteboard":
|
|
|
-
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"电子白板",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
|
|
@@ -439,7 +471,6 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
case "investigation":
|
|
|
-
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"问卷调查",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
|
|
@@ -452,7 +483,6 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
case "note":
|
|
|
-
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"便签分类",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
|
|
@@ -478,7 +508,6 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
// _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
// break;
|
|
|
case "mind":
|
|
|
-
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"思维导图",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
|
|
@@ -491,7 +520,6 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
case "doc":
|
|
|
-
|
|
|
// U.MD.D.I.isRoom();
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"协同文档",
|
|
@@ -508,12 +536,11 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
})
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
- case "study":
|
|
|
-
|
|
|
+ case "studentStudy":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"学习中心",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
- "id": "study",
|
|
|
+ "id": "studentStudy",
|
|
|
"style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
|
}, {
|