Browse Source

新增桌面图标和新学校背景

lsc 2 years ago
parent
commit
111c84a781
6 changed files with 46 additions and 0 deletions
  1. BIN
      img/icon/24game.png
  2. BIN
      img/icon/longweiBg.png
  3. BIN
      img/icon/mohe.png
  4. BIN
      img/icon/translation.png
  5. 42 0
      js/Desktop/DeskTop.js
  6. 4 0
      js/Desktop/Onload.js

BIN
img/icon/24game.png


BIN
img/icon/longweiBg.png


BIN
img/icon/mohe.png


BIN
img/icon/translation.png


+ 42 - 0
js/Desktop/DeskTop.js

@@ -35,6 +35,9 @@ U.MD.D.I.teacherDeskIcon = [
     { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
     { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
     { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
+    { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
+    { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
+    { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
     // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
 ];
 
@@ -59,6 +62,9 @@ U.MD.D.I.studentDeskIcon = [
     { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
     { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
     { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
+    { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
+    { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
+    { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
     // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
 ];
 
@@ -1483,6 +1489,42 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "MindMap", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
             break;
+        case "translation": //翻译
+            _formdiv = new U.UF.UI.form(
+                "翻译",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//fanyi.youdao.com/" }), {
+                    "id": "studnetProject",
+                    "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "翻译", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "mohe": //魔盒
+            _formdiv = new U.UF.UI.form(
+                "魔盒识字",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
+                    "id": "studnetProject",
+                    "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
+        case "24game": //24点
+            _formdiv = new U.UF.UI.form(
+                "24点",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
+                    "id": "studnetProject",
+                    "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
+                    "onresize": function() {}
+                }, {
+                    closecallback: function() {}
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "24点", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
     }
 
 

+ 4 - 0
js/Desktop/Onload.js

@@ -308,6 +308,8 @@ U.MD.D.getuser = function () {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
                                     }else if (userInfo.organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263'){
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
+                                    } else if (userInfo.organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
+                                        $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
                                     }
                                     US.userInfo = res.value[0][0];
                                     $(".avatar")[0].style.display = "block";
@@ -331,6 +333,8 @@ U.MD.D.getuser = function () {
             $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
         }else if (userInfo.organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263'){
             $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
+        } else if (userInfo.organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
+            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
         }
     }
 }