lsc vor 2 Jahren
Ursprung
Commit
01079d876a
1 geänderte Dateien mit 17 neuen und 1 gelöschten Zeilen
  1. 17 1
      js/Desktop/DeskTop.js

+ 17 - 1
js/Desktop/DeskTop.js

@@ -1321,6 +1321,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "inviteLogin") {
         U.MD.D.getuser2(e.data.userid, e.data.courseId)
+    } else if (e.data.tools && e.data.tools == "AIAnalyse") {
+        U.MD.D.I.openApplication("AIAnalyse")
     }
 
 });
@@ -2919,7 +2921,21 @@ 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; 
+        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/"}), {
+                "id": "AIAnalyse",
+                "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;    
+              
     }