lsc 2 years ago
parent
commit
b43189d5b7
3 changed files with 51 additions and 0 deletions
  1. BIN
      img/icon/AIprogram2.png
  2. BIN
      img/icon/Pythonprogram.png
  3. 51 0
      js/Desktop/DeskTop.js

BIN
img/icon/AIprogram2.png


BIN
img/icon/Pythonprogram.png


+ 51 - 0
js/Desktop/DeskTop.js

@@ -30,6 +30,9 @@ U.MD.D.I.teacherDeskIcon = [
     { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
     { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
     { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
+    { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
+    { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
+    { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
 ];
 
 U.MD.D.I.studentDeskIcon = [
@@ -48,6 +51,9 @@ U.MD.D.I.studentDeskIcon = [
     { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
     { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
     { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
+    { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
+    { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
+    { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
 ];
 
 U.MD.D.I.schoolDeskIcon = [
@@ -65,6 +71,9 @@ U.MD.D.I.schoolDeskIcon = [
     { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
     { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
     { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
+    { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
+    { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
+    { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
 ];
 
 //#region 桌面初始化a
@@ -1368,6 +1377,48 @@ U.MD.D.I.openApplication = function(str, obj, info) {
         }
     }
 
+    switch (str) {
+        // AIprogram2 AI体验 aihub.cocorobo.cn
+        // Pythonprogram Python编程 python-blockly.cocorobo.cn
+        // AIprogram AI编程 ai-blockly.cocorobo.cn
+         case "AIprogram2": //AI体验
+                _formdiv = new U.UF.UI.form(
+                    "AI体验",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
+                        "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": "AI体验", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+        case "Pythonprogram": //python编程
+                _formdiv = new U.UF.UI.form(
+                    "Python编程",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
+                        "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": "Python编程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+        case "AIprogram": //ai编程
+                _formdiv = new U.UF.UI.form(
+                    "AIprogram",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/" }), {
+                        "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": "AIprogram", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+    }
+
 
     //U.MD.D.I.openClick(str);
     //如果有任务栏信息