lsc 2 роки тому
батько
коміт
40b996d1ae
4 змінених файлів з 35 додано та 1 видалено
  1. BIN
      img/icon/gif/longhuaBg.gif
  2. BIN
      img/icon/video/lhfs.mov
  3. 20 0
      js/Desktop/DeskTop.js
  4. 15 1
      js/Desktop/Onload.js

BIN
img/icon/gif/longhuaBg.gif


BIN
img/icon/video/lhfs.mov


+ 20 - 0
js/Desktop/DeskTop.js

@@ -1150,6 +1150,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
+    } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
+        U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
     } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
         //3是展示全部阶段  2学生 1老师 4专家
@@ -1334,6 +1336,24 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "studyDetailS5":
+                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", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
+                        "id": "studyDetailS",
+                        "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
+                        "onresize": function () { }
+                    }, {
+                        closecallback: function () { }
+                    }, { "style": { "height": "36px" } }).form; //创建窗体
+                    _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                    break;
+                }
         case "studyDetailGM":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {

+ 15 - 1
js/Desktop/Onload.js

@@ -308,6 +308,7 @@ U.MD.D.error = function (errorMessage, scripturi, linenumber, columnnumber, erro
  * 用户登录处理
  */
 U.MD.D.getuser = function () {
+    // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gif/longhuaBg.gif")'
     var userInfo = US.userInfo;
     if (Object.keys(userInfo).length === 0) {
         var _cookie = U.UF.Cookie.get("cocorobo");
@@ -603,4 +604,17 @@ U.MD.D.getNotice = function () {
         //     U.MD.D.getNotice();
         // }, 5000);
     }, [], { "type": "GET", "withCredentials": true });
-}
+}
+
+//  // 创建 video 元素并设置属性
+//  const video = document.createElement("video");
+//  video.src = "../../img/icon/video/lhfs.mov";
+//  video.autoplay = true;
+ 
+//  // 添加 video 元素到页面
+// document.body.appendChild(video);
+ 
+//  // 在视频播放完成后删除 video 元素
+//  video.addEventListener("ended", () => {
+//    document.body.removeChild(video);
+//  });