root 3 years ago
parent
commit
76b5a428c5
6 changed files with 142 additions and 154 deletions
  1. 0 1
      css/Controls/index.css
  2. 2 13
      css/Desktop/Desktop.css
  3. 4 5
      css/Desktop/Taskbar.css
  4. 107 107
      js/Desktop/DeskTop.js
  5. 1 0
      js/Desktop/Onload.js
  6. 28 28
      js/Desktop/taskbar.js

+ 0 - 1
css/Controls/index.css

@@ -1052,7 +1052,6 @@ body div ::-webkit-scrollbar-resizer:vertical {
     left: 0;
     bottom: 0;
     background-color: #505050;
-    border-radius: 0 8px 0 8px;
     box-shadow: 0 0 30px 5px #212121;
     -webkit-box-shadow: 0 0 30px 5px #212121;
 }

+ 2 - 13
css/Desktop/Desktop.css

@@ -491,20 +491,9 @@ body div ::-webkit-scrollbar-resizer:vertical {
     float: left;
 }
 
-.U_MD_D_BZMOA {
-    width: 30px;
-    height: 30px;
-    padding: 6px;
-    /*border-radius: 3px;*/
-    color: #FFF;
-    cursor: pointer;
-}
+.U_MD_D_BZMOA      { width:51px; height:54px; padding:6px; /*border-radius: 3px;*/ color:#FFF; cursor:pointer;}
+.U_MD_D_BZMOA:hover { padding:5px; background-color:#505457; border:1px solid #777; }
 
-.U_MD_D_BZMOA:hover {
-    padding: 5px;
-    background-color: #505457;
-    border: 1px solid #777;
-}
 
 .U_MD_D_BZMOI {
     width: 51px;

+ 4 - 5
css/Desktop/Taskbar.css

@@ -1,22 +1,21 @@
 /*任务管理器*/
 
 /*任务栏*/
-.U_MD_D_RW      { z-index:999999;width:100%; height:40px; position:absolute; left:0; bottom:0; background-color:#505050; border-radius:0 8px 0 8px; }
+.U_MD_D_RW      { z-index:99;width:100%; height:65px; position:absolute; left:0; bottom:0; background-color:#505050; border-radius:0 8px 0 8px; box-shadow:0 0 30px 5px #212121; -webkit-box-shadow:0 0 30px 5px #212121; }
 #U_MD_D_RW      { width:800px; color:#FFF; height:100%; /*overflow: hidden;*/ float:left; }
 #U_MD_D_RW  div { color:#111; }
 #U_MD_D_RW .U_MD_D_BZMOA:hover   { /*background-color:transparent;*/background-color:#6F6F6F; border:0; padding:6px; }
 #U_MD_D_RW .U_MD_D_BZMO    { margin-left:4px; position:relative; }
 #U_MD_D_RW .U_MD_D_BZMON   { margin-top:4px; color:#FFF; }
-.U_MD_D_RW_L     { float:left; width:48px; height:100%; background-color:#00A8FD; position:relative;}
+.U_MD_D_RW_L     { float:left; width:21px; height:100%; background-color:#00A8FD; position:relative;}
 .U_MD_D_RW_R     { float:right; width:21px; height:100%;background-color:#6d6d6d; position:relative;}
 /*.U_MD_D_RW *        { zoom:1; -moz-transform:scale(1); -webkit-transform:scale(1); -o-transform:scale(1); transform:scale(1); -ms-transform:scale(1); color:#333; }*/
 .U_MD_D_RW_T     { text-align:center; padding:5px 0; border-bottom:1px solid # color:#006699; font-size:13px; color:#FFF; margin-top:16px; }
-.U_MD_D_RW_I     {width:48px;height:45px;float:left;margin-top: 7px;}
+.U_MD_D_RW_I     { width:21px; height:45px; float:left; margin-top:19px; }
 /*.U_MD_D_RW_IO    { width:47px; height:47px; background-position:-729px -337px; margin:auto; cursor:pointer; }
 .U_MD_D_RW_IO:hover      { background-position:-787px -339px; }*/
 *.U_MD_D_RW_IO   {  width:21px;height:100%;}
-.U_MD_D_RW_CD   { width:21px;margin-top:16%;margin-left: 55%;}
-.U_TaskbarImg0{background-position: -13px -20px;width:30px;height:30px;background-image:url(img/taskbar.png);}
+.U_MD_D_RW_CD   { width:21px;margin-top:16%;}
 .U_MD_D_RW_GU    { width:21px;height:30%;/*background-color:gray;*/}
 .U_MD_D_RW_GU:hover{background-color:gray;}
 .U_MD_D_RW_GD    { width:21px;height:30%;/*background-color:gray;*/position:absolute;bottom:0;}

+ 107 - 107
js/Desktop/DeskTop.js

@@ -46,7 +46,7 @@ U.MD.D.I.DeskIcon = [
  * 初始化桌面的起始函数
  *
  */
-U.MD.D.I.init = function() {
+U.MD.D.I.init = function () {
     if ($("#U_MD_D_K")[0]) {
         //初始化桌面图标
         U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
@@ -67,7 +67,7 @@ U.MD.D.I.init = function() {
  *
  * @param  {element} 桌面元素
  */
-U.MD.D.I.hiddenTaskbar = function(el) {
+U.MD.D.I.hiddenTaskbar = function (el) {
     //任务栏位置变小
     U.selectEl(el).parentElement(3).css({ "bottom": "-39px" });
     //桌面的位置变大
@@ -79,7 +79,7 @@ U.MD.D.I.hiddenTaskbar = function(el) {
  *
  * @param  {element} 桌面元素
  */
-U.MD.D.I.initDesktopIcons = function(el) {
+U.MD.D.I.initDesktopIcons = function (el) {
     var i, //用于循环
         _content, //桌面图标元素
         _iconcontent, //桌面图标元素
@@ -91,11 +91,11 @@ U.MD.D.I.initDesktopIcons = function(el) {
     for (i = 0; i < _DesktopIconInfo.length; i++) {
         _content = $$("div", {
             className: "U_MD_D_KO",
-            "onmousedown": U.UF.C.closure(function(obj) {
+            "onmousedown": U.UF.C.closure(function (obj) {
                 //防止拖动图标即打开了桌面应用
                 U.MD.D.click(this, obj);
             }, [_DesktopIconInfo[i]]),
-            "onclick": U.UF.C.closure(function(obj) {
+            "onclick": U.UF.C.closure(function (obj) {
                 //防止拖动图标即打开了桌面应用
                 U.MD.D.click(this, obj);
             }, [_DesktopIconInfo[i]])
@@ -115,7 +115,7 @@ U.MD.D.I.initDesktopIcons = function(el) {
  *
  * @param  {element} 桌面元素
  */
-U.MD.D.I.displayTaskbar = function(el) {
+U.MD.D.I.displayTaskbar = function (el) {
     //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
     if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
         //任务栏位置变化
@@ -135,7 +135,7 @@ U.MD.D.I.displayTaskbar = function(el) {
  * @param  {object} 左右相距的距离
  * @return  {object} 命名空间
  */
-U.MD.D.iconPostion = function(childs, top, left) {
+U.MD.D.iconPostion = function (childs, top, left) {
     var i; //用于循环处理
     top = top || 15; //如果没有设置元素的间距处理默认上间距为15
     left = left || 20; //如果没有设置元素的间距处理默认左间距为15
@@ -173,7 +173,7 @@ U.MD.D.iconPostion = function(childs, top, left) {
  * @param  {object} 左右相距的距离
  * @return  {object} 命名空间
  */
-U.MD.D.click = function(el, obj) {
+U.MD.D.click = function (el, obj) {
     var _buttonnumber = event.button; //点击的按钮的事件值
     U.UF.EV.stopBubble(); //阻止向上冒泡
     //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
@@ -199,7 +199,7 @@ U.MD.D.click = function(el, obj) {
  * 拖动的处理
  *
  */
-U.MD.D.iconMove = function() {
+U.MD.D.iconMove = function () {
     //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性   U.MD.D.I.IsDrag为true
     U.MD.D.I.IsDrag = true;
 }
@@ -210,7 +210,7 @@ U.MD.D.iconMove = function() {
  * @param  {element} 拖动的元素
  * @return  {object} 命名空间
  */
-U.MD.D.iconUp = function(el) {
+U.MD.D.iconUp = function (el) {
     var _top = 15,
         _left = 20,
         _margin,
@@ -244,7 +244,7 @@ U.MD.D.iconUp = function(el) {
 ----------[1]  左 left
 * @return  {object} 命名空间
 */
-U.MD.D.isOverlap = function(el, childs, postionarray) {
+U.MD.D.isOverlap = function (el, childs, postionarray) {
     //循环所有的图标
     for (var i = 0; i < childs.length; i++) {
         //判断有没有和该图标诶子重叠的元素
@@ -289,170 +289,170 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
 如果第一个参数为其他,则无第二个参数
 * @returns {array} 
 */
-U.MD.D.I.openApplication = function(str, obj, info) {
+U.MD.D.I.openApplication = function (str, obj, info) {
     obj = obj || {};
     var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
         _formdiv, //创建任务栏时同时弹出的窗体元素。
         _userinfo = US.userInfo, //登录用户信息
         _userid = obj.userid || _userinfo.UserId //登录用户id
-    ;
+        ;
     //选择应用处理
     switch (str) {
-
+        
         case "project": //好友打开
-            new U.UF.UI.form(
+            _formdiv = new U.UF.UI.form(
                 "项目管理",
-                $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "project",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course" }), {
+                "id": "project",
+                "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/project.png)" }, "name": "项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
             break;
-
         case "student":
             new U.UF.UI.form(
                 "学生管理",
-                $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "student",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index" }), {
+                "id": "student",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "evaluate":
             new U.UF.UI.form(
                 "评价管理",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "evaluate",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "evaluate",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "class":
             new U.UF.UI.form(
                 "班级管理",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "class",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "class",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "my":
             new U.UF.UI.form(
                 "我的资料",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "my",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "my",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "notice":
             new U.UF.UI.form(
                 "通知公告",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "notice",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "notice",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "library":
             new U.UF.UI.form(
                 "素材库",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "library",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "library",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "whiteboard":
             new U.UF.UI.form(
                 "电子白板",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "whiteboard",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "whiteboard",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "investigation":
             new U.UF.UI.form(
                 "问卷调查",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "investigation",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "investigation",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "note":
             new U.UF.UI.form(
                 "便签分类",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "note",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "note",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "score":
             new U.UF.UI.form(
                 "量规评分",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "score",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "score",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "mind":
             new U.UF.UI.form(
                 "思维导图",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "mind",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "mind",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
         case "doc":
             new U.UF.UI.form(
                 "协同文档",
                 $$("iframe", { "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-                    "id": "doc",
-                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-                    "onresize": function() {}
-                }, {
-                    closecallback: function() {}
-                }, { "style": { "height": "36px" } }).form; //创建窗体
+                "id": "doc",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
             break;
 
 
@@ -466,14 +466,14 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             _formdiv = new U.UF.UI.form("域名管理", _iframe, { id: "U_MD_DS_DomainShare", style: { "width": "370px", "height": "390px" } }).form;
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-15px -296px", "name": "网盘", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-15px -296px", "name": "网盘", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
             }
             break;
         case "disk": //个人网盘查看 
             _formdiv = U.MD.DK.initDisk(_userid, obj.directoryid); //根据网盘数据,并加载网盘,里面包含了url重写
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-15px -296px", "name": "网盘", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-15px -296px", "name": "网盘", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             }
             break;
         case "word": //Word打开
@@ -481,7 +481,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             _formdiv = _wordinfo[0];
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-462px -296px", "name": "文档", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, _wordinfo[1]); } }
+                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-462px -296px", "name": "文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, _wordinfo[1]); } }
             }
             if (obj.UrlType != 'join') {
                 U.MD.N.urlWrite("word/" + _formdiv.id.substr(-36), "在线文档"); //word的url重写
@@ -491,7 +491,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             _formdiv = U.MD.O.excel(_userinfo, obj);
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-523px -296px", "name": "Excel", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-523px -296px", "name": "Excel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             }
             U.MD.N.urlWrite("excel/" + _formdiv.id.substr(-36), "Excel");
             break;
@@ -499,42 +499,42 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             _formdiv = U.MD.D.Txt.textCreate();
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + obj.directoryid, "backgroundPostion": "-267px -413px", "name": "文本", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+                _taskbar = { "id": str + obj.directoryid, "backgroundPostion": "-267px -413px", "name": "文本", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             }
             U.MD.N.urlWrite("txt/" + _formdiv.id.substr(-36), "文本");
             break;
         case "lookupFriend":
             _formdiv = U.MD.F.S.popSearchFriendsOrGroupForm(0);
             //生成任务栏的变量
-            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-85px -413px", "name": "查找好友", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-85px -413px", "name": "查找好友", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             U.MD.N.urlWrite("lookupfriend/" + obj.directoryid.substr(-36), "查找好友"); //查找好友的url重写
             break;
         case "ftp": //Ftp 
             _formdiv = U.MD.F.S.popupsSearchFtp();
             //生成任务栏的变量
-            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-144px -413px", "name": "FTP", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-144px -413px", "name": "FTP", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             break;
         case "group": //群组
             _formdiv = U.MD.F.S.popupsSearchGroups(0);
             //生成任务栏的变量
-            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-85px -413px", "name": "群组", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-85px -413px", "name": "群组", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             break;
         case "set": //个人设置
             _formdiv = U.MD.U.P.userDataSet();
             if (_formdiv) {
                 //生成任务栏的变量
-                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-400px -296px", "name": "个人设置", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+                _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-400px -296px", "name": "个人设置", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             }
             break;
         case "systemSet": //系统设置 
             _formdiv = U.MD.D.B.init();
             //生成任务栏的变量
-            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-400px -296px", "name": "系统设置", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-400px -296px", "name": "系统设置", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             break;
         case "boomYun": //BoomYun 
             _formdiv = U.Boom.I.onload();
             //生成任务栏的变量
-            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-844px -419px", "name": "互联办公", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj); } }
+            _taskbar = { "id": str + _formdiv.id, "backgroundPostion": "-844px -419px", "name": "互联办公", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj); } }
             U.MD.N.urlWrite("boomyun", "互联办公"); //boomyun的url重写
             break;
         case "xz": //App下载 

+ 1 - 0
js/Desktop/Onload.js

@@ -95,6 +95,7 @@ U.MD.D.addEvents = function () {
     U.UF.F.clickTopWindow();
     //页面大小变化监视
     window.onresize = U.MD.D.reSize;
+    U.MD.D.reSize();
     //如果是云端1473则屏蔽菜单和错误弹框
     if (U.MD.D.IsUseStudio) {
         if (window.print) { //判断是否有右键菜单

+ 28 - 28
js/Desktop/taskbar.js

@@ -55,37 +55,37 @@ U.MD.D.T.taskbar.create = function (applyinfo, taskbarEle) {
             }
         }, _task);
         //动态创建任务图标
-        switch (applyinfo.name) {//根据不同的点击事件创建不同的任务图标 
-            case "文档":
-                $$("div", { className: " U_TaskbarImg U_TaskbarImg1" }, _taskMain);
-                break;
-            case "系统设置":
-                $$("div", { className: " U_TaskbarImg U_TaskbarImg2" }, _taskMain);
-                break;
-            case "查找好友":
-                $$("div", { className: " U_TaskbarImg U_TaskbarImg3" }, _taskMain);
-                break;
-            case "Excel":
-                $$("div", { className: "U_TaskbarImg U_TaskbarImg4" }, _taskMain);
-                break;
-            case "网盘":
-                $$("div", { className: " U_TaskbarImg U_TaskbarImg5" }, _taskMain);
-                break;
-            case "互联办公":
-                $$("div", { className: " U_TaskbarImg U_TaskbarImg6" }, _taskMain);
-                break;
-            case "文本":
-                $$("div", { className: "U_TaskbarImg U_TaskbarImg7" }, _taskMain);
-                break;
-            case "音乐播放器":
-                $$("div", { className: "U_TaskbarImg U_TaskbarImg8" }, _taskMain);
-        }
-        // $$("div", { className: "U_MD_D_BZMOI U_Img", style: { backgroundPosition: applyinfo.backgroundPostion} }, _taskMain);
+        // switch (applyinfo.name) {//根据不同的点击事件创建不同的任务图标 
+        //     case "文档":
+        //         $$("div", { className: " U_TaskbarImg U_TaskbarImg1" }, _taskMain);
+        //         break;
+        //     case "系统设置":
+        //         $$("div", { className: " U_TaskbarImg U_TaskbarImg2" }, _taskMain);
+        //         break;
+        //     case "查找好友":
+        //         $$("div", { className: " U_TaskbarImg U_TaskbarImg3" }, _taskMain);
+        //         break;
+        //     case "Excel":
+        //         $$("div", { className: "U_TaskbarImg U_TaskbarImg4" }, _taskMain);
+        //         break;
+        //     case "网盘":
+        //         $$("div", { className: " U_TaskbarImg U_TaskbarImg5" }, _taskMain);
+        //         break;
+        //     case "互联办公":
+        //         $$("div", { className: " U_TaskbarImg U_TaskbarImg6" }, _taskMain);
+        //         break;
+        //     case "文本":
+        //         $$("div", { className: "U_TaskbarImg U_TaskbarImg7" }, _taskMain);
+        //         break;
+        //     case "音乐播放器":
+        //         $$("div", { className: "U_TaskbarImg U_TaskbarImg8" }, _taskMain);
+        // }
+        $$("div", { className: "U_MD_D_BZMOI U_Img", style: applyinfo.style }, _taskMain);
         //动态创建任务名称
         //    $$("div", { className: "U_MD_D_BZMON U_MD_D_Text_Abbreviation", innerHTML: applyinfo.name }, _taskMain);
         var _taskName = $$("div", {
             className: "U_MD_D_T_taskbar_Name",
-            style: { "position": "absolute", "left": "-26px", "bottom": "83px"}/*,
+            style: { "position": "absolute", "left": "-26px", "bottom": "83px" }/*,
         innerHTML: applyinfo.name*/
         }, _task);
         $$("div", {
@@ -106,7 +106,7 @@ U.MD.D.T.taskbar.create = function (applyinfo, taskbarEle) {
             U.selectEl(".U_MD_D_RW_R")[0].style.display = "none";
         }
     }
-    
+
 }
 
 //当前页监听