|
@@ -48,7 +48,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]);
|
|
@@ -69,7 +69,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": "-60px" });
|
|
|
//桌面的位置变大
|
|
@@ -82,7 +82,7 @@ U.MD.D.I.hiddenTaskbar = function(el) {
|
|
|
*
|
|
|
* @param {element} 桌面元素
|
|
|
*/
|
|
|
-U.MD.D.I.hiddenTaskbarout = function(el) {
|
|
|
+U.MD.D.I.hiddenTaskbarout = function (el) {
|
|
|
//任务栏位置变小
|
|
|
if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
|
|
|
//任务栏位置变化
|
|
@@ -98,7 +98,7 @@ U.MD.D.I.hiddenTaskbarout = function(el) {
|
|
|
*
|
|
|
* @param {element} 桌面元素
|
|
|
*/
|
|
|
-U.MD.D.I.initDesktopIcons = function(el) {
|
|
|
+U.MD.D.I.initDesktopIcons = function (el) {
|
|
|
var i, //用于循环
|
|
|
_content, //桌面图标元素
|
|
|
_iconcontent, //桌面图标元素
|
|
@@ -110,11 +110,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]])
|
|
@@ -134,7 +134,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") {
|
|
|
//任务栏位置变化
|
|
@@ -154,7 +154,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
|
|
@@ -192,7 +192,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是为了兼容 所有浏览器的右键处理
|
|
@@ -218,7 +218,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;
|
|
|
}
|
|
@@ -229,7 +229,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,
|
|
@@ -263,7 +263,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++) {
|
|
|
//判断有没有和该图标诶子重叠的元素
|
|
@@ -308,7 +308,7 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
|
|
|
如果第一个参数为其他,则无第二个参数
|
|
|
* @returns {array}
|
|
|
*/
|
|
|
-window.addEventListener('message', function(e) { // 监听 message 事件
|
|
|
+window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
// alert(e.data.type);
|
|
|
if (e.data.type && e.data.type == "1") { //项目管理传入
|
|
|
U.MD.D.I.openInApplication("study", e.data.cid)
|
|
@@ -316,85 +316,151 @@ window.addEventListener('message', function(e) { // 监听 message 事件
|
|
|
U.MD.D.I.selectUser();
|
|
|
}
|
|
|
});
|
|
|
-// U.MD.D.I.isRoom = function() {
|
|
|
-// U.A.Request(US.Config.pbl + "selectRoom?userid=" + US.user.userid, [], function(res) { //US.user.userid
|
|
|
-// if (res.value == null || res.value[0].length == 0) {
|
|
|
-// U.MD.D.I.openRoomConfirm();
|
|
|
-// } else {
|
|
|
-
|
|
|
-// }
|
|
|
-// }, [], { "type": "GET", "withCredentials": true });
|
|
|
-// }
|
|
|
-// U.MD.D.I.MathRand() = function() {
|
|
|
-// var Num = "";
|
|
|
-// for (var i = 0; i < 6; i++) {
|
|
|
-// Num += Math.floor(Math.random() * 10);
|
|
|
-// }
|
|
|
-// return Num;
|
|
|
-// }
|
|
|
-// U.MD.D.I.checkNum = function() {
|
|
|
-// var numNum = U.MD.D.I.MathRand();
|
|
|
-// U.A.Request(US.Config.pbl + "checkRoomNum?num=" + numNum, [], function(res) {
|
|
|
-// if (res.value == null || res.value[0].length == 0) {
|
|
|
-// U.MD.D.I.addRoom();
|
|
|
-// } else {
|
|
|
-// U.MD.D.I.checkNum();
|
|
|
-// }
|
|
|
-// }, [], { "type": "GET", "withCredentials": true });
|
|
|
-// }
|
|
|
-// U.MD.D.I.addRoom() = function() {
|
|
|
-// console.log(111);
|
|
|
-// }
|
|
|
-// U.MD.D.I.openRoomConfirm = function() {
|
|
|
-// var BOX = $$("div", {});
|
|
|
-// var form_main = $$('div', { "className": "form-main" }, BOX);
|
|
|
-// var form_content = $$('div', { "className": "form-content" }, form_main);
|
|
|
-// var form_delete_main = $$('div', { "className": "form_delete-main" }, form_content);
|
|
|
-// $$("input", { "className": "form_delete-main_box", "placeholder": `${"请输入要加入的房间号"}` }, form_delete_main);
|
|
|
-// $$("div", { "className": "remark", "innerHTML": "备注:输入房间号点击加入房间或点击创建房间直接创建房间", }, form_delete_main)
|
|
|
-// var btnBox = $$('div', { "className": "form-btn" }, BOX);
|
|
|
-// var cencal = $$('button', { "className": "form-cencal", "innerHTML": `${"加入房间"}` }, btnBox);
|
|
|
-// var confirm = $$('button', { "className": "form-confirm", "innerHTML": `${"创建房间"}` }, btnBox);
|
|
|
-// new U.UF.UI.form(`${"创建/加入房间"}`, BOX, {
|
|
|
-// id: 'delete_course',
|
|
|
-// style: {
|
|
|
-// "background": "#fffefe",
|
|
|
-// "width": "500px",
|
|
|
-// "height": "220px",
|
|
|
-// "z-index": "99",
|
|
|
-// "display": "flex",
|
|
|
-// }
|
|
|
-// }, {
|
|
|
-// isenlarge: false,
|
|
|
-// isnarrow: false
|
|
|
-// }, {
|
|
|
-// style: {
|
|
|
-// "height": "40px",
|
|
|
-// "text-align": "center",
|
|
|
-// "line-height": "40px",
|
|
|
-// // "background": "url('/img/logo.png')",
|
|
|
-// "background-repeat": "no-repeat",
|
|
|
-// "font-size": "18px",
|
|
|
-// "background-color": "#3d67bc"
|
|
|
-// }
|
|
|
-// });
|
|
|
-// confirm.onclick = function() {
|
|
|
-// $("#delete_course")[0].remove();
|
|
|
-// }
|
|
|
-// cencal.onclick = function() {
|
|
|
-// $("#delete_course")[0].remove();
|
|
|
-// }
|
|
|
+U.MD.D.I.isRoom = function () {
|
|
|
+ U.A.Request(US.Config.pbl + "selectRoomByFile?uid=" + US.user.userid, [], function (res) { //US.user.userid
|
|
|
+ if (res.value == null || res.value[0].length == 0) {
|
|
|
+ U.MD.D.I.openRoomConfirm();
|
|
|
+ } else {
|
|
|
+ US.numNum = res.value[0][0].num;
|
|
|
+ U.MD.D.I.isOpenRoomConfirm();
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
+}
|
|
|
+U.MD.D.I.MathRand = function () {
|
|
|
+ var Num = "";
|
|
|
+ for (var i = 0; i < 6; i++) {
|
|
|
+ Num += Math.floor(Math.random() * 10);
|
|
|
+ }
|
|
|
+ return Num;
|
|
|
+}
|
|
|
+U.MD.D.I.checkNum = function () {
|
|
|
+ var numNum = U.MD.D.I.MathRand();
|
|
|
+ U.A.Request(US.Config.pbl + "checkRoomNumByFile?num=" + numNum, [], function (res) {
|
|
|
+ if (res.value == null || res.value[0].length == 0) {
|
|
|
+ U.MD.D.I.addRoom(numNum);
|
|
|
+ } else {
|
|
|
+ U.MD.D.I.checkNum();
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
+}
|
|
|
+U.MD.D.I.addRoom = function (numNum) {
|
|
|
+ var data = decodeURIComponent(JSON.stringify([]));
|
|
|
+ U.A.Request(US.Config.pbl + "insertRoomByFile?uid=" + US.user.userid + "&n=" + numNum + "&d=" + encodeURIComponent(data), [], function (res) {
|
|
|
+ if (res.value == 1) {
|
|
|
+ U.alert("创建成功");
|
|
|
+ if ($("#add_room")[0]) {
|
|
|
+ $("#add_room")[0].close(); //关闭登陆
|
|
|
+ }
|
|
|
+ U.MD.D.I.isRoom();
|
|
|
+ } else {
|
|
|
+ U.alert("创建失败");
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
+}
|
|
|
+U.MD.D.I.goRoom = function (number) {
|
|
|
+ U.A.Request(US.Config.pbl + "selectRoomByFile?uid=" + number, [], function (res) { //US.user.userid
|
|
|
+ if (res.value[0].length > 0) {
|
|
|
+ U.alert("加入成功");
|
|
|
+ if ($("#add_room")[0]) {
|
|
|
+ $("#add_room")[0].close(); //关闭登陆
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ U.alert("此房间不存在或已被解散");
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
+}
|
|
|
+U.MD.D.I.isOpenRoomConfirm = function () {
|
|
|
+ var BOX = $$("div", {});
|
|
|
+ var form_main = $$('div', { "className": "form-main" }, BOX);
|
|
|
+ var form_content = $$('div', { "className": "form-content" }, form_main);
|
|
|
+ var form_delete_main = $$('div', { "className": "form_delete-main-room" }, form_content);
|
|
|
+ var form_delete_main_top = $$('div', { "className": "form_delete-main-top" }, form_delete_main);
|
|
|
+ $$("div", { "className": "remark", "innerHTML": US.userinfo.username + "邀请您参与协同文档", }, form_delete_main_top)
|
|
|
+ var form_delete_main_body = $$('div', { "className": "form_delete-main-body" }, form_delete_main);
|
|
|
+ $$("div", {
|
|
|
+ "class": "clickNav", "innerHTML": "点击链接加入房间",
|
|
|
+ }, form_delete_main_body)
|
|
|
+ $$("div", { "class": "link", "innerHTML": "http://cocorobo.wg.com/dm/EOGyBbFiCwam", }, form_delete_main_body)
|
|
|
+ var room_number = $$('div', { "className": "room_number" }, form_delete_main_body);
|
|
|
+ $$("div", { "class": "link", "innerHTML": "房间号:", }, room_number)
|
|
|
+ $$("div", { "class": "roomNumber", "innerHTML": US.numNum, }, room_number)
|
|
|
+ $$("div", { "className": "link", "innerHTML": "复制房间号信息,打开协同文档输入即可加入。", }, form_delete_main_body)
|
|
|
+ var btnBox = $$('div', { "className": "copy-btn" }, form_main);
|
|
|
+ var confirm = $$('button', { "className": "copy-message", "innerHTML": `${"一键复制信息"}` }, btnBox);
|
|
|
+ new U.UF.UI.form(`${"邀请成员"}`, BOX, {
|
|
|
+ id: 'invite_members',
|
|
|
+ style: {
|
|
|
+ "background": "#fffefe",
|
|
|
+ "width": "350px",
|
|
|
+ "height": "500px",
|
|
|
+ "z-index": "99",
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ isenlarge: false,
|
|
|
+ isnarrow: false
|
|
|
+ }, {
|
|
|
+ style: {
|
|
|
+ "height": "40px",
|
|
|
+ "text-align": "center",
|
|
|
+ "line-height": "40px",
|
|
|
+ "text-indent": "25px",
|
|
|
+ "background-repeat": "no-repeat",
|
|
|
+ "font-size": "14px",
|
|
|
+ "background-color": "#494949",
|
|
|
+ "display": "flex",
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+U.MD.D.I.openRoomConfirm = function () {
|
|
|
+ var BOX = $$("div", {});
|
|
|
+ var form_main = $$('div', { "className": "form-main" }, BOX);
|
|
|
+ var form_content = $$('div', { "className": "form-content" }, form_main);
|
|
|
+ var form_delete_main = $$('div', { "className": "form_delete-main" }, form_content);
|
|
|
+ $$("input", { "className": "form_delete-main_box", "placeholder": `${"请输入要加入的房间号"}` }, form_delete_main);
|
|
|
+ $$("div", { "className": "remark", "innerHTML": "备注:输入房间号点击加入房间或点击创建房间直接创建房间", }, form_delete_main)
|
|
|
+ var btnBox = $$('div', { "className": "form-btn" }, form_delete_main);
|
|
|
+ var cencal = $$('button', { "className": "form-cencal", "innerHTML": `${"加入房间"}` }, btnBox);
|
|
|
+ var confirm = $$('button', { "className": "form-confirm", "innerHTML": `${"创建房间"}` }, btnBox);
|
|
|
+ new U.UF.UI.form(`${"创建/加入房间"}`, BOX, {
|
|
|
+ id: 'add_room',
|
|
|
+ style: {
|
|
|
+ "background": "#fffefe",
|
|
|
+ "width": "400px",
|
|
|
+ "height": "281px",
|
|
|
+ "z-index": "99",
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ isenlarge: false,
|
|
|
+ isnarrow: false
|
|
|
+ }, {
|
|
|
+ style: {
|
|
|
+ "height": "40px",
|
|
|
+ "text-align": "center",
|
|
|
+ "line-height": "40px",
|
|
|
+ "text-indent": "25px",
|
|
|
+ "background-repeat": "no-repeat",
|
|
|
+ "font-size": "16px",
|
|
|
+ "background-color": "#32455B",
|
|
|
+ "display": "flex",
|
|
|
+ }
|
|
|
+ });
|
|
|
+ confirm.onclick = function () {
|
|
|
+ U.MD.D.I.checkNum();
|
|
|
+ }
|
|
|
+ cencal.onclick = function () {
|
|
|
+ U.MD.D.I.goRoom($(".form_delete-main_box")[0].value);
|
|
|
+ }
|
|
|
|
|
|
-// }
|
|
|
-U.MD.D.I.selectUser = function() {
|
|
|
- U.A.Request(US.Config.pbl + "selectUser?userid=" + US.user.userid, [], function(res) {
|
|
|
+}
|
|
|
+U.MD.D.I.selectUser = function () {
|
|
|
+ U.A.Request(US.Config.pbl + "selectUser?userid=" + US.user.userid, [], function (res) {//US.user.userid
|
|
|
if (res.value[0].length > 0) {
|
|
|
US.userinfo = res.value[0][0];
|
|
|
$(".userName")[0].innerHTML = US.userinfo.username;
|
|
|
}
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|
|
|
-U.MD.D.I.openInApplication = function(str, data) {
|
|
|
+U.MD.D.I.openInApplication = function (str, data) {
|
|
|
var _userid = US.user.userid, //登录用户id
|
|
|
_oid = US.userinfo.organizeid;
|
|
|
switch (str) {
|
|
@@ -407,19 +473,19 @@ U.MD.D.I.openInApplication = function(str, data) {
|
|
|
_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-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data }), {
|
|
|
- "id": "study",
|
|
|
- "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/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "study",
|
|
|
+ "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/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
+U.MD.D.I.openApplication = function (str, obj, info) {
|
|
|
obj = obj || {};
|
|
|
var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
|
|
|
_formdiv, //创建任务栏时同时弹出的窗体元素。
|
|
@@ -438,13 +504,13 @@ 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/#/course?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
- "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); } }
|
|
|
+ "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;
|
|
|
}
|
|
|
|
|
@@ -457,13 +523,13 @@ 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/#/student?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
- "id": "student",
|
|
|
- "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/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "student",
|
|
|
+ "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/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -477,13 +543,13 @@ 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/#/works?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
- "id": "evaluate",
|
|
|
- "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/evaluation.png)" }, "name": "评价管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "evaluate",
|
|
|
+ "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/evaluation.png)" }, "name": "评价管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "class":
|
|
@@ -495,13 +561,13 @@ 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/#/class?userid=" + _userid + "&oid=" + _oid }), {
|
|
|
- "id": "class",
|
|
|
- "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/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "class",
|
|
|
+ "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/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "my":
|
|
@@ -513,13 +579,13 @@ 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/#/data?userid=" + _userid }), {
|
|
|
- "id": "my",
|
|
|
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
- "onresize": function() {}
|
|
|
- }, {
|
|
|
- closecallback: function() {}
|
|
|
- }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "my",
|
|
|
+ "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "notice":
|
|
@@ -531,13 +597,13 @@ 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/#/notice?userid=" + _userid }), {
|
|
|
- "id": "notice",
|
|
|
- "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/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "notice",
|
|
|
+ "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/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -550,13 +616,13 @@ 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/#/library?userid=" + _userid }), {
|
|
|
- "id": "library",
|
|
|
- "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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "library",
|
|
|
+ "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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "whiteboard":
|
|
@@ -568,13 +634,13 @@ 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" }), {
|
|
|
- "id": "whiteboard",
|
|
|
- "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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "whiteboard",
|
|
|
+ "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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "investigation":
|
|
@@ -586,13 +652,13 @@ 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/#/ask?userid=" + _userid }), {
|
|
|
- "id": "investigation",
|
|
|
- "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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "investigation",
|
|
|
+ "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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "note":
|
|
@@ -604,13 +670,13 @@ 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/#/note?userid=" + _userid }), {
|
|
|
- "id": "note",
|
|
|
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
|
|
|
- "onresize": function() {}
|
|
|
- }, {
|
|
|
- closecallback: function() {}
|
|
|
- }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "note",
|
|
|
+ "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "score":
|
|
@@ -622,13 +688,13 @@ 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" }), {
|
|
|
- "id": "score",
|
|
|
- "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/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "score",
|
|
|
+ "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/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "mind":
|
|
@@ -640,13 +706,13 @@ 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": "/jsmind/example/demo.html" }), {
|
|
|
- "id": "mind",
|
|
|
- "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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "mind",
|
|
|
+ "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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "doc":
|
|
@@ -655,21 +721,21 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
U.MD.U.L.login();
|
|
|
}, 2000);
|
|
|
} else {
|
|
|
- // U.MD.D.I.isRoom();
|
|
|
+ U.MD.D.I.isRoom();
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"协同文档",
|
|
|
$$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
|
|
|
- "id": "doc",
|
|
|
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
|
|
|
- "onresize": function() {}
|
|
|
- }, {
|
|
|
- closecallback: function() {}
|
|
|
- }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
-
|
|
|
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
|
|
|
+ "id": "doc",
|
|
|
+ "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+
|
|
|
+ U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
|
|
|
$("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
|
|
|
})
|
|
|
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "study":
|
|
@@ -681,13 +747,13 @@ 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-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
- "id": "study",
|
|
|
- "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/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ "id": "study",
|
|
|
+ "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/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
}
|
|
|
case "mindNetwork": //好友打开
|
|
@@ -699,112 +765,112 @@ 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/#/Grid?userid=" + _userid }), {
|
|
|
- "id": "mindNetwork",
|
|
|
- "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); } }
|
|
|
+ "id": "mindNetwork",
|
|
|
+ "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 "friend": //好友打开
|
|
|
- // U.MD.D.I.IsDrag = true;
|
|
|
- // U.MD.F.W.viewFriend(info); //打开好友
|
|
|
- // // U.MD.N.urlWrite("friend/" + obj.directoryid, "好友"); //好友的url重写
|
|
|
- // break;
|
|
|
- // case "domain":
|
|
|
- // var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + info.fileId + '&type=' + info.type + '&mode=' + info.mode, frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px" } });
|
|
|
- // _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); } }
|
|
|
- // }
|
|
|
- // 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); } }
|
|
|
- // }
|
|
|
- // break;
|
|
|
- // case "word": //Word打开
|
|
|
- // var _wordinfo = U.MD.O.word(_userinfo, obj, arguments[2]); //初始化word的处理
|
|
|
- // _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]); } }
|
|
|
- // }
|
|
|
- // if (obj.UrlType != 'join') {
|
|
|
- // U.MD.N.urlWrite("word/" + _formdiv.id.substr(-36), "在线文档"); //word的url重写
|
|
|
- // }
|
|
|
- // break;
|
|
|
- // case "excel": //Excel打开
|
|
|
- // _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); } }
|
|
|
- // }
|
|
|
- // U.MD.N.urlWrite("excel/" + _formdiv.id.substr(-36), "Excel");
|
|
|
- // break;
|
|
|
- // case "txt": //Txt打开
|
|
|
- // _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); } }
|
|
|
- // }
|
|
|
- // 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); } }
|
|
|
- // 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); } }
|
|
|
- // 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); } }
|
|
|
- // 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); } }
|
|
|
- // }
|
|
|
- // 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); } }
|
|
|
- // 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); } }
|
|
|
- // U.MD.N.urlWrite("boomyun", "互联办公"); //boomyun的url重写
|
|
|
- // break;
|
|
|
- // case "xz": //App下载
|
|
|
- // window.open("http://xz.1473.cn");
|
|
|
- // break;
|
|
|
- // case "client": //App下载
|
|
|
- // window.open("http://client.1473.cn");
|
|
|
- // break;
|
|
|
- // case "backEndProgramming": //在线编程平台打开
|
|
|
- // window.open("http://c.1473.cn");
|
|
|
- // break;
|
|
|
- // case "frontEndProgramming": //在线web编程
|
|
|
- // window.open("http://d.1473.cn");
|
|
|
- // break;
|
|
|
- // default:
|
|
|
- // break;
|
|
|
+ // case "friend": //好友打开
|
|
|
+ // U.MD.D.I.IsDrag = true;
|
|
|
+ // U.MD.F.W.viewFriend(info); //打开好友
|
|
|
+ // // U.MD.N.urlWrite("friend/" + obj.directoryid, "好友"); //好友的url重写
|
|
|
+ // break;
|
|
|
+ // case "domain":
|
|
|
+ // var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + info.fileId + '&type=' + info.type + '&mode=' + info.mode, frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px" } });
|
|
|
+ // _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); } }
|
|
|
+ // }
|
|
|
+ // 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); } }
|
|
|
+ // }
|
|
|
+ // break;
|
|
|
+ // case "word": //Word打开
|
|
|
+ // var _wordinfo = U.MD.O.word(_userinfo, obj, arguments[2]); //初始化word的处理
|
|
|
+ // _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]); } }
|
|
|
+ // }
|
|
|
+ // if (obj.UrlType != 'join') {
|
|
|
+ // U.MD.N.urlWrite("word/" + _formdiv.id.substr(-36), "在线文档"); //word的url重写
|
|
|
+ // }
|
|
|
+ // break;
|
|
|
+ // case "excel": //Excel打开
|
|
|
+ // _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); } }
|
|
|
+ // }
|
|
|
+ // U.MD.N.urlWrite("excel/" + _formdiv.id.substr(-36), "Excel");
|
|
|
+ // break;
|
|
|
+ // case "txt": //Txt打开
|
|
|
+ // _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); } }
|
|
|
+ // }
|
|
|
+ // 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); } }
|
|
|
+ // 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); } }
|
|
|
+ // 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); } }
|
|
|
+ // 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); } }
|
|
|
+ // }
|
|
|
+ // 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); } }
|
|
|
+ // 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); } }
|
|
|
+ // U.MD.N.urlWrite("boomyun", "互联办公"); //boomyun的url重写
|
|
|
+ // break;
|
|
|
+ // case "xz": //App下载
|
|
|
+ // window.open("http://xz.1473.cn");
|
|
|
+ // break;
|
|
|
+ // case "client": //App下载
|
|
|
+ // window.open("http://client.1473.cn");
|
|
|
+ // break;
|
|
|
+ // case "backEndProgramming": //在线编程平台打开
|
|
|
+ // window.open("http://c.1473.cn");
|
|
|
+ // break;
|
|
|
+ // case "frontEndProgramming": //在线web编程
|
|
|
+ // window.open("http://d.1473.cn");
|
|
|
+ // break;
|
|
|
+ // default:
|
|
|
+ // break;
|
|
|
}
|
|
|
//U.MD.D.I.openClick(str);
|
|
|
//如果有任务栏信息
|