فهرست منبع

Merge branch 'beta'

lsc 5 روز پیش
والد
کامیت
3200207876
6فایلهای تغییر یافته به همراه545 افزوده شده و 48 حذف شده
  1. 1 0
      app.html
  2. 409 0
      js/Common/html2canvas-pro.min.js
  3. 64 40
      js/Desktop/DeskTop.js
  4. 7 7
      js/gm/DeskTop.js
  5. 57 0
      js/liyuan/Onload.js
  6. 7 1
      js/liyuan/Onload2.js

+ 1 - 0
app.html

@@ -13,6 +13,7 @@
             width: 100%;
             overflow: hidden;
             height: 100%;
+            display: block;
         }
     </style>
 </head>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 409 - 0
js/Common/html2canvas-pro.min.js


+ 64 - 40
js/Desktop/DeskTop.js

@@ -5760,6 +5760,12 @@ window.addEventListener('message', function (e) { // 监听 message 事件
             gid: e.data.gid || '',
         }
         U.MD.D.I.openInApplication("opencCscl", _data)
+    } else if (e.data.tools && e.data.tools == "opencCscl2") {
+        let _data = {
+            cid: e.data.cid || '',
+            gid: e.data.gid || '',
+        }
+        U.MD.D.I.openInApplication("opencCscl2", _data)
     } else if (e.data.tools && e.data.tools == "dataBoardTest") {
         U.MD.D.I.openApplication("dataBoardTest")
     } else if (e.data.tools && e.data.tools == "openCourseUpdate") {
@@ -5858,7 +5864,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课程详情",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetailNT",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -5876,7 +5882,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课程详情",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetail",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -5894,7 +5900,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "培训详情",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailTrain?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetailTrain",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -5966,7 +5972,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课程详情",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetail",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6002,7 +6008,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课程中心",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=2" + "&typea=" + data.typea + "&typeb=" + data.typeb + "&typed=" + data.typed }), {
                     "id": "study",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6046,6 +6052,24 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "opencCscl2":
+            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; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.cn?cid=" + data.cid + "&gid=" + data.gid }), {
+                    "id": "futureClass",
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                    "onresize": function () { }
+                }, {
+                    closecallback: function () { $("iframe", _formdiv)[0].contentWindow.loginout(); }
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+            }
         case "openCourseUpdate":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {
@@ -6214,7 +6238,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "综合数据看板",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/sz/dataBoardArea?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                     "id": "dataBoardSZArea",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6231,7 +6255,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "综合数据看板",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/sz/dataBoardCity?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                     "id": "dataBoardSZCity",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6248,7 +6272,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课堂观察",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=" + data }), {
                     "id": "classroom_observation_board",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6265,7 +6289,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "课堂审核",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aigpt/#/classroom_observation_ob_comment?tid=" + data }), {
                     "id": "classroom_observation_ob_comment",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6486,7 +6510,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "课程中心",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "studentStudy",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6700,7 +6724,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "课程中心",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "studentStudy",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6788,7 +6812,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "目标管理",
                     $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                     "id": "sys",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -6989,7 +7013,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "课程中心",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "study",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -7173,7 +7197,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "课程中心",
                     $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "study",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -7213,7 +7237,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "目标管理",
                     $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                     "id": "sys",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -7616,7 +7640,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "课程中心",
                 $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
                 "id": "study",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7867,7 +7891,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "我的评价",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/myReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId }), {
                 "id": "myReport",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7880,7 +7904,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "学习分析",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                 "id": "learnAna",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7912,7 +7936,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "AI协同",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
                 "id": "ainew",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7925,7 +7949,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "AI助手",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/gpt4/?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "gpt4",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7938,7 +7962,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "AI助手+",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aigpt/?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "aigpt",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () {
@@ -7959,7 +7983,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "知识建构",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": _url }), {
                 "id": "aiKnowledge",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -7972,7 +7996,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "协同建构",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.cn
                 "id": "synergyCourse",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () {
@@ -7987,7 +8011,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "AI Agent",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://metagpt.cocorobo.cn/dist/index.html" }), {
                 "id": "AIAgent",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8000,7 +8024,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "数据看板",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoard?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "dataBoard",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8013,7 +8037,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "数据融合",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoardSies?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "dataBoardSies",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8026,7 +8050,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "综合看板",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoardNew?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "dataBoardNew",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8039,7 +8063,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "评测看板",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoardTest?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "dataBoardTest",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8052,7 +8076,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "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' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8065,7 +8089,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "工作管理",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "studioCourse",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8078,7 +8102,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "工作中心",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
                 "id": "studioIndex",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8156,7 +8180,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "案例征集",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pblyt.cocorobo.cn/#/login?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "ytpbl",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8172,7 +8196,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 false,
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/course_resource/index.html" + window.location.search }), {
                 "id": "aiCourseResource",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { },
                 "isdrag": false,
             }, {
@@ -8186,7 +8210,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "图形化编程",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/course_resource/cocoblockly-x/index.html" }), {
                 "id": "szdjgCocooroboX",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8198,7 +8222,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "Python编程",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/course_resource/cocoblockly-x/python/index.html" }), {
                 "id": "szdjgPython",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8234,7 +8258,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "课堂观察",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classroomObservation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                 "id": "classroomObservation",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8260,7 +8284,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "CocoFlow",
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//app.cocorobo.cn/#/?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "appStore",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }
@@ -8319,7 +8343,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 false,
                 $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//app.cocorobo.cn/#/?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "cocoflowDeskTop",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { },
             }, {
                 closecallback: function () { },
@@ -8331,9 +8355,9 @@ U.MD.D.I.openApplication = function (str, obj, info) {
         case "liyuanLogin": //liyuanLogin
             _formdiv = new U.UF.UI.form(
                 false,
-                $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//liyuan.cocorobo.cn/#/login?org=" + _org + "&oid=" + _oid }), {
+                $$("iframe", { "allow": "camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//liyuan.cocorobo.cn/#/login?org=" + _org + "&oid=" + _oid + (obj.type ? `&type=${obj.type}` : '') + (obj.courseid ? `&courseid=${obj.courseid}` : '') }), {
                 "id": "liyuanLogin",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { },
             }, {
                 closecallback: function () { },

+ 7 - 7
js/gm/DeskTop.js

@@ -763,7 +763,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "项目详情",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetail",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -781,7 +781,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     "项目详情",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
                     "id": "studyDetail",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -976,7 +976,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "学习中心",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture","webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "studentStudy",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -1190,7 +1190,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "学习中心",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture","webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "studentStudy",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -1453,7 +1453,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "学习中心",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture","webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "study",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -1637,7 +1637,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                     "学习中心",
                     $$("iframe", { "allow": "camera *; microphone *;display-capture","webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
                     "id": "study",
-                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                    "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                     "onresize": function () { }
                 }, {
                     closecallback: function () { }
@@ -1957,7 +1957,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "学习中心",
                 $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
                 "id": "study",
-                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                "style": { "width": "100%", "height": "100%", "overflow": 'hidden' , "display":"none"},
                 "onresize": function () { }
             }, {
                 closecallback: function () { }

+ 57 - 0
js/liyuan/Onload.js

@@ -1256,3 +1256,60 @@ function addOp(text,type,time){
         }, [], { "type": "POST", "withCredentials": true });
     }
 }
+
+function detectBrowser() {
+    const ua = navigator.userAgent;
+  
+    // 按优先级顺序检测
+    if (ua.includes("Edg/") || ua.includes("Edge/")) {
+        return "Microsoft Edge";
+    } else if (ua.includes("Firefox")) {
+        return "Mozilla Firefox";
+    } else if (ua.includes("Trident") || ua.includes("MSIE")) {
+        return "Internet Explorer";
+    } else if (ua.includes("360EE")) {
+        return "360 Browser (极速模式)";
+    } else if (ua.includes("360SE")) {
+        return "360 Browser (安全模式)";
+    } else if (ua.includes("SLBrowser")) {
+        return "QQ Browser";
+    } else if (ua.includes("UCBrowser")) {
+        return "UC Browser";
+    } else if (ua.includes("Opera") || ua.includes("OPR/")) {
+        return "Opera";
+    } else if (ua.includes("Chrome") && !ua.includes("Edg/")) {
+        return "Google Chrome";
+    } else if (ua.includes("Safari/") && !ua.includes("Chrome")) {
+        return "Safari";
+    } else {
+        return "Other Browser";
+    }
+}
+
+U.MD.D.addOp3 = async (userTime, loadTime, object, status) => {
+    let browser = detectBrowser()
+    let _time = new Date().toLocaleString('zh-CN', { hour12: false, timeZone: 'Asia/Shanghai' }).replace(/\//g, '-');
+    let params = {
+        userid: US.userInfo.userid,
+        username: US.userInfo.name,
+        accountNumber: US.userInfo.accountNumber,
+        org: US.userInfo.orgName,
+        school: US.userInfo.schoolName,
+        role: US.userInfo.type == '1' ? '老师' : '学生',
+        browser: browser,
+        userTime: userTime == '1' ? _time : userTime, // 使用时间 1次的就1 其次传秒
+        loadTime: loadTime, //load的时间没有就“”
+        object: JSON.stringify(object), //执行信息传json
+        status: status, //成功返回success。失败返回error的信息
+    }
+    fetch("https://pbl.cocorobo.cn/api/mongo/updateUserData2P", { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }).then(res => {
+        if (res.status == 200) {
+            console.log('保存成功')
+        } else {
+            console.log('保存失败')
+        }
+    }).catch(e => {
+        console.log('保存失败')
+        console.log(e);
+    })
+}

+ 7 - 1
js/liyuan/Onload2.js

@@ -37,7 +37,13 @@ window.onload = function () {
     //U.MD.D.isLogin();
     // U.MD.D.fullscreen();
     U.MD.D.stopSafari();
-    U.MD.D.I.openApplication('liyuanLogin')
+
+    const type = U.UF.C.queryString('type');
+    const courseid = U.UF.C.queryString('courseid');
+    let params = {};
+    if (type) params.type = type;
+    if (courseid) params.courseid = courseid;
+    U.MD.D.I.openApplication('liyuanLogin', params);
 
     // window.addEventListener('resize', () => {
     //     var realHeight = window.innerHeight

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است