Browse Source

Merge branch 'beta' into HK

lsc 2 months ago
parent
commit
eb2ca90425
4 changed files with 332 additions and 11 deletions
  1. BIN
      img/icon/aiKnowledge.png
  2. 1 1
      index.html
  3. 115 10
      js/Desktop/DeskTop.js
  4. 216 0
      js/Desktop/Onload.js

BIN
img/icon/aiKnowledge.png


+ 1 - 1
index.html

@@ -32,7 +32,7 @@
     <link rel="apple-touch-icon-precomposed" sizes="72x72" href="" />
     <link rel="apple-touch-icon-precomposed" sizes="144x144" href="" />
     <link href="img/favicon.ico" rel="Shortcut Icon" />
-    <title>Coco Class</title>
+    <title>CocoClass</title>
     <link href="css/Desktop/Desktop.css" rel="stylesheet" type="text/css" />
     <link href="./css/Desktop/Desktop.css" rel="stylesheet" type="text/css" />
     <link href="css/Desktop/Taskbar.css" rel="stylesheet" type="text/css" />

+ 115 - 10
js/Desktop/DeskTop.js

@@ -1470,6 +1470,34 @@ U.MD.D.I.xxzjkyStudentDeskIcon = [
     { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
 ];
 
+//nsfx
+U.MD.D.I.nsfxTeacherDeskIcon = [
+    { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
+    { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
+    { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
+    { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
+    { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
+    { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
+    { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
+    { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
+    { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
+    { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
+    { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
+    { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
+    { "Name": "综合看板", "Url": "dataBoardNew", "style": { "cssText": "background-image:url(/img/icon/dataBoardNew.png)" } },
+    { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
+    { "Name": "教师管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
+    { "Name": "教师中心", "Url": "testStudentSies", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
+];
+
+//nsfx
+U.MD.D.I.nsfxStudentDeskIcon = [
+    { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
+    { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
+    { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
+    { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
+];
+
 //#region 桌面初始化a
 
 /**
@@ -1629,15 +1657,17 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         _caleTeacherDeskIconInfo = U.MD.D.I.caleTeacherDeskIcon, // jccssyl
         _lqwmsgzsStudentDeskIconInfo = U.MD.D.I.lqwmsgzsStudentDeskIcon, // lqwmsgzs
         _lqwmsgzsTeacherDeskIconInfo = U.MD.D.I.lqwmsgzsTeacherDeskIcon, // lqwmsgzs
-        _ytyStudentDeskIconInfo = U.MD.D.I.ytyStudentDeskIcon, // 鹽田幼兒園
-        _ytyTeacherDeskIconInfo = U.MD.D.I.ytyTeacherDeskIcon, // 鹽田幼兒園
-        _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
-        _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
-        _scnuaiTeacherDeskIconInfo = U.MD.D.I.scnuaiTeacherDeskIcon, //未來教育基地
+        _ytyStudentDeskIconInfo = U.MD.D.I.ytyStudentDeskIcon, // 盐田幼儿园
+        _ytyTeacherDeskIconInfo = U.MD.D.I.ytyTeacherDeskIcon, // 盐田幼儿园
+        _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //网络夏令营
+        _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //网络夏令营
+        _nsfxStudentDeskIconInfo = U.MD.D.I.nsfxStudentDeskIcon, //nsfx
+        _nsfxTeacherDeskIconInfo = U.MD.D.I.nsfxTeacherDeskIcon, //nsfx
+        _scnuaiTeacherDeskIconInfo = U.MD.D.I.scnuaiTeacherDeskIcon, //未来教育基地
         _scnuaiAdminDeskIconInfo = U.MD.D.I.scnuaiAdminDeskIcon, //scnuai
         _scnuaiStudentDeskIconInfo = U.MD.D.I.scnuaiStudentDeskIcon, //scnuai
         _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //scnuai
-    var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5', '2f30fe58-a94f-11ee-b534-005056b86db5', 'eaba9110-d1eb-11ee-b534-005056b86db5','c7df0bd4-6e75-401a-a137-4e163aa62263'];
+    var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5', '2f30fe58-a94f-11ee-b534-005056b86db5', 'eaba9110-d1eb-11ee-b534-005056b86db5','c7df0bd4-6e75-401a-a137-4e163aa62263','8a352da2-56e1-11ef-b873-005056b86db5'];
     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", '97c4ee8b-d010-4042-986d-e9d3c217264f', 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc', '4df1b570-f6ac-48fc-8d50-d0b157dae776', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5', '2fa75e51-189a-11ee-91d8-005056b86db5', 'a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956', 'fbb00cc1-380b-4173-add4-59b3cf7682b5', '63060b4a-89dc-4f0c-bf04-a1de22d479ff', '777559d2-7239-11ee-b98c-005056b86db5', '03d24cf9-4fbc-4aeb-bb02-6f84f66e6344','884c5665-a453-46f3-b7b6-01d575290aa9','c9a6de59-8b4f-4be1-8565-a08081f649d3','7f280060-665e-4868-b68f-1eec9e1b4a07'];
     //清楚桌面圖標
     el.innerHTML = "";
@@ -1662,9 +1692,10 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
             { "Name": "教師中心", "Url": "testStudentSies", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
             { "Name": "AI助手", "Url": "gpt4", "style": { "cssText": "background-image:url(/img/icon/gpt4.png)" } },
             { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
-            { "Name": "觀察記錄", "Url": "Record", "style": { "cssText": "background-image:url(/img/icon/Record.png)" } },
-            { "Name": "課堂觀察", "Url": "classroomObservation", "style": { "cssText": "background-image:url(/img/icon/classroomObservation.png)" } },
-            { "Name": "學生PBL", "Url": "pblCourse", "style": { "cssText": "background-image:url(/img/icon/pblCourse.png)" } },
+            { "Name": "观察记录", "Url": "Record", "style": { "cssText": "background-image:url(/img/icon/Record.png)" } },
+            { "Name": "课堂观察", "Url": "classroomObservation", "style": { "cssText": "background-image:url(/img/icon/classroomObservation.png)" } },
+            { "Name": "学生PBL", "Url": "pblCourse", "style": { "cssText": "background-image:url(/img/icon/pblCourse.png)" } },
+            { "Name": "知识建构", "Url": "aiKnowledge", "style": { "cssText": "background-image:url(/img/icon/aiKnowledge.png)" } },
         )
     }
 
@@ -1732,6 +1763,30 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         )
     }
 
+    //北师大附中(010601)
+    if(_oid == "857af1c7-c8ee-4b04-85b5-fd182903adb7"){
+        _teacherDesktopIconInfo.push(
+            { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
+        )
+        _studentDesktopIconInfo.push(
+            { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
+        )
+    }
+
+    //樂善堂余近卿中學
+    if(_oid == "8d074a02-6057-11ef-b873-005056b86db5"){
+        _teacherDesktopIconInfo.push(
+            { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
+        )
+    }
+
+    //  Education Artificial Intelligence
+    if(_org == "0f4359aa-1065-423f-afcc-a70cc21ea9d0"){
+        _teacherDesktopIconInfo.push(
+            { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
+        )
+    }
+
     if (_oid == "215340ee-8f22-11ee-b98c-005056b86db5" || _oid == "1bc66f4e-8798-11ee-b98c-005056b86db5") {
         _teacherDesktopIconInfo.push(
             { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
@@ -1984,6 +2039,23 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _lqwmsgzsStudentDeskIconInfo[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _lqwmsgzsStudentDeskIconInfo[i].Name }, _iconcontent);
             }
+        } else if (_type == 2 && (_oid == "8a352da2-56e1-11ef-b873-005056b86db5")) {
+            for (i = 0; i < _nsfxStudentDeskIconInfo.length; i++) {
+                _content = $$("div", {
+                    className: "U_MD_D_KO",
+                    "onmousedown": U.UF.C.closure(function (obj) {
+                        //防止拖动图标即打开了桌面应用
+                        U.MD.D.click(this, obj);
+                    }, [_nsfxStudentDeskIconInfo[i]]),
+                    "onclick": U.UF.C.closure(function (obj) {
+                        //防止拖动图标即打开了桌面应用
+                        U.MD.D.click(this, obj);
+                    }, [_nsfxStudentDeskIconInfo[i]])
+                }, _frag); // 
+                _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
+                $$("div", { className: "U_MD_D_KOS U_Img", "style": _nsfxStudentDeskIconInfo[i].style }, _iconcontent);
+                $$("div", { className: "U_MD_D_KOX", "innerHTML": _nsfxStudentDeskIconInfo[i].Name }, _iconcontent);
+            }
         } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
             for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
                 _content = $$("div", {
@@ -3158,6 +3230,26 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
             }
+        } else if ((_type == 1 || _type == 4) && _oid == "8a352da2-56e1-11ef-b873-005056b86db5") {
+            for (i = 0; i < _nsfxTeacherDeskIconInfo.length; i++) {
+                if(_role === 0 && _nsfxTeacherDeskIconInfo[i].Url == 'testTeacher'){
+                    continue
+                }
+                _content = $$("div", {
+                    className: "U_MD_D_KO",
+                    "onmousedown": U.UF.C.closure(function (obj) {
+                        //防止拖动图标即打开了桌面应用
+                        U.MD.D.click(this, obj);
+                    }, [_nsfxTeacherDeskIconInfo[i]]),
+                    "onclick": U.UF.C.closure(function (obj) {
+                        //防止拖动图标即打开了桌面应用
+                        U.MD.D.click(this, obj);
+                    }, [_nsfxTeacherDeskIconInfo[i]])
+                }, _frag); // 
+                _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
+                $$("div", { className: "U_MD_D_KOS U_Img", "style": _nsfxTeacherDeskIconInfo[i].style }, _iconcontent);
+                $$("div", { className: "U_MD_D_KOX", "innerHTML": _nsfxTeacherDeskIconInfo[i].Name }, _iconcontent);
+            }
         } else {
             for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
                 if(_role === 0 && _teacherDesktopIconInfo[i].Url == 'testTeacher' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5'){
@@ -5724,7 +5816,20 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/aigpt.png)" }, "name": "AI助手+", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
 
             break;
-        case "futureClass": //AI共創
+        case "aiKnowledge": //aiKnowledge
+            _formdiv = new U.UF.UI.form(
+                "知识建构",
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aigpt/#/knowledge_construction/?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
+                "id": "aiKnowledge",
+                "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/aiKnowledge.png)" }, "name": "知识建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+
+            break;
+        case "futureClass": //AI共创
             _formdiv = new U.UF.UI.form(
                 "協同建構",
                 $$("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.hk

+ 216 - 0
js/Desktop/Onload.js

@@ -314,6 +314,7 @@ U.MD.D.error = function (errorMessage, scripturi, linenumber, columnnumber, erro
 /**
  * 用戶登錄處理
  */
+let LoginState = false
 U.MD.D.getuser = function () {
     // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gif/longhuaBg.gif")'
     var userInfo = US.userInfo;
@@ -483,6 +484,221 @@ U.MD.D.getuser = function () {
                 }
             }, [], { "type": "GET", "withCredentials": true });
         }
+    }else if(!LoginState &&Object.keys(userInfo).length === 0 && U.UF.C.queryString('code').length === 32){
+        if($("#U_MD_HomeC_Pop")[0]){
+            $("#U_MD_HomeC_Pop")[0].close()
+        }
+        LoginState = true
+        // console.log('新华跳转',U.UF.C.queryString('code'))
+        let url = "https://cloud.cocorobo.cn/api/getTeacherInfoByCode"
+        var myHeaders = new Headers();
+        // myHeaders.append("User-Agent", "Apifox/1.0.0 (https://apifox.com)");
+        myHeaders.append("Content-Type", "application/json");
+        // myHeaders.append("Access-Control-Allow-Origin","*")
+
+        var raw = JSON.stringify({
+            "code": U.UF.C.queryString('code')
+        });
+
+        var requestOptions = {
+            method: 'POST',
+            headers: myHeaders,
+            body: raw,
+            redirect: 'follow'
+        };
+
+        fetch(url, requestOptions)
+        .then(response => response.text())
+        .then(result => {
+            // console.log(result)
+            let data = JSON.parse(result).data
+            if(JSON.parse(result).code == 200){
+                let diqu = `${data.province}-${data.city}-${data.county}-${data.street}-${data.schoolName}`
+                let diquId = data.schoolId
+                U.A.Request(US.Config.pbl + "batchRegistrationSzdjg3", [data.realName, data.userUniqueId+"@xhly.com", 'a5efd078-20f6-4185-bef9-6d1c688bee70', data.schoolName || "", "", "", 1, data.userUniqueId,diqu,diquId], function (res) {
+                    // console.log(res);
+                    let loginData = JSON.stringify({
+                        openid: data.userUniqueId,
+                        edu: true
+                    })
+                    var requestOptionsLogin = {
+                        method: 'POST',
+                        headers: myHeaders,
+                        body: loginData,
+                        redirect: 'follow'
+                     };
+                     
+                     fetch("https://beta.api.cocorobo.cn/api/user", requestOptionsLogin)
+                        .then(response => response.text())
+                        .then(result => {
+                            let a = JSON.parse(result)
+                            if(a.length>0){
+                                let userId = a[0][0].userid
+                                US.userInfo.userid = userId
+                                U.A.Request(US.Config.pbl + "selectUser?userid=" + userId, [], function (res) { //US.userInfo.userid
+                                    if (res.value == null || res.value[0].length == 0) {
+                                        // U.MD.D.I.openApplication("my")
+    
+                                        let _name = US.userInfo.alias ? US.userInfo.alias : US.userInfo.username
+                                        let _type = US.userInfo == 1 ? 2 : 1
+                                        // US.Config.pbl
+                                        // "http://localhost:7003/api/pbl/"
+                                        U.A.Request(US.Config.pbl + "updatePblMessage", [userId, _name, _type, '16d397f3-b192-11ed-9211-005056b86db5', '', '', "0"], function (res) {
+                                            window.location.reload();
+                                        }, [], { "type": "POST", "withCredentials": true });
+                                    } else {
+                                        if(res.value[0][0].isLogin1 == 2 || res.value[0][0].isLogin2 == 2){
+                                            U.MD.U.LO.logoutSystem2();
+                                            return;
+                                        }
+                                        U.A.Request(US.Config.pbl + "addLoginOperation", [userId], function (res) {
+                                        }, [], { "type": "POST", "withCredentials": true });
+    
+                                        if (res.value[0][0].organizeid == '91305d49-01ba-11ed-8c78-005056b86db4') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
+                                            US.Config.background = 'url("/img/icon/mingdeBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
+                                            US.Config.background = 'url("/img/icon/zhongshanBg.png")'
+                                        } else if (res.value[0][0].organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
+                                            // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yunhaiBg.jpg")'
+                                            US.Config.background = 'url("/img/icon/yunhaiBg.png")'
+                                        } else if (res.value[0][0].organizeid == '857af1c7-c8ee-4b04-85b5-fd182903adb7') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/beijingBg.png")'
+                                            US.Config.background = 'url("/img/icon/beijingBg.png")'
+                                        } else if (res.value[0][0].organizeid == '69893dca-1d47-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/weilaiBg.png")'
+                                            US.Config.background = 'url("/img/icon/weilaiBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'efdef564-4064-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/pz.jpg")'
+                                            US.Config.background = 'url("/img/icon/pz.png")'
+                                        } else if (res.value[0][0].organizeid == 'd9db3320-503a-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/hzBg.png")'
+                                            US.Config.background = 'url("/img/icon/hzBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'ccb9754d-59c1-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+                                            US.Config.background = 'url("/img/icon/nanfangBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'f30a6615-5379-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longhuaBg.png")'
+                                            US.Config.background = 'url("/img/icon/longhuaBg.png")'
+                                        } else if (res.value[0][0].organizeid == '4787cc87-6588-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+                                            US.Config.background = 'url("/img/icon/nanfangBg.png")'
+                                        } else if (res.value[0][0].organizeid == '9f888eae-7558-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/song.png")'
+                                            US.Config.background = 'url("/img/icon/song.png")'
+                                        } else if (res.value[0][0].organizeid == '2b9ceb66-a1dd-11ed-b13d-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gmxxBg.png")'
+                                            US.Config.background = 'url("/img/icon/gmxxBg.png")'
+                                        } else if (res.value[0][0].organizeid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/wankeBg.png")'
+                                            US.Config.background = 'url("/img/icon/wankeBg.png")'
+                                        } else if (res.value[0][0].organizeid == '82fcb5c7-c13b-11ed-8d51-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/qiaoxiangBg.png")'
+                                            US.Config.background = 'url("/img/icon/qiaoxiangBg.png")'
+                                        } else if (res.value[0][0].organizeid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/sies.png")'
+                                            US.Config.background = 'url("/img/icon/sies.png")'
+                                        } else if (res.value[0][0].organizeid == 'ea2a8c65-f38c-11ed-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longhuaZXBg.png")'
+                                            US.Config.background = 'url("/img/icon/longhuaZXBg.png")'
+                                        } else if (res.value[0][0].organizeid == 'f297fbdc-f0a0-11ee-b534-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/010606.png")'
+                                            US.Config.background = 'url("/img/icon/010606.png")'
+                                        }
+                                        
+                                        
+    
+                                        if (res.value[0][0].org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yantianOrgBg.png")'
+                                            US.Config.background = 'url("/img/icon/yantianOrgBg.png")'
+                                        } else if (res.value[0][0].org == '7ada499f-4ec7-11ed-8c78-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/csteamBg.png")'
+                                            US.Config.background = 'url("/img/icon/csteamBg.png")'
+                                        } else if (res.value[0][0].org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gm/bg.png")'
+                                            US.Config.background = 'url("/img/icon/bg.png")'
+                                            U.MD.D.getNotice();
+                                        } else if (res.value[0][0].org == '97c4ee8b-d010-4042-986d-e9d3c217264f') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhoujia.jpg")'
+                                            US.Config.background = 'url("/img/icon/zhoujia.png")'
+                                        } else if (res.value[0][0].org == '150e3120-9195-11ed-b13d-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/tencentBg.jpg")'
+                                            US.Config.background = 'url("/img/icon/tencentBg.png")'
+                                            U.MD.D.getNotice();
+                                        } else if (res.value[0][0].org == 'ee40e8e3-e36c-4872-8105-cf395481012s') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szscBg.png")'
+                                            US.Config.background = 'url("/img/icon/szscBg.png")'
+                                            U.MD.D.getNotice();
+                                        } else if (res.value[0][0].org == 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/futianBg.png")'
+                                            US.Config.background = 'url("/img/icon/futianBg.png")'
+                                        } else if (res.value[0][0].org == 'e632b86c-f89d-11ed-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gdjgBg.png")'
+                                            US.Config.background = 'url("/img/icon/gdjgBg.png")'
+                                        } else if (res.value[0][0].org == '54f09f1e-09f0-11ee-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szlhyjBg.jpeg")'
+                                            US.Config.background = 'url("/img/icon/szlhyjBg.jpeg")'
+                                        } else if (res.value[0][0].org == '7b016f69-0f4f-11ee-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/dseiBg.png")'
+                                            US.Config.background = 'url("/img/icon/dseiBg.png")'
+                                        } else if (res.value[0][0].org == '1973f6c7-1561-11ee-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szjkyBg2.png")'
+                                            US.Config.background = 'url("/img/icon/szjkyBg2.png")'
+                                        } else if (res.value[0][0].org == '2fa75e51-189a-11ee-91d8-005056b86db5') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/chjyjBg.png")'
+                                            US.Config.background = 'url("/img/icon/chjyjBg.png")'
+                                        } else if (res.value[0][0].org == '2a9f32ea-88df-49eb-aba1-0a286f691474') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/qhBg.jpg")'
+                                            US.Config.background = 'url("/img/icon/qhBg.jpg")'
+                                        } else if (res.value[0][0].org == '884c5665-a453-46f3-b7b6-01d575290aa9') {
+                                            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/scnuaiBg.png")'
+                                            US.Config.background = 'url("/img/icon/scnuaiBg.png")'
+                                        }
+                                
+                                        
+                                        US.userInfo = res.value[0][0];
+                                        $(".avatar")[0].style.display = "block";
+                                        if(res.value[0][0].type === 1 && $(".U_PBL_Check")[0] && res.value[0][0].org != '150e3120-9195-11ed-b13d-005056b86db5'){
+                                            $(".U_PBL_Check")[0].style.display = "block";
+                                        }
+                                    }
+                                    $(".login")[0].style.display = "none";
+                                    $(".register")[0].style.display = "none";
+                                    $(".userName")[0].style.display = "block";
+                                    $(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
+                                    $(".exit")[0].style.display = "block";
+                                    if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
+                                        U.MD.D.I.ModeCheck(2)
+                                    }else{
+                                        U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
+                                    }
+                                    let shareCourseId = window.location.href.indexOf("?shareCourseId=")!=-1?window.location.href.split("?shareCourseId=")[1].toString():''
+                                    if(shareCourseId){
+                                        console.log(shareCourseId);
+                                        U.MD.D.I.openInApplication("studyDetail", shareCourseId, 5, 1)
+                                    }
+                                    U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
+                                }, [], { "type": "GET", "withCredentials": true });
+                            }
+                            
+                        })
+                        .catch(error => {
+                            LoginState = false
+                            console.log('error', error)
+                        });
+                    
+                }, [], { "type": "POST", "withCredentials": true })
+            }else{
+                U.Alert("用户登录已失效,请重新获取登录信息!");
+            }
+        })
+        .catch(error => {
+            LoginState = false
+            console.log('error', error)
+        });
     } else if(Object.keys(userInfo).length !== 0){
         if(US.Config.type == '2'){
             $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'