Ver Fonte

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/CocoRoboDesktop

root há 2 anos atrás
pai
commit
b3778309ff

BIN
img/icon/han.png


BIN
img/icon/hanClass.png


BIN
img/icon/hanClassics.png


BIN
img/icon/hanFamily.png


BIN
img/icon/hanTraining.png


BIN
img/icon/snf.png


+ 108 - 5
js/Desktop/DeskTop.js

@@ -42,6 +42,7 @@ U.MD.D.I.teacherDeskIcon = [
     { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
     { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
     // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
+    { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
 ];
 
 U.MD.D.I.studentDeskIcon = [
@@ -114,6 +115,18 @@ U.MD.D.I.orgStemDeskIcon = [
     { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
 ];
 
+U.MD.D.I.hanDeskIcon = [
+    { "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": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
+    { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
+    { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
+    { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
+    { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
+    { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
+    { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
+];
+
 //#region 桌面初始化a
 
 /**
@@ -182,6 +195,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
         _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
         _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
         _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
+        _hanDeskIcon = U.MD.D.I.hanDeskIcon,
         _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon; //获取测试学校桌面图标
     //清楚桌面图标
     el.innerHTML = "";
@@ -203,6 +217,23 @@ U.MD.D.I.initDesktopIcons = function(el) {
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
             $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
         }
+    } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
+        for (i = 0; i < _hanDeskIcon.length; i++) {
+            _content = $$("div", {
+                className: "U_MD_D_KO",
+                "onmousedown": U.UF.C.closure(function(obj) {
+                    //防止拖动图标即打开了桌面应用
+                    U.MD.D.click(this, obj);
+                }, [_hanDeskIcon[i]]),
+                "onclick": U.UF.C.closure(function(obj) {
+                    //防止拖动图标即打开了桌面应用
+                    U.MD.D.click(this, obj);
+                }, [_hanDeskIcon[i]])
+            }, _frag); // 
+            _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
+            $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
+        }
     } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
         for (i = 0; i < _orgStemDeskIcon.length; i++) {
             _content = $$("div", {
@@ -218,7 +249,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
             }, _frag); // 
             _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
-            $$("div", { className: "U_MD_D_KOX","innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
         }
     } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
         for (i = 0; i < _orgDesktopIconInfo.length; i++) {
@@ -235,7 +266,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
             }, _frag); // 
             _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
-            $$("div", { className: "U_MD_D_KOX",  "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
         }
     } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
         for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
@@ -269,7 +300,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
             }, _frag); // 
             _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
-            $$("div", { className: "U_MD_D_KOX","innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
         }
     } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
         for (i = 0; i < _studentDesktopIconInfo.length; i++) {
@@ -286,7 +317,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
             }, _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",  "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
+            $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
         }
     } else {
         for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
@@ -1677,7 +1708,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             _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/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
-                    "id": "evaluate",
+                    "id": "case",
                     "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
                     "onresize": function() {}
                 }, {
@@ -1685,6 +1716,78 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
             break;
+        case "snf":
+            _formdiv = new U.UF.UI.form(
+                "赛诺梵",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://try.cynovan.com/standard/?trial=true&data=%7B%22username%22%3A%22cynovanDemo%22%2C%22password%22%3A%22cynovanDemo%22%7D&redirect_uri=http://janus.cynovan.com/#/app/workflow/menu/1/r/6343ce2ac00fa32609d1f91b" }), {
+                    "id": "snf",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "hanFamily":
+            _formdiv = new U.UF.UI.form(
+                "汉字家族",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://test-school.hanzigon.cn/?appid=886404803430338&appsecret=jhg75c7vphfljtkndumc2g4ern947j#/hzjz" }), {
+                    "id": "hanFamily",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "hanClassics":
+            _formdiv = new U.UF.UI.form(
+                "国学经典",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://test-school.hanzigon.cn/?appid=886404803430338&appsecret=jhg75c7vphfljtkndumc2g4ern947j#/gxjd" }), {
+                    "id": "hanClassics",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "hanTraining":
+            _formdiv = new U.UF.UI.form(
+                "笔画训练",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://test-school.hanzigon.cn/?appid=886404803430338&appsecret=jhg75c7vphfljtkndumc2g4ern947j#/bhxl" }), {
+                    "id": "hanTraining",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "hanClass":
+            _formdiv = new U.UF.UI.form(
+                "书法课堂",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://test-school.hanzigon.cn/?appid=886404803430338&appsecret=jhg75c7vphfljtkndumc2g4ern947j#/sfkt" }), {
+                    "id": "hanClass",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "han":
+            _formdiv = new U.UF.UI.form(
+                "汉字宫",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "http://test-school.hanzigon.cn/?appid=886404803430338&appsecret=jhg75c7vphfljtkndumc2g4ern947j#/home" }), {
+                    "id": "han",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
     }