|
@@ -502,6 +502,11 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
|
|
|
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'){
|
|
|
+ _teacherDesktopIconInfo.push(
|
|
|
+ { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } }
|
|
|
+ )
|
|
|
+ }
|
|
|
//循环创建桌面图标
|
|
|
if (type == 1) {
|
|
|
if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
|
|
@@ -1252,7 +1257,9 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
U.MD.D.I.openApplication("netWorkPanel")
|
|
|
} else if (e.data.tools && e.data.tools == "32") {
|
|
|
U.MD.D.I.openApplication("codeEdit")
|
|
|
- } else if (e.data.tools && e.data.tools == "28") {
|
|
|
+ } else if (e.data.tools && e.data.tools == "57") {
|
|
|
+ U.MD.D.I.openApplication("CocoPi")
|
|
|
+ } 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")
|
|
@@ -2341,6 +2348,30 @@ U.MD.D.I.openApplication = function (str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "CocoPi": //ai编程
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "CocoPi",
|
|
|
+ $$("iframe", { "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 () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
+ case "chatPDF": //ai编程
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "chatPDF",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
|
|
|
+ "id": "chatPDF",
|
|
|
+ "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/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "resources": //国家教育
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"国家教育",
|