lsc 1 year ago
parent
commit
2fdb7252d9
2 changed files with 14 additions and 1 deletions
  1. BIN
      img/icon/AIChat.png
  2. 14 1
      js/Desktop/DeskTop.js

BIN
img/icon/AIChat.png


+ 14 - 1
js/Desktop/DeskTop.js

@@ -512,6 +512,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         _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){
@@ -2906,7 +2907,19 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             _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; 
-              
+        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/"}), {
+                "id": "AIChat",
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "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;     
     }