root 1 year ago
parent
commit
f9cdd59c88
5 changed files with 69 additions and 66 deletions
  1. 10 0
      css/Desktop/Desktop.css
  2. BIN
      img/aichat.png
  3. 7 2
      js/Controls/Basic.js
  4. 0 13
      js/Controls/Basic.min.js
  5. 52 51
      js/Desktop/DeskTop.js

+ 10 - 0
css/Desktop/Desktop.css

@@ -717,6 +717,16 @@ body div ::-webkit-scrollbar-resizer:vertical {
     position: absolute;
     top: 0;
     left: 80px;
+    background-image: url("/img/aichat.png");
+}
+
+.U_MD_D_KO_AI {
+    cursor: pointer;
+    width: 65px;
+    height: 65px;
+    position: absolute;
+    right: 20px;
+    left: 80px;
 }
 
 .U_MD_D_KO:hover {

BIN
img/aichat.png


+ 7 - 2
js/Controls/Basic.js

@@ -1815,7 +1815,7 @@ U.UF.UI.form = function (title, content, formattr, formfun, headattr, contentatt
     _this.header; //头部
     _this.middle; //中间区域
     _this.title = title; //窗体的标题
-    _this.content =  _this.ififrame ? _this.content : content; //需要插入的元素,包含div和iframe等元素,以前站外应用的功能是靠这个方式去实现的
+    _this.content = _this.ififrame ? _this.content : content; //需要插入的元素,包含div和iframe等元素,以前站外应用的功能是靠这个方式去实现的
     _this.formattr = formattr; //窗体的属性
     _this.headattr = headattr; //头部的属性
     _this.contentattr = contentattr; //内容的属性
@@ -1845,6 +1845,7 @@ U.UF.UI.form = function (title, content, formattr, formfun, headattr, contentatt
     }
 
     _this.isnarrow = true;
+    _this.narrowcallback = formfun.narrowcallback; //关闭回调
     if (formfun.isnarrow != null) { //是否允许缩小
         _this.isnarrow = formfun.isnarrow; //是否允许缩小
     }
@@ -2093,6 +2094,10 @@ U.UF.UI.form.prototype = {
                     "onmousedown": U.UF.EV.stopBubble,
                     "onclick": function () {
                         U.UF.F.windowMinimize(_formel); //窗体最小化处理
+                        //回调处理
+                        if (U.UF.C.isFunction(this.narrowcallback)) {
+                            this.narrowcallback();
+                        }
                     }
                 }, _headbottom);
             }
@@ -2107,7 +2112,7 @@ U.UF.UI.form.prototype = {
             }
         }
         else {
-            _formel = _replaceel;       
+            _formel = _replaceel;
         }
         //如果没有设置top和left那么居中弹出
         if (_formel.style.top == "" && _formel.style.left == "" && _formel.style.right == "" && _formel.style.bottom == "") {

File diff suppressed because it is too large
+ 0 - 13
js/Controls/Basic.min.js


+ 52 - 51
js/Desktop/DeskTop.js

@@ -547,18 +547,18 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
         _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
         _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
-    var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5','91305d49-01ba-11ed-8c78-005056b86db4'];
+    var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4'];
     var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s"];
     //清楚桌面图标
     el.innerHTML = "";
-    if(_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5"){
+    if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5") {
         _teacherDesktopIconInfo.push(
             // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
             { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
             { "Name": "AI助手", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
         )
     }
-    if((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2){
+    if ((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2) {
         _studentDesktopIconInfo.push(
             { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
         )
@@ -735,7 +735,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
             }
-        }  else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5")) {
+        } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5")) {
             for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
                 _content = $$("div", {
                     className: "U_MD_D_KO",
@@ -1089,7 +1089,7 @@ U.MD.D.iconPostion2 = function (childs, top, left) {
             };
         }
         //给图标的位置赋值
-        U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px",top: 'unset' });
+        U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
         if (i < childs.length - 1) {
             //页面图标每次向下加95
             left += 150;
@@ -1130,7 +1130,7 @@ U.MD.D.click = function (el, obj) {
         }
         //如果是mouse事件的处理
         else {
-            if(US.Config.type == '1'){
+            if (US.Config.type == '1') {
                 //拖动处理,添加拖动和拖动结束事件
                 U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
             }
@@ -1245,7 +1245,7 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
-    }  else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
+    } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
@@ -1307,7 +1307,7 @@ window.addEventListener('message', function (e) { // 监听 message 事件
     } else if (e.data.allScreen && e.data.allScreen == "2NT") {
         var _formel = document.getElementById("studyDetailNT");
         U.UF.F.windowZooming(_formel);
-    }  else if (e.data.allScreen && e.data.allScreen == "2ss") {
+    } else if (e.data.allScreen && e.data.allScreen == "2ss") {
         var _formel = document.getElementById("studyDetailS");
         U.UF.F.windowZooming(_formel);
     } else if (e.data.allScreen && e.data.allScreen == "4s") {
@@ -1360,7 +1360,7 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openApplication("lineSearch")
     } else if (e.data.tools && e.data.tools == "60") {
         U.MD.D.I.openApplication("deepLearning")
-    }  else if (e.data.tools && e.data.tools == "28") {
+    } else if (e.data.tools && e.data.tools == "28") {
         U.MD.D.I.openApplication("translation")
     } else if (e.data.tools && e.data.tools == "37") {
         U.MD.D.I.openApplication("mohe")
@@ -1390,9 +1390,9 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openApplication("AIAnalyse")
     } else if (e.data.tools && e.data.tools == "1teacher") {
         U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
-    }else if (e.data.tools && e.data.tools == "3teacher") {
+    } else if (e.data.tools && e.data.tools == "3teacher") {
         U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
-    }else if (e.data.tools && e.data.tools == "7teacher") {
+    } else if (e.data.tools && e.data.tools == "7teacher") {
         U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
     }
 
@@ -1473,23 +1473,23 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 break;
             }
         case "studyDetailS5":
-                if (!_userinfo || Object.keys(_userinfo).length === 0) {
-                    setTimeout(() => {
-                        U.MD.U.L.login();
-                    }, 2000);
-                } else {
-                    _formdiv = new U.UF.UI.form(
-                        "项目详情",
-                        $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
-                        "id": "studyDetailS",
-                        "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
-                        "onresize": function () { }
-                    }, {
-                        closecallback: function () { }
-                    }, { "style": { "height": "36px" } }).form; //创建窗体
-                    _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
-                    break;
-                }
+            if (!_userinfo || Object.keys(_userinfo).length === 0) {
+                setTimeout(() => {
+                    U.MD.U.L.login();
+                }, 2000);
+            } else {
+                _formdiv = new U.UF.UI.form(
+                    "项目详情",
+                    $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
+                    "id": "studyDetailS",
+                    "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
+                    "onresize": function () { }
+                }, {
+                    closecallback: function () { }
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+            }
         case "studyDetailGM":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {
@@ -2480,7 +2480,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
         case "CocoPi": //CocoPi
             _formdiv = new U.UF.UI.form(
                 "CocoPi",
-                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
                 "id": "CocoPi",
                 "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                 "onresize": function () { }
@@ -2492,7 +2492,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
         case "car": //模拟驾驶
             _formdiv = new U.UF.UI.form(
                 "模拟驾驶",
-                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
                 "id": "car",
                 "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                 "onresize": function () { }
@@ -2504,7 +2504,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
         case "lineSearch": //路径搜索
             _formdiv = new U.UF.UI.form(
                 "路径搜索",
-                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
                 "id": "lineSearch",
                 "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                 "onresize": function () { }
@@ -2516,7 +2516,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
         case "deepLearning": //深度学习
             _formdiv = new U.UF.UI.form(
                 "深度学习",
-                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
                 "id": "deepLearning",
                 "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                 "onresize": function () { }
@@ -2984,7 +2984,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             }, { "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;  
+            break;
         case "learnAna": //好友打开
             _formdiv = new U.UF.UI.form(
                 "学习分析",
@@ -2997,24 +2997,25 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
 
-            break; 
+            break;
         case "AIChat": //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://cloud.cocorobo.cn/aichat/"}), {
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
                 "id": "AIChat",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "460px", "height": "550px", "overflow": 'hidden' },
                 "onresize": function () { }
             }, {
-                closecallback: function () { }
+                closecallback: function () { $("#aichat").remove(); },
+                narrowcallback: function () { if (!$("#aichat")[0]) { $$("#aichat", { "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv.form); } }) } },
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI助手", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
 
-            break; 
+            break;
         case "AIAnalyse": //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://cloud.cocorobo.cn/ai/"}), {
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
                 "id": "AIAnalyse",
                 "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
                 "onresize": function () { }
@@ -3023,8 +3024,8 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
 
-            break;    
-              
+            break;
+
     }
 
 
@@ -3638,7 +3639,7 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
 
 }
 
-U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,student) {
+U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
     var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
         _formdiv, //创建任务栏时同时弹出的窗体元素。
         _userid = student.userid, //登录用户id
@@ -3685,7 +3686,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
         },
     })
     _box.appendChild(_loading)
-    _box.id = str + '_loadLi'+_userid
+    _box.id = str + '_loadLi' + _userid
     switch (str) {
         case "whiteboard":
             aTool = 1;
@@ -3701,7 +3702,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "电子白板-"+_username,
+                "电子白板-" + _username,
                 _box, {
                 "id": "whiteboard" + cid + stage + task + tool + _userid,
                 "style": {
@@ -3743,7 +3744,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "思维导图-"+_username,
+                "思维导图-" + _username,
                 _box, { //"/jsmind/example/demo.html" 
                 "id": "mind" + cid + stage + task + tool + _userid,
                 "style": {
@@ -3785,7 +3786,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "思维导图-"+_username,
+                "思维导图-" + _username,
                 _box, { //"/jsmind/example/demo.html" 
                 "id": "mind" + cid + stage + task + tool + _userid,
                 "style": {
@@ -3827,7 +3828,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "协同文档-"+_username,
+                "协同文档-" + _username,
                 _box, {
                 "id": "doc" + cid + stage + task + tool + _userid,
                 "style": {
@@ -3876,7 +3877,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "思维网格-"+_username,
+                "思维网格-" + _username,
                 _box, {
                 "id": "mindNetwork" + cid + stage + task + tool + _userid,
                 "style": {
@@ -3920,7 +3921,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
             _box.appendChild(_iframe);
             _box.appendChild(_jie);
             _formdiv = new U.UF.UI.form(
-                "项目设计-"+_username,
+                "项目设计-" + _username,
                 _box, {
                 "id": "courseDesign" + cid + stage + task + tool + _userid,
                 "style": {
@@ -4054,7 +4055,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool,stude
                 "'" +
                 ", " +
                 "'" +
-                str + '_loadLi'+_userid +
+                str + '_loadLi' + _userid +
                 "'" +
                 ", " +
                 "'" +
@@ -4712,7 +4713,7 @@ U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
                 } else if (type == '3') {
                     iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
                 }
-            }else {
+            } else {
                 iframe.contentWindow.h.app.updateScene({ elements: [] })
             }
         }

Some files were not shown because too many files changed in this diff