DeskTop.js 126 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  15. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  16. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  17. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  18. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  19. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  20. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  21. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  22. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  23. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  24. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  25. { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  26. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  27. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  28. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  29. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  30. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  31. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  32. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  34. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  35. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  36. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  37. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  38. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  39. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  40. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  41. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  42. ];
  43. U.MD.D.I.studentDeskIcon = [
  44. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  45. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  46. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  47. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  48. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  49. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  50. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  51. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  52. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  53. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  54. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  55. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  56. { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
  57. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  58. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  59. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  60. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  61. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  62. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  63. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  64. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  65. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  66. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  67. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  68. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  69. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  70. ];
  71. U.MD.D.I.schoolDeskIcon = [
  72. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  73. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  74. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  75. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  76. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  77. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  78. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  79. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  80. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  81. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  82. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  83. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  84. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  85. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  86. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  87. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  88. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  89. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  90. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  91. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  92. ];
  93. //#region 桌面初始化a
  94. /**
  95. * 初始化桌面的起始函数
  96. *
  97. */
  98. U.MD.D.I.init = function () {
  99. if ($("#U_MD_D_K")[0]) {
  100. //初始化桌面图标
  101. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  102. // var clickUrl = ':12588/requestIp.php';
  103. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  104. // U.MD.D.I.Ip = data;
  105. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  106. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  107. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  108. // })
  109. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  110. // })
  111. }
  112. }
  113. /**
  114. * 隐藏任务栏
  115. *
  116. * @param {element} 桌面元素
  117. */
  118. U.MD.D.I.hiddenTaskbar = function (el) {
  119. //任务栏位置变小
  120. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  121. //桌面的位置变大
  122. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  123. }
  124. /**
  125. * 隐藏任务栏
  126. *
  127. * @param {element} 桌面元素
  128. */
  129. U.MD.D.I.hiddenTaskbarout = function (el) {
  130. //任务栏位置变小
  131. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  132. //任务栏位置变化
  133. U.selectEl(el).css({ "bottom": "-60px" });
  134. //桌面的位置变大
  135. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  136. }
  137. }
  138. /**
  139. * 初始化打印桌面图标
  140. *
  141. * @param {element} 桌面元素
  142. */
  143. U.MD.D.I.initDesktopIcons = function (el) {
  144. var i, //用于循环
  145. _content, //桌面图标元素
  146. _iconcontent, //桌面图标元素
  147. _frag = $$("frag"), //定义一个碎片元素
  148. _type = US.userInfo.type,
  149. _oid = US.userInfo.organizeid;
  150. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  151. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  152. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon; //获取测试学校桌面图标
  153. //清楚桌面图标
  154. el.innerHTML = "";
  155. //循环创建桌面图标
  156. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  157. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  158. _content = $$("div", {
  159. className: "U_MD_D_KO",
  160. "onmousedown": U.UF.C.closure(function (obj) {
  161. //防止拖动图标即打开了桌面应用
  162. U.MD.D.click(this, obj);
  163. }, [_studentDesktopIconInfo[i]]),
  164. "onclick": U.UF.C.closure(function (obj) {
  165. //防止拖动图标即打开了桌面应用
  166. U.MD.D.click(this, obj);
  167. }, [_studentDesktopIconInfo[i]])
  168. }, _frag); //
  169. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  170. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  171. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  172. }
  173. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  174. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  175. _content = $$("div", {
  176. className: "U_MD_D_KO",
  177. "onmousedown": U.UF.C.closure(function (obj) {
  178. //防止拖动图标即打开了桌面应用
  179. U.MD.D.click(this, obj);
  180. }, [_teacherDesktopIconInfo[i]]),
  181. "onclick": U.UF.C.closure(function (obj) {
  182. //防止拖动图标即打开了桌面应用
  183. U.MD.D.click(this, obj);
  184. }, [_teacherDesktopIconInfo[i]])
  185. }, _frag); //
  186. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  187. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  188. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  189. }
  190. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  191. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  192. _content = $$("div", {
  193. className: "U_MD_D_KO",
  194. "onmousedown": U.UF.C.closure(function (obj) {
  195. //防止拖动图标即打开了桌面应用
  196. U.MD.D.click(this, obj);
  197. }, [_schoolDesktopIconInfo[i]]),
  198. "onclick": U.UF.C.closure(function (obj) {
  199. //防止拖动图标即打开了桌面应用
  200. U.MD.D.click(this, obj);
  201. }, [_schoolDesktopIconInfo[i]])
  202. }, _frag); //
  203. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  204. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  205. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  206. }
  207. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  208. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  209. _content = $$("div", {
  210. className: "U_MD_D_KO",
  211. "onmousedown": U.UF.C.closure(function (obj) {
  212. //防止拖动图标即打开了桌面应用
  213. U.MD.D.click(this, obj);
  214. }, [_studentDesktopIconInfo[i]]),
  215. "onclick": U.UF.C.closure(function (obj) {
  216. //防止拖动图标即打开了桌面应用
  217. U.MD.D.click(this, obj);
  218. }, [_studentDesktopIconInfo[i]])
  219. }, _frag); //
  220. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  221. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  222. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  223. }
  224. } else {
  225. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  226. _content = $$("div", {
  227. className: "U_MD_D_KO",
  228. "onmousedown": U.UF.C.closure(function (obj) {
  229. //防止拖动图标即打开了桌面应用
  230. U.MD.D.click(this, obj);
  231. }, [_teacherDesktopIconInfo[i]]),
  232. "onclick": U.UF.C.closure(function (obj) {
  233. //防止拖动图标即打开了桌面应用
  234. U.MD.D.click(this, obj);
  235. }, [_teacherDesktopIconInfo[i]])
  236. }, _frag); //
  237. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  239. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  240. }
  241. }
  242. //加载好后给图标定位
  243. U.MD.D.iconPostion($(_frag).Child());
  244. //把图标加载到页面
  245. el.appendChild(_frag);
  246. }
  247. /**
  248. * 显示任务栏
  249. *
  250. * @param {element} 桌面元素
  251. */
  252. U.MD.D.I.displayTaskbar = function (el) {
  253. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  254. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  255. //任务栏位置变化
  256. U.selectEl(el).css({ "bottom": "0px" });
  257. //桌面位置变话
  258. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  259. }
  260. }
  261. //#region 桌面图标拖动逻辑
  262. /**
  263. * 桌面排列图标
  264. *
  265. * @param {element} 桌面元素
  266. * @param {object} 上下相距的距离
  267. * @param {object} 左右相距的距离
  268. * @return {object} 命名空间
  269. */
  270. U.MD.D.iconPostion = function (childs, top, left) {
  271. var i; //用于循环处理
  272. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  273. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  274. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  275. for (i = 0; i < childs.length; i++) {
  276. //如果竖排top超过了范围处理
  277. if (top + 95 > US.height - 10) {
  278. //left超过了页面范围处理,则向上重叠打印处理
  279. if ((left + 180) > US.width) {
  280. top -= 115;
  281. left -= 90;
  282. }
  283. //没有超过范围,那么left+90添加到下一个竖排打印
  284. else {
  285. left += 90;
  286. top = 15;
  287. };
  288. }
  289. //给图标的位置赋值
  290. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  291. if (i < childs.length - 1) {
  292. //页面图标每次向下加115
  293. top += 115;
  294. }
  295. }
  296. //返回最后调用的图标的位置
  297. return [top, left];
  298. }
  299. /**
  300. * 桌面点击事件逻辑
  301. *
  302. * @param {element} 桌面元素
  303. * @param {object} 上下相距的距离
  304. * @param {object} 左右相距的距离
  305. * @return {object} 命名空间
  306. */
  307. U.MD.D.click = function (el, obj) {
  308. var _buttonnumber = event.button; //点击的按钮的事件值
  309. var _userinfo = US.userInfo;
  310. U.UF.EV.stopBubble(); //阻止向上冒泡
  311. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  312. if (_buttonnumber < 2) {
  313. //如果是click事件的处理
  314. if (event.type == "click") {
  315. //如果元素在mousemove事件中没有移动则出发click事件
  316. if (!U.MD.D.I.IsDrag) {
  317. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  318. U.alert("请先登录您的账号!");
  319. setTimeout(() => {
  320. U.MD.U.L.login();
  321. }, 2000);
  322. } else {
  323. //打开应用处理
  324. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  325. }
  326. }
  327. }
  328. //如果是mouse事件的处理
  329. else {
  330. //拖动处理,添加拖动和拖动结束事件
  331. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  332. }
  333. U.MD.D.I.IsDrag = false;
  334. }
  335. }
  336. /**
  337. * 拖动的处理
  338. *
  339. */
  340. U.MD.D.iconMove = function () {
  341. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  342. U.MD.D.I.IsDrag = true;
  343. }
  344. /**
  345. * 拖动结束后,这里是定位处理,以网状的形式定位
  346. *
  347. * @param {element} 拖动的元素
  348. * @return {object} 命名空间
  349. */
  350. U.MD.D.iconUp = function (el) {
  351. var _top = 15,
  352. _left = 20,
  353. _margin,
  354. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  355. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  356. if (_positioninfo["OT"] > 15) {
  357. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  358. _margin = ((_positioninfo["OT"] - 15) % 115 > 55 && _positioninfo["OT"] + 115 < US.height) ? 1 : 0;
  359. _top = (Math.floor((_positioninfo["OT"] - 15) / 115) + _margin) * 115 + 15;
  360. }
  361. if (_positioninfo["OL"] > 20) {
  362. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  363. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  364. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  365. }
  366. //while循环判断么一个重叠的元素
  367. do {
  368. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  369. _top = _positioninfo[0] + 115; //得到定位后的top
  370. _left = _positioninfo[1]; //得到定位后的left
  371. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  372. }
  373. /**
  374. * 判断拖动后图标是否重叠
  375. *
  376. * @param {element} 拖动的元素
  377. * @param {element} 桌面所有的元素
  378. * @param {array} 拖动元素的位置
  379. ----------[0] 上 top
  380. ----------[1] 左 left
  381. * @return {object} 命名空间
  382. */
  383. U.MD.D.isOverlap = function (el, childs, postionarray) {
  384. //循环所有的图标
  385. for (var i = 0; i < childs.length; i++) {
  386. //判断有没有和该图标诶子重叠的元素
  387. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  388. return childs[i]; //如果有返回
  389. }
  390. }
  391. }
  392. //#endregion
  393. //#endregion
  394. //#region 桌面应用
  395. /**
  396. * 打开应用
  397. *
  398. * @param {string} 类型
  399. -----------------Disk 网盘系统
  400. -----------------PDisk 学习系统网盘
  401. -----------------Poto 图片
  402. -----------------Video 视频
  403. -----------------Music 音乐
  404. -----------------Word word
  405. -----------------Excel excel
  406. -----------------Txt 记事本
  407. -----------------PB 学习系统
  408. -----------------Blog 朋友圈系统
  409. -----------------FTP ftp系统
  410. -----------------Group 好友群
  411. -----------------SY 首页系统
  412. -----------------Set 个人设置
  413. -----------------XSet 系统设置
  414. -----------------App 我们所有的app
  415. -----------------BC c.1473.cn 平台
  416. -----------------CWeb d.1473.cn 变成平台
  417. -----------------其他的外联系统 我们统一用iframe打开
  418. * @param {array} 类型
  419. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  420. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  421. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  422. 如果第一个参数为其他,则无第二个参数
  423. * @returns {array}
  424. */
  425. window.addEventListener('message', function (e) { // 监听 message 事件
  426. // alert(e.data.type);
  427. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  428. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType)
  429. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  430. U.MD.D.I.selectUser();
  431. } else if (e.data.allScreen && e.data.allScreen == "1") {
  432. var _formel = document.getElementById("study");
  433. U.UF.F.windowZooming(_formel);
  434. } else if (e.data.allScreen && e.data.allScreen == "2") {
  435. var _formel = document.getElementById("studyDetail");
  436. U.UF.F.windowZooming(_formel);
  437. } else if (e.data.allScreen && e.data.allScreen == "3") {
  438. var _formel = document.getElementById("studentStudy");
  439. U.UF.F.windowZooming(_formel);
  440. } else if (e.data.allScreen && e.data.allScreen == "6") {
  441. var _formel = document.getElementById("study");
  442. //如果最大化了,那么就把他缩小
  443. // if (_formel.ismaximize) {
  444. // return;
  445. // }
  446. U.UF.F.windowZooming(_formel);
  447. } else if (e.data.allScreen && e.data.allScreen == "4") {
  448. var _formel = document.getElementById("studyDetail");
  449. //如果最大化了,那么就把他缩小
  450. // if (_formel.ismaximize) {
  451. // return;
  452. // }
  453. U.UF.F.windowZooming(_formel);
  454. } else if (e.data.allScreen && e.data.allScreen == "5") {
  455. var _formel = document.getElementById("studentStudy");
  456. if (_formel.ismaximize) {
  457. return;
  458. }
  459. U.UF.F.windowZooming(_formel);
  460. } else if (e.data.tools && e.data.tools == "1") {
  461. // U.MD.D.I.openApplication("whiteboard")
  462. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  463. } else if (e.data.tools && e.data.tools == "2") {
  464. U.MD.D.I.openApplication("note")
  465. } else if (e.data.tools && e.data.tools == "3") {
  466. // U.MD.D.I.openApplication("mind")
  467. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  468. } else if (e.data.tools && e.data.tools == "4") {
  469. U.MD.D.I.openApplication("investigation")
  470. } else if (e.data.tools && e.data.tools == "6") {
  471. // U.MD.D.I.openApplication("doc")
  472. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  473. } else if (e.data.tools && e.data.tools == "7") {
  474. // U.MD.D.I.openApplication("mindNetwork")
  475. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  476. } else if (e.data.tools && e.data.tools == "8") {
  477. U.MD.D.I.openApplication("library")
  478. } else if (e.data.tools && e.data.tools == "17") {
  479. U.MD.D.I.openApplication("stuLibrary")
  480. } else if (e.data.tools && e.data.tools == "18") {
  481. U.MD.D.I.openApplication("train")
  482. } else if (e.data.tools && e.data.tools == "21") {
  483. U.MD.D.I.openApplication("program")
  484. } else if (e.data.tools && e.data.tools == "22") {
  485. U.MD.D.I.openApplication("AIprogram2")
  486. } else if (e.data.tools && e.data.tools == "23") {
  487. U.MD.D.I.openApplication("Pythonprogram")
  488. } else if (e.data.tools && e.data.tools == "24") {
  489. U.MD.D.I.openApplication("AIprogram")
  490. } else if (e.data.tools && e.data.tools == "25") {
  491. U.MD.D.I.openApplication("sys")
  492. } else if (e.data.tools && e.data.tools == "26") {
  493. // U.MD.D.I.openApplication("courseDesign")
  494. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  495. } else if (e.data.tools && e.data.tools == "31") {
  496. U.MD.D.I.openApplication("netWorkPanel")
  497. } else if (e.data.tools && e.data.tools == "32") {
  498. U.MD.D.I.openApplication("codeEdit")
  499. } else if (e.data.tools && e.data.tools == "28") {
  500. U.MD.D.I.openApplication("translation")
  501. } else if (e.data.tools && e.data.tools == "37") {
  502. U.MD.D.I.openApplication("mohe")
  503. } else if (e.data.tools && e.data.tools == "38") {
  504. U.MD.D.I.openApplication("24game")
  505. } else if (e.data.tools && e.data.tools == "39") {
  506. U.MD.D.I.openApplication("GeoGebra")
  507. }
  508. });
  509. U.MD.D.I.selectUser = function () {
  510. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  511. if (res.value[0].length > 0) {
  512. US.userInfo = res.value[0][0];
  513. $(".userName")[0].innerHTML = US.userInfo.username;
  514. }
  515. }, [], { "type": "GET", "withCredentials": true });
  516. }
  517. U.MD.D.I.openInApplication = function (str, data, screenType) {
  518. var _userinfo = US.userInfo, //登录用户信息
  519. _userid = US.userInfo.userid, //登录用户id
  520. _oid = _userinfo.organizeid,
  521. _type = US.userInfo.type,
  522. _classId = US.userInfo.classid;
  523. switch (str) {
  524. case "studyDetail":
  525. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  526. setTimeout(() => {
  527. U.MD.U.L.login();
  528. }, 2000);
  529. } else {
  530. _formdiv = new U.UF.UI.form(
  531. "项目详情",
  532. $$("iframe", { "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/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data + "&tType=" + 3 + "&cid=" + _classId + "&screenType=" + screenType }), {
  533. "id": "studyDetail",
  534. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  535. "onresize": function () { }
  536. }, {
  537. closecallback: function () { }
  538. }, { "style": { "height": "36px" } }).form; //创建窗体
  539. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  540. break;
  541. }
  542. }
  543. }
  544. U.MD.D.I.openApplication = function (str, obj, info) {
  545. obj = obj || {};
  546. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  547. _formdiv, //创建任务栏时同时弹出的窗体元素。
  548. _userinfo = US.userInfo, //登录用户信息
  549. _userid = obj.userid || US.userInfo.userid, //登录用户id
  550. _oid = obj.organizeid || _userinfo.organizeid,
  551. _type = US.userInfo.type,
  552. _org = US.userInfo.org,
  553. _classId = US.userInfo.classid,
  554. _TscreenType = 1
  555. _screenType = 2,
  556. _SscreenType = 3;
  557. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  558. switch (str) {
  559. case "studnetProject": //好友打开
  560. _formdiv = new U.UF.UI.form(
  561. "我的项目",
  562. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  563. "id": "studnetProject",
  564. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  565. "onresize": function () { }
  566. }, {
  567. closecallback: function () { }
  568. }, { "style": { "height": "36px" } }).form; //创建窗体
  569. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  570. break;
  571. case "studentEvaluate": //好友打开
  572. _formdiv = new U.UF.UI.form(
  573. "我的评价",
  574. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  575. "id": "studentEvaluate",
  576. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  577. "onresize": function () { }
  578. }, {
  579. closecallback: function () { }
  580. }, { "style": { "height": "36px" } }).form; //创建窗体
  581. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  582. break;
  583. case "my":
  584. _formdiv = new U.UF.UI.form(
  585. "我的资料",
  586. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  587. "id": "my",
  588. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  589. "onresize": function () { }
  590. }, {
  591. closecallback: function () { }
  592. }, { "style": { "height": "36px" } }).form; //创建窗体
  593. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  594. break;
  595. case "program":
  596. _formdiv = new U.UF.UI.form(
  597. "编程平台",
  598. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  599. "id": "program",
  600. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  601. "onresize": function () { }
  602. }, {
  603. closecallback: function () { }
  604. }, { "style": { "height": "36px" } }).form; //创建窗体
  605. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  606. break;
  607. case "library":
  608. _formdiv = new U.UF.UI.form(
  609. "素材库",
  610. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  611. "id": "library",
  612. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  613. "onresize": function () { }
  614. }, {
  615. closecallback: function () { }
  616. }, { "style": { "height": "36px" } }).form; //创建窗体
  617. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  618. break;
  619. case "whiteboard":
  620. _formdiv = new U.UF.UI.form(
  621. "电子白板",
  622. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  623. "id": "whiteboard",
  624. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  625. "onresize": function () { }
  626. }, {
  627. closecallback: function () { }
  628. }, { "style": { "height": "36px" } }).form; //创建窗体
  629. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  630. break;
  631. case "investigation":
  632. _formdiv = new U.UF.UI.form(
  633. "问卷调查",
  634. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  635. "id": "investigation",
  636. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  637. "onresize": function () { }
  638. }, {
  639. closecallback: function () { }
  640. }, { "style": { "height": "36px" } }).form; //创建窗体
  641. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  642. break;
  643. case "note":
  644. _formdiv = new U.UF.UI.form(
  645. "便签分类",
  646. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  647. "id": "note",
  648. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  649. "onresize": function () { }
  650. }, {
  651. closecallback: function () { }
  652. }, { "style": { "height": "36px" } }).form; //创建窗体
  653. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  654. break;
  655. // case "score":
  656. // _formdiv = new U.UF.UI.form(
  657. // "量规评分",
  658. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  659. // "id": "score",
  660. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  661. // "onresize": function() {}
  662. // }, {
  663. // closecallback: function() {}
  664. // }, { "style": { "height": "36px" } }).form; //创建窗体
  665. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  666. // break;
  667. case "mind":
  668. _formdiv = new U.UF.UI.form(
  669. "思维导图",
  670. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  671. "id": "mind",
  672. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  673. "onresize": function () { }
  674. }, {
  675. closecallback: function () { }
  676. }, { "style": { "height": "36px" } }).form; //创建窗体
  677. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  678. break;
  679. case "doc":
  680. // U.MD.D.I.isRoom();
  681. _formdiv = new U.UF.UI.form(
  682. "协同文档",
  683. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  684. "id": "doc",
  685. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  686. "onresize": function () { }
  687. }, {
  688. closecallback: function () { }
  689. }, { "style": { "height": "36px" } }).form; //创建窗体
  690. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  691. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  692. // })
  693. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  694. break;
  695. case "studentStudy":
  696. _formdiv = new U.UF.UI.form(
  697. "学习中心",
  698. $$("iframe", { "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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  699. "id": "studentStudy",
  700. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  701. "onresize": function () { }
  702. }, {
  703. closecallback: function () { }
  704. }, { "style": { "height": "36px" } }).form; //创建窗体
  705. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  706. break;
  707. case "train": //好友打开
  708. _formdiv = new U.UF.UI.form(
  709. "训练平台",
  710. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  711. "id": "train",
  712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  713. "onresize": function () { }
  714. }, {
  715. closecallback: function () { }
  716. }, { "style": { "height": "36px" } }).form; //创建窗体
  717. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  718. break;
  719. case "mindNetwork": //好友打开
  720. _formdiv = new U.UF.UI.form(
  721. "思维网格",
  722. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  723. "id": "mindNetwork",
  724. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  725. "onresize": function () { }
  726. }, {
  727. closecallback: function () { }
  728. }, { "style": { "height": "36px" } }).form; //创建窗体
  729. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  730. break;
  731. case "studentClassRoom": //好友打开
  732. _formdiv = new U.UF.UI.form(
  733. "实时课堂",
  734. $$("iframe", { "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/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
  735. "id": "studentClassRoom",
  736. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  737. "onresize": function () { }
  738. }, {
  739. closecallback: function () { }
  740. }, { "style": { "height": "36px" } }).form; //创建窗体
  741. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  742. setTimeout(() => {
  743. U.UF.F.windowZooming(_formdiv)
  744. }, 0);
  745. break;
  746. }
  747. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  748. switch (str) {
  749. case "studnetProject": //好友打开
  750. _formdiv = new U.UF.UI.form(
  751. "我的项目",
  752. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  753. "id": "studnetProject",
  754. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  755. "onresize": function () { }
  756. }, {
  757. closecallback: function () { }
  758. }, { "style": { "height": "36px" } }).form; //创建窗体
  759. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  760. break;
  761. case "studentEvaluate": //好友打开
  762. _formdiv = new U.UF.UI.form(
  763. "我的评价",
  764. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  765. "id": "studentEvaluate",
  766. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  767. "onresize": function () { }
  768. }, {
  769. closecallback: function () { }
  770. }, { "style": { "height": "36px" } }).form; //创建窗体
  771. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  772. break;
  773. case "my":
  774. _formdiv = new U.UF.UI.form(
  775. "我的资料",
  776. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  777. "id": "my",
  778. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  779. "onresize": function () { }
  780. }, {
  781. closecallback: function () { }
  782. }, { "style": { "height": "36px" } }).form; //创建窗体
  783. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  784. break;
  785. case "program":
  786. _formdiv = new U.UF.UI.form(
  787. "编程平台",
  788. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  789. "id": "program",
  790. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  791. "onresize": function () { }
  792. }, {
  793. closecallback: function () { }
  794. }, { "style": { "height": "36px" } }).form; //创建窗体
  795. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  796. break;
  797. case "library":
  798. _formdiv = new U.UF.UI.form(
  799. "素材库",
  800. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  801. "id": "library",
  802. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  803. "onresize": function () { }
  804. }, {
  805. closecallback: function () { }
  806. }, { "style": { "height": "36px" } }).form; //创建窗体
  807. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  808. break;
  809. case "whiteboard":
  810. _formdiv = new U.UF.UI.form(
  811. "电子白板",
  812. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  813. "id": "whiteboard",
  814. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  815. "onresize": function () { }
  816. }, {
  817. closecallback: function () { }
  818. }, { "style": { "height": "36px" } }).form; //创建窗体
  819. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  820. break;
  821. case "investigation":
  822. _formdiv = new U.UF.UI.form(
  823. "问卷调查",
  824. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  825. "id": "investigation",
  826. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  827. "onresize": function () { }
  828. }, {
  829. closecallback: function () { }
  830. }, { "style": { "height": "36px" } }).form; //创建窗体
  831. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  832. break;
  833. case "note":
  834. _formdiv = new U.UF.UI.form(
  835. "便签分类",
  836. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  837. "id": "note",
  838. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  839. "onresize": function () { }
  840. }, {
  841. closecallback: function () { }
  842. }, { "style": { "height": "36px" } }).form; //创建窗体
  843. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  844. break;
  845. // case "score":
  846. // _formdiv = new U.UF.UI.form(
  847. // "量规评分",
  848. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  849. // "id": "score",
  850. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  851. // "onresize": function() {}
  852. // }, {
  853. // closecallback: function() {}
  854. // }, { "style": { "height": "36px" } }).form; //创建窗体
  855. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  856. // break;
  857. case "mind":
  858. _formdiv = new U.UF.UI.form(
  859. "思维导图",
  860. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  861. "id": "mind",
  862. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  863. "onresize": function () { }
  864. }, {
  865. closecallback: function () { }
  866. }, { "style": { "height": "36px" } }).form; //创建窗体
  867. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  868. break;
  869. case "doc":
  870. // U.MD.D.I.isRoom();
  871. _formdiv = new U.UF.UI.form(
  872. "协同文档",
  873. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  874. "id": "doc",
  875. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  876. "onresize": function () { }
  877. }, {
  878. closecallback: function () { }
  879. }, { "style": { "height": "36px" } }).form; //创建窗体
  880. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  881. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  882. })
  883. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  884. break;
  885. case "train": //好友打开
  886. _formdiv = new U.UF.UI.form(
  887. "训练平台",
  888. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  889. "id": "train",
  890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  891. "onresize": function () { }
  892. }, {
  893. closecallback: function () { }
  894. }, { "style": { "height": "36px" } }).form; //创建窗体
  895. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  896. break;
  897. case "studentStudy":
  898. _formdiv = new U.UF.UI.form(
  899. "学习中心",
  900. $$("iframe", { "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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  901. "id": "studentStudy",
  902. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  903. "onresize": function () { }
  904. }, {
  905. closecallback: function () { }
  906. }, { "style": { "height": "36px" } }).form; //创建窗体
  907. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  908. break;
  909. case "mindNetwork": //好友打开
  910. _formdiv = new U.UF.UI.form(
  911. "思维网格",
  912. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  913. "id": "mindNetwork",
  914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  915. "onresize": function () { }
  916. }, {
  917. closecallback: function () { }
  918. }, { "style": { "height": "36px" } }).form; //创建窗体
  919. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  920. break;
  921. case "studentClassRoom": //好友打开
  922. _formdiv = new U.UF.UI.form(
  923. "实时课堂",
  924. $$("iframe", { "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/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
  925. "id": "studentClassRoom",
  926. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  927. "onresize": function () { }
  928. }, {
  929. closecallback: function () { }
  930. }, { "style": { "height": "36px" } }).form; //创建窗体
  931. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  932. setTimeout(() => {
  933. U.UF.F.windowZooming(_formdiv)
  934. }, 0);
  935. break;
  936. }
  937. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  938. //选择应用处理
  939. switch (str) {
  940. case "project": //好友打开
  941. _formdiv = new U.UF.UI.form(
  942. "项目管理",
  943. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
  944. "id": "project",
  945. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  946. "onresize": function () { }
  947. }, {
  948. closecallback: function () { }
  949. }, { "style": { "height": "36px" } }).form; //创建窗体
  950. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  951. break;
  952. case "student":
  953. _formdiv = new U.UF.UI.form(
  954. "学生管理",
  955. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId }), {
  956. "id": "student",
  957. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  958. "onresize": function () { }
  959. }, {
  960. closecallback: function () { }
  961. }, { "style": { "height": "36px" } }).form; //创建窗体
  962. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  963. break;
  964. case "evaluate":
  965. _formdiv = new U.UF.UI.form(
  966. "学生评价",
  967. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  968. "id": "evaluate",
  969. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  970. "onresize": function () { }
  971. }, {
  972. closecallback: function () { }
  973. }, { "style": { "height": "36px" } }).form; //创建窗体
  974. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  975. break;
  976. case "sys":
  977. _formdiv = new U.UF.UI.form(
  978. "目标管理",
  979. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  980. "id": "sys",
  981. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  982. "onresize": function () { }
  983. }, {
  984. closecallback: function () { }
  985. }, { "style": { "height": "36px" } }).form; //创建窗体
  986. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  987. break;
  988. case "courseDesign":
  989. _formdiv = new U.UF.UI.form(
  990. "课程设计",
  991. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  992. "id": "courseDesign",
  993. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  994. "onresize": function () { }
  995. }, {
  996. closecallback: function () { }
  997. }, { "style": { "height": "36px" } }).form; //创建窗体
  998. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  999. break;
  1000. case "program":
  1001. _formdiv = new U.UF.UI.form(
  1002. "编程平台",
  1003. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1004. "id": "program",
  1005. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1006. "onresize": function () { }
  1007. }, {
  1008. closecallback: function () { }
  1009. }, { "style": { "height": "36px" } }).form; //创建窗体
  1010. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1011. break;
  1012. case "class":
  1013. _formdiv = new U.UF.UI.form(
  1014. "班级管理",
  1015. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid }), {
  1016. "id": "class",
  1017. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1018. "onresize": function () { }
  1019. }, {
  1020. closecallback: function () { }
  1021. }, { "style": { "height": "36px" } }).form; //创建窗体
  1022. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1023. break;
  1024. case "my":
  1025. _formdiv = new U.UF.UI.form(
  1026. "我的资料",
  1027. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  1028. "id": "my",
  1029. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1030. "onresize": function () { }
  1031. }, {
  1032. closecallback: function () { }
  1033. }, { "style": { "height": "36px" } }).form; //创建窗体
  1034. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1035. break;
  1036. case "notice":
  1037. _formdiv = new U.UF.UI.form(
  1038. "通知公告",
  1039. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  1040. "id": "notice",
  1041. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1042. "onresize": function () { }
  1043. }, {
  1044. closecallback: function () { }
  1045. }, { "style": { "height": "36px" } }).form; //创建窗体
  1046. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1047. break;
  1048. case "library":
  1049. _formdiv = new U.UF.UI.form(
  1050. "素材库",
  1051. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  1052. "id": "library",
  1053. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1054. "onresize": function () { }
  1055. }, {
  1056. closecallback: function () { }
  1057. }, { "style": { "height": "36px" } }).form; //创建窗体
  1058. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1059. break;
  1060. case "whiteboard":
  1061. _formdiv = new U.UF.UI.form(
  1062. "电子白板",
  1063. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1064. "id": "whiteboard",
  1065. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1066. "onresize": function () { }
  1067. }, {
  1068. closecallback: function () { }
  1069. }, { "style": { "height": "36px" } }).form; //创建窗体
  1070. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1071. break;
  1072. case "investigation":
  1073. _formdiv = new U.UF.UI.form(
  1074. "问卷调查",
  1075. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1076. "id": "investigation",
  1077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1078. "onresize": function () { }
  1079. }, {
  1080. closecallback: function () { }
  1081. }, { "style": { "height": "36px" } }).form; //创建窗体
  1082. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1083. break;
  1084. case "note":
  1085. _formdiv = new U.UF.UI.form(
  1086. "便签分类",
  1087. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  1088. "id": "note",
  1089. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1090. "onresize": function () { }
  1091. }, {
  1092. closecallback: function () { }
  1093. }, { "style": { "height": "36px" } }).form; //创建窗体
  1094. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1095. break;
  1096. // case "score":
  1097. // _formdiv = new U.UF.UI.form(
  1098. // "量规评分",
  1099. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1100. // "id": "score",
  1101. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1102. // "onresize": function() {}
  1103. // }, {
  1104. // closecallback: function() {}
  1105. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1106. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1107. // break;
  1108. case "mind":
  1109. _formdiv = new U.UF.UI.form(
  1110. "思维导图",
  1111. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1112. "id": "mind",
  1113. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1114. "onresize": function () { }
  1115. }, {
  1116. closecallback: function () { }
  1117. }, { "style": { "height": "36px" } }).form; //创建窗体
  1118. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1119. break;
  1120. case "doc":
  1121. // U.MD.D.I.isRoom();
  1122. _formdiv = new U.UF.UI.form(
  1123. "协同文档",
  1124. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1125. "id": "doc",
  1126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1127. "onresize": function () { }
  1128. }, {
  1129. closecallback: function () { }
  1130. }, { "style": { "height": "36px" } }).form; //创建窗体
  1131. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1132. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1133. })
  1134. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1135. break;
  1136. case "study":
  1137. _formdiv = new U.UF.UI.form(
  1138. "学习中心",
  1139. $$("iframe", { "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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1140. "id": "study",
  1141. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1142. "onresize": function () { }
  1143. }, {
  1144. closecallback: function () { }
  1145. }, { "style": { "height": "36px" } }).form; //创建窗体
  1146. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1147. break;
  1148. case "mindNetwork": //好友打开
  1149. _formdiv = new U.UF.UI.form(
  1150. "思维网格",
  1151. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1152. "id": "mindNetwork",
  1153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1154. "onresize": function () { }
  1155. }, {
  1156. closecallback: function () { }
  1157. }, { "style": { "height": "36px" } }).form; //创建窗体
  1158. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1159. break;
  1160. case "train": //好友打开
  1161. _formdiv = new U.UF.UI.form(
  1162. "训练平台",
  1163. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1164. "id": "mindNetwork",
  1165. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1166. "onresize": function () { }
  1167. }, {
  1168. closecallback: function () { }
  1169. }, { "style": { "height": "36px" } }).form; //创建窗体
  1170. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1171. break;
  1172. case "teacherClassRoom": //好友打开
  1173. _formdiv = new U.UF.UI.form(
  1174. "实时课堂",
  1175. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid }), {
  1176. "id": "teacherClassRoom",
  1177. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1178. "onresize": function () { }
  1179. }, {
  1180. closecallback: function () { }
  1181. }, { "style": { "height": "36px" } }).form; //创建窗体
  1182. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1183. setTimeout(() => {
  1184. U.UF.F.windowZooming(_formdiv)
  1185. }, 0);
  1186. break;
  1187. }
  1188. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1189. switch (str) {
  1190. case "project": //好友打开
  1191. _formdiv = new U.UF.UI.form(
  1192. "项目管理",
  1193. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
  1194. "id": "project",
  1195. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1196. "onresize": function () { }
  1197. }, {
  1198. closecallback: function () { }
  1199. }, { "style": { "height": "36px" } }).form; //创建窗体
  1200. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1201. break;
  1202. case "evaluate":
  1203. _formdiv = new U.UF.UI.form(
  1204. "学生评价",
  1205. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  1206. "id": "evaluate",
  1207. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1208. "onresize": function () { }
  1209. }, {
  1210. closecallback: function () { }
  1211. }, { "style": { "height": "36px" } }).form; //创建窗体
  1212. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1213. break;
  1214. case "notice":
  1215. _formdiv = new U.UF.UI.form(
  1216. "通知公告",
  1217. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  1218. "id": "notice",
  1219. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1220. "onresize": function () { }
  1221. }, {
  1222. closecallback: function () { }
  1223. }, { "style": { "height": "36px" } }).form; //创建窗体
  1224. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1225. break;
  1226. case "stuLibrary":
  1227. _formdiv = new U.UF.UI.form(
  1228. "学习资料",
  1229. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid }), {
  1230. "id": "stuLibrary",
  1231. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1232. "onresize": function () { }
  1233. }, {
  1234. closecallback: function () { }
  1235. }, { "style": { "height": "36px" } }).form; //创建窗体
  1236. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1237. break;
  1238. case "program":
  1239. _formdiv = new U.UF.UI.form(
  1240. "编程平台",
  1241. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1242. "id": "program",
  1243. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1244. "onresize": function () { }
  1245. }, {
  1246. closecallback: function () { }
  1247. }, { "style": { "height": "36px" } }).form; //创建窗体
  1248. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1249. break;
  1250. case "whiteboard":
  1251. _formdiv = new U.UF.UI.form(
  1252. "电子白板",
  1253. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1254. "id": "whiteboard",
  1255. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1256. "onresize": function () { }
  1257. }, {
  1258. closecallback: function () { }
  1259. }, { "style": { "height": "36px" } }).form; //创建窗体
  1260. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1261. break;
  1262. case "investigation":
  1263. _formdiv = new U.UF.UI.form(
  1264. "问卷调查",
  1265. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1266. "id": "investigation",
  1267. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1268. "onresize": function () { }
  1269. }, {
  1270. closecallback: function () { }
  1271. }, { "style": { "height": "36px" } }).form; //创建窗体
  1272. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1273. break;
  1274. case "mind":
  1275. _formdiv = new U.UF.UI.form(
  1276. "思维导图",
  1277. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1278. "id": "mind",
  1279. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1280. "onresize": function () { }
  1281. }, {
  1282. closecallback: function () { }
  1283. }, { "style": { "height": "36px" } }).form; //创建窗体
  1284. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1285. break;
  1286. case "doc":
  1287. // U.MD.D.I.isRoom();
  1288. _formdiv = new U.UF.UI.form(
  1289. "协同文档",
  1290. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1291. "id": "doc",
  1292. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1293. "onresize": function () { }
  1294. }, {
  1295. closecallback: function () { }
  1296. }, { "style": { "height": "36px" } }).form; //创建窗体
  1297. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1298. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1299. })
  1300. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1301. break;
  1302. case "study":
  1303. _formdiv = new U.UF.UI.form(
  1304. "学习中心",
  1305. $$("iframe", { "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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1306. "id": "study",
  1307. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1308. "onresize": function () { }
  1309. }, {
  1310. closecallback: function () { }
  1311. }, { "style": { "height": "36px" } }).form; //创建窗体
  1312. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1313. break;
  1314. case "mindNetwork": //好友打开
  1315. _formdiv = new U.UF.UI.form(
  1316. "思维网格",
  1317. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1318. "id": "mindNetwork",
  1319. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1320. "onresize": function () { }
  1321. }, {
  1322. closecallback: function () { }
  1323. }, { "style": { "height": "36px" } }).form; //创建窗体
  1324. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1325. break;
  1326. case "train": //好友打开
  1327. _formdiv = new U.UF.UI.form(
  1328. "训练平台",
  1329. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1330. "id": "train",
  1331. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1332. "onresize": function () { }
  1333. }, {
  1334. closecallback: function () { }
  1335. }, { "style": { "height": "36px" } }).form; //创建窗体
  1336. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1337. break;
  1338. case "sys":
  1339. _formdiv = new U.UF.UI.form(
  1340. "目标管理",
  1341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  1342. "id": "sys",
  1343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1344. "onresize": function () { }
  1345. }, {
  1346. closecallback: function () { }
  1347. }, { "style": { "height": "36px" } }).form; //创建窗体
  1348. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1349. break;
  1350. case "courseDesign":
  1351. _formdiv = new U.UF.UI.form(
  1352. "课程设计",
  1353. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  1354. "id": "courseDesign",
  1355. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1356. "onresize": function () { }
  1357. }, {
  1358. closecallback: function () { }
  1359. }, { "style": { "height": "36px" } }).form; //创建窗体
  1360. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1361. break;
  1362. }
  1363. } else if (!_type) {
  1364. switch (str) {
  1365. case "my":
  1366. _formdiv = new U.UF.UI.form(
  1367. "我的资料",
  1368. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  1369. "id": "my",
  1370. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1371. "onresize": function () { }
  1372. }, {
  1373. closecallback: function () { }
  1374. }, { "style": { "height": "36px" } }).form; //创建窗体
  1375. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1376. break;
  1377. }
  1378. }
  1379. switch (str) {
  1380. // AIprogram2 AI体验 aihub.cocorobo.cn
  1381. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1382. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1383. case "AIprogram2": //AI体验
  1384. _formdiv = new U.UF.UI.form(
  1385. "AI体验",
  1386. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1387. "id": "AIprogram2",
  1388. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1389. "onresize": function () { }
  1390. }, {
  1391. closecallback: function () { }
  1392. }, { "style": { "height": "36px" } }).form; //创建窗体
  1393. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1394. break;
  1395. case "Pythonprogram": //python编程
  1396. _formdiv = new U.UF.UI.form(
  1397. "Python编程",
  1398. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1399. "id": "Pythonprogram",
  1400. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1401. "onresize": function () { }
  1402. }, {
  1403. closecallback: function () { }
  1404. }, { "style": { "height": "36px" } }).form; //创建窗体
  1405. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1406. break;
  1407. case "AIprogram": //ai编程
  1408. _formdiv = new U.UF.UI.form(
  1409. "AI编程平台",
  1410. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1411. "id": "AIprogram",
  1412. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1413. "onresize": function () { }
  1414. }, {
  1415. closecallback: function () { }
  1416. }, { "style": { "height": "36px" } }).form; //创建窗体
  1417. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1418. break;
  1419. case "resources": //国家教育
  1420. _formdiv = new U.UF.UI.form(
  1421. "国家教育",
  1422. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1423. "id": "resources",
  1424. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1425. "onresize": function () { }
  1426. }, {
  1427. closecallback: function () { }
  1428. }, { "style": { "height": "36px" } }).form; //创建窗体
  1429. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1430. break;
  1431. case "codeEdit": //源码编辑
  1432. _formdiv = new U.UF.UI.form(
  1433. "源码编辑",
  1434. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1435. "id": "codeEdit",
  1436. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1437. "onresize": function () { }
  1438. }, {
  1439. closecallback: function () { }
  1440. }, { "style": { "height": "36px" } }).form; //创建窗体
  1441. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1442. break; //
  1443. case "MindMap": //MindMap
  1444. _formdiv = new U.UF.UI.form(
  1445. "MindMap",
  1446. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1447. "id": "MindMap",
  1448. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1449. "onresize": function () { }
  1450. }, {
  1451. closecallback: function () { }
  1452. }, { "style": { "height": "36px" } }).form; //创建窗体
  1453. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1454. break;
  1455. case "netWorkPanel": //netWorkPanel
  1456. _formdiv = new U.UF.UI.form(
  1457. "netWorkPanel",
  1458. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1459. "id": "netWorkPanel",
  1460. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1461. "onresize": function () { }
  1462. }, {
  1463. closecallback: function () { }
  1464. }, { "style": { "height": "36px" } }).form; //创建窗体
  1465. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1466. break;
  1467. case "GeoGebra": //GeoGebra
  1468. _formdiv = new U.UF.UI.form(
  1469. "GeoGebra",
  1470. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1471. "id": "GeoGebra",
  1472. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1473. "onresize": function () { }
  1474. }, {
  1475. closecallback: function () { }
  1476. }, { "style": { "height": "36px" } }).form; //创建窗体
  1477. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1478. break;
  1479. case "translation": //翻译
  1480. _formdiv = new U.UF.UI.form(
  1481. "翻译",
  1482. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1483. "id": "translation",
  1484. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1485. "onresize": function () { }
  1486. }, {
  1487. closecallback: function () { }
  1488. }, { "style": { "height": "36px" } }).form; //创建窗体
  1489. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1490. break;
  1491. case "mohe": //魔盒
  1492. _formdiv = new U.UF.UI.form(
  1493. "魔盒识字",
  1494. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1495. "id": "mohe",
  1496. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1497. "onresize": function () { }
  1498. }, {
  1499. closecallback: function () { }
  1500. }, { "style": { "height": "36px" } }).form; //创建窗体
  1501. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1502. break;
  1503. case "24game": //24点
  1504. _formdiv = new U.UF.UI.form(
  1505. "24点",
  1506. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1507. "id": "24game",
  1508. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1509. "onresize": function () { }
  1510. }, {
  1511. closecallback: function () { }
  1512. }, { "style": { "height": "36px" } }).form; //创建窗体
  1513. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1514. break;
  1515. case "case":
  1516. _formdiv = new U.UF.UI.form(
  1517. "项目进展",
  1518. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid+ "&org=" + _org }), {
  1519. "id": "evaluate",
  1520. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1521. "onresize": function () { }
  1522. }, {
  1523. closecallback: function () { }
  1524. }, { "style": { "height": "36px" } }).form; //创建窗体
  1525. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1526. break;
  1527. }
  1528. //U.MD.D.I.openClick(str);
  1529. //如果有任务栏信息
  1530. if (_taskbar) {
  1531. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1532. }
  1533. }
  1534. // U.MD.D.I.openClick = function(str){
  1535. // var click = '';
  1536. // switch(str){
  1537. // case 'friend':
  1538. // click = '我的好友';
  1539. // break;
  1540. // case 'domain':
  1541. // click = '域名管理';
  1542. // break;
  1543. // case 'disk':
  1544. // click = '我的云盘';
  1545. // break;
  1546. // case 'word':
  1547. // click = 'Word';
  1548. // break;
  1549. // case 'excel':
  1550. // click = 'Execl';
  1551. // break;
  1552. // case 'txt':
  1553. // click = '文本文件';
  1554. // break;
  1555. // case 'lookupFriend':
  1556. // click = '查找好友';
  1557. // break;
  1558. // case 'ftp':
  1559. // click = 'FTP';
  1560. // break;
  1561. // case 'group':
  1562. // click = '群组';
  1563. // break;
  1564. // case 'set':
  1565. // click = '我的设置';
  1566. // break;
  1567. // case 'systemSet':
  1568. // click = '系统设置';
  1569. // break;
  1570. // case 'boomYun':
  1571. // click = '互联办公';
  1572. // break;
  1573. // case 'xz':
  1574. // click = '云端下载';
  1575. // break;
  1576. // case 'client':
  1577. // click = '有思浏览器';
  1578. // break;
  1579. // case 'backEndProgramming':
  1580. // click = '在线后台编程';
  1581. // break;
  1582. // case 'frontEndProgramming':
  1583. // click = '在线前端编程';
  1584. // break;
  1585. // default: break;
  1586. // }
  1587. // if(U.MD.D.I.Ip && click){
  1588. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1589. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1590. // })
  1591. // }
  1592. // }
  1593. /**
  1594. *函数作用:ajax简易函数,使用post格式
  1595. *@param url {data} 后台地址
  1596. *@param data {data} 参数json
  1597. *@param fn {data} 回调函数
  1598. *
  1599. */
  1600. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1601. // var xhr = new XMLHttpRequest();
  1602. // xhr.open("GET",url,true);
  1603. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1604. // xhr.onreadystatechange = function(){
  1605. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1606. // fn.call(this,xhr.responseText);
  1607. // }
  1608. // };
  1609. // xhr.send();
  1610. // }
  1611. /*判断是否是内网IP*/
  1612. // U.MD.D.I.isInnerIPFn = function(str){
  1613. // var curPageUrl = str;
  1614. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1615. // curPageUrl =curPageUrl.replace(reg1,'');
  1616. // // console.log('curPageUrl-1 '+curPageUrl);
  1617. // var reg2 = /\:+/g;//替换冒号为一点
  1618. // curPageUrl =curPageUrl.replace(reg2,'.');
  1619. // // console.log('curPageUrl-2 '+curPageUrl);
  1620. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1621. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1622. // if(curPageUrl[2] != '16'){
  1623. // return ipAddress;
  1624. // }else{
  1625. // return false;
  1626. // }
  1627. // }
  1628. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1629. // //compatibility for firefox and chrome
  1630. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1631. // var pc = new myPeerConnection({
  1632. // iceServers: []
  1633. // }),
  1634. // noop = function() {},
  1635. // localIPs = {},
  1636. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1637. // key;
  1638. // function iterateIP(ip) {
  1639. // if (!localIPs[ip]) onNewIP(ip);
  1640. // localIPs[ip] = true;
  1641. // }
  1642. // //create a bogus data channel
  1643. // pc.createDataChannel("");
  1644. // // create offer and set local description
  1645. // pc.createOffer().then(function(sdp) {
  1646. // sdp.sdp.split('\n').forEach(function(line) {
  1647. // if (line.indexOf('candidate') < 0) return;
  1648. // line.match(ipRegex).forEach(iterateIP);
  1649. // });
  1650. // pc.setLocalDescription(sdp, noop, noop);
  1651. // }).catch(function(reason) {
  1652. // // An error occurred, so handle the failure to connect
  1653. // });
  1654. // //sten for candidate events
  1655. // pc.onicecandidate = function(ice) {
  1656. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1657. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1658. // };
  1659. // }
  1660. // U.MD.D.I.getUserIpBool = function(callback){
  1661. // U.MD.D.I.getUserIP(function(ip){
  1662. // alert("Got IP! :" + ip);
  1663. // });
  1664. //}
  1665. //#endregion
  1666. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  1667. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1668. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1669. _userinfo = US.userInfo, //登录用户信息
  1670. _userid = US.userInfo.userid //登录用户id
  1671. let _iframe;
  1672. var _jie = $$("div", {
  1673. "style": {
  1674. "position": "absolute",
  1675. "bottom": "50px",
  1676. "right": "50px",
  1677. "zIndex": "9999",
  1678. "backgroundColor": "#2268bc",
  1679. "color": "#fff",
  1680. "padding": "12px 20px",
  1681. "cursor": "pointer",
  1682. "borderRadius": "4px",
  1683. },
  1684. "innerHTML": "提交作业"
  1685. })
  1686. let _loading = document.createElement('div')
  1687. _loading.style = "width:100%;height:100%;background:#0000008f;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  1688. // _loading.id = "";
  1689. let _lchild = document.createElement('div')
  1690. let _limg = document.createElement('img')
  1691. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1692. _limg.style = "width: 26px;margin-right: 10px;"
  1693. _lchild.appendChild(_limg)
  1694. let _lspan = document.createElement('span')
  1695. _lspan.innerHTML = "上传中..."
  1696. _lchild.appendChild(_lspan)
  1697. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1698. _loading.appendChild(_lchild)
  1699. var _box = $$('div', {
  1700. "style": {
  1701. "position": "relative",
  1702. "width": "100%",
  1703. "height": "100%",
  1704. },
  1705. })
  1706. _box.appendChild(_loading)
  1707. _box.id = str + '_loadLi'
  1708. switch (str) {
  1709. case "whiteboard":
  1710. _iframe = $$("iframe", {
  1711. "frameborder": "no",
  1712. "border": "0",
  1713. "scrolling ": "no",
  1714. "style": {
  1715. "cssText": "border:0;width:100%;height:100%"
  1716. },
  1717. "src": "https://iwb.cocorobo.cn/"
  1718. })
  1719. _box.appendChild(_iframe);
  1720. _box.appendChild(_jie);
  1721. _formdiv = new U.UF.UI.form(
  1722. "电子白板",
  1723. _box, {
  1724. "id": "whiteboard",
  1725. "style": {
  1726. "width": "90%",
  1727. "height": "90%",
  1728. "overflow": 'hidden'
  1729. },
  1730. "onresize": function () { }
  1731. }, {
  1732. closecallback: function () { }
  1733. }, {
  1734. "style": {
  1735. "height": "36px"
  1736. }
  1737. }).form; //创建窗体
  1738. _taskbar = {
  1739. "id": str + _formdiv.id,
  1740. "style": {
  1741. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1742. },
  1743. "name": "电子白板",
  1744. "forms": _formdiv,
  1745. "click": function () {
  1746. U.MD.D.I.openApplication(str, obj, info);
  1747. }
  1748. }
  1749. break;
  1750. case "mind":
  1751. _iframe = $$("iframe", {
  1752. "frameborder": "no",
  1753. "border": "0",
  1754. "scrolling ": "no",
  1755. "style": {
  1756. "cssText": "border:0;width:100%;height:100%"
  1757. },
  1758. "src": "/kityminder-editor/dist/index.html"
  1759. })
  1760. _box.appendChild(_iframe);
  1761. _box.appendChild(_jie);
  1762. _formdiv = new U.UF.UI.form(
  1763. "思维导图",
  1764. _box, { //"/jsmind/example/demo.html"
  1765. "id": "mind",
  1766. "style": {
  1767. "width": "90%",
  1768. "height": "90%",
  1769. "overflow": 'hidden'
  1770. },
  1771. "onresize": function () { }
  1772. }, {
  1773. closecallback: function () { }
  1774. }, {
  1775. "style": {
  1776. "height": "36px"
  1777. }
  1778. }).form; //创建窗体
  1779. _taskbar = {
  1780. "id": str + _formdiv.id,
  1781. "style": {
  1782. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1783. },
  1784. "name": "思维导图",
  1785. "forms": _formdiv,
  1786. "click": function () {
  1787. U.MD.D.I.openApplication(str, obj, info);
  1788. }
  1789. }
  1790. break;
  1791. case "MindMap":
  1792. _iframe = $$("iframe", {
  1793. "frameborder": "no",
  1794. "border": "0",
  1795. "scrolling ": "no",
  1796. "style": {
  1797. "cssText": "border:0;width:100%;height:100%"
  1798. },
  1799. "src": "//cloud.cocorobo.cn/mind/"
  1800. })
  1801. _box.appendChild(_iframe);
  1802. _box.appendChild(_jie);
  1803. _formdiv = new U.UF.UI.form(
  1804. "思维导图",
  1805. _box, { //"/jsmind/example/demo.html"
  1806. "id": "mind",
  1807. "style": {
  1808. "width": "90%",
  1809. "height": "90%",
  1810. "overflow": 'hidden'
  1811. },
  1812. "onresize": function () { }
  1813. }, {
  1814. closecallback: function () { }
  1815. }, {
  1816. "style": {
  1817. "height": "36px"
  1818. }
  1819. }).form; //创建窗体
  1820. _taskbar = {
  1821. "id": str + _formdiv.id,
  1822. "style": {
  1823. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1824. },
  1825. "name": "思维导图",
  1826. "forms": _formdiv,
  1827. "click": function () {
  1828. U.MD.D.I.openApplication(str, obj, info);
  1829. }
  1830. }
  1831. break;
  1832. case "doc":
  1833. _iframe = $$("iframe", {
  1834. "frameborder": "no",
  1835. "border": "0",
  1836. "scrolling ": "no",
  1837. "style": {
  1838. "cssText": "border:0;width:100%;height:100%"
  1839. },
  1840. "src": "/Office/Word/WordEditArea.htm"
  1841. })
  1842. _box.appendChild(_iframe);
  1843. _box.appendChild(_jie);
  1844. _formdiv = new U.UF.UI.form(
  1845. "协同文档",
  1846. _box, {
  1847. "id": "doc",
  1848. "style": {
  1849. "width": "90%",
  1850. "height": "90%",
  1851. "overflow": 'hidden'
  1852. },
  1853. "onresize": function () { }
  1854. }, {
  1855. closecallback: function () { }
  1856. }, {
  1857. "style": {
  1858. "height": "36px"
  1859. }
  1860. }).form; //创建窗体
  1861. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1862. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1863. })
  1864. _taskbar = {
  1865. "id": str + _formdiv.id,
  1866. "style": {
  1867. "backgroundImage": "url(/img/icon/doc.png)"
  1868. },
  1869. "name": "协同文档",
  1870. "forms": _formdiv,
  1871. "click": function () {
  1872. U.MD.D.I.openApplication(str, obj, info);
  1873. }
  1874. }
  1875. break;
  1876. case "mindNetwork": //好友打开
  1877. _iframe = $$("iframe", {
  1878. "webkitallowfullscreen": "",
  1879. "mozallowfullscreen": "",
  1880. "allowfullscreen": "",
  1881. "frameborder": "no",
  1882. "border": "0",
  1883. "scrolling ": "no",
  1884. "style": {
  1885. "cssText": "border:0; width:100%; height:100%;"
  1886. },
  1887. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1888. })
  1889. _box.appendChild(_iframe);
  1890. _box.appendChild(_jie);
  1891. _formdiv = new U.UF.UI.form(
  1892. "思维网格",
  1893. _box, {
  1894. "id": "mindNetwork",
  1895. "style": {
  1896. "width": "90%",
  1897. "height": "90%",
  1898. "overflow": 'hidden'
  1899. },
  1900. "onresize": function () { }
  1901. }, {
  1902. closecallback: function () { }
  1903. }, {
  1904. "style": {
  1905. "height": "36px"
  1906. }
  1907. }).form; //创建窗体
  1908. _taskbar = {
  1909. "id": str + _formdiv.id,
  1910. "style": {
  1911. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1912. },
  1913. "name": "思维网格",
  1914. "forms": _formdiv,
  1915. "click": function () {
  1916. U.MD.D.I.openApplication(str, obj, info);
  1917. }
  1918. }
  1919. break;
  1920. case "courseDesign":
  1921. _iframe = $$("iframe", {
  1922. "webkitallowfullscreen": "",
  1923. "mozallowfullscreen": "",
  1924. "allowfullscreen": "",
  1925. "frameborder": "no",
  1926. "border": "0",
  1927. "scrolling ": "no",
  1928. "style": {
  1929. "cssText": "border:0; width:100%; height:100%;"
  1930. },
  1931. "src": "/course-design/index.html"
  1932. })
  1933. _box.appendChild(_iframe);
  1934. _box.appendChild(_jie);
  1935. _formdiv = new U.UF.UI.form(
  1936. "课程设计",
  1937. _box, {
  1938. "id": "courseDesign",
  1939. "style": {
  1940. "width": "90%",
  1941. "height": "90%",
  1942. "overflow": 'hidden'
  1943. },
  1944. "onresize": function () { }
  1945. }, {
  1946. closecallback: function () { }
  1947. }, {
  1948. "style": {
  1949. "height": "36px"
  1950. }
  1951. }).form; //创建窗体
  1952. _taskbar = {
  1953. "id": str + _formdiv.id,
  1954. "style": {
  1955. "backgroundImage": "url(/img/icon/courseDesign.png)"
  1956. },
  1957. "name": "课程设计",
  1958. "forms": _formdiv,
  1959. "click": function () {
  1960. U.MD.D.I.openApplication(str, obj, info);
  1961. }
  1962. }
  1963. break;
  1964. }
  1965. const script1 = document.createElement("script");
  1966. script1.type = "text/javascript";
  1967. script1.src =
  1968. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1969. const script2 = document.createElement("script");
  1970. script2.type = "text/javascript";
  1971. script2.src =
  1972. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1973. const script3 = document.createElement("script");
  1974. script3.type = "text/javascript";
  1975. script3.charset = "UTF-8";
  1976. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  1977. const script4 = document.createElement("script");
  1978. script4.type = "text/javascript";
  1979. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  1980. if (_iframe) {
  1981. if (str == 'doc') {
  1982. U.UF.DL.iframeLoad(_iframe, function () {
  1983. _iframe.contentWindow.U.MD.O.W.load();
  1984. _iframe.contentWindow.document.body.appendChild(script1);
  1985. _iframe.contentWindow.document.body.appendChild(script2);
  1986. // _iframe.contentWindow.document.body.appendChild(script3);
  1987. _iframe.contentWindow.document.body.appendChild(script4);
  1988. })
  1989. } else if (str == 'courseDesign') {
  1990. U.UF.DL.iframeLoad(_iframe, function () {
  1991. // _iframe.contentWindow.U.MD.O.W.load();
  1992. // _iframe.contentWindow.document.body.appendChild(script1);
  1993. _iframe.contentWindow.document.body.appendChild(script2);
  1994. _iframe.contentWindow.document.body.appendChild(script4);
  1995. })
  1996. } else {
  1997. _iframe.onload = () => {
  1998. _iframe.contentWindow.document.body.appendChild(script1);
  1999. _iframe.contentWindow.document.body.appendChild(script2);
  2000. // _iframe.contentWindow.document.body.appendChild(script3);
  2001. _iframe.contentWindow.document.body.appendChild(script4);
  2002. };
  2003. }
  2004. _jie.onclick = () => {
  2005. _loading.style.display = 'flex'
  2006. console.log(_loading);
  2007. var _ajs = _iframe.contentWindow.document.createElement("script");
  2008. _ajs.type = "text/javascript";
  2009. _ajs.innerHTML =
  2010. // 'console.log(' + _loading + ');\n' +
  2011. 'var _js = document.createElement("script");\n' +
  2012. '_js.type="text/javascript";\n' +
  2013. '_js.charset="UTF-8";\n' +
  2014. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2015. "_js.onload = function(){\n" +
  2016. ' var a = document.getElementsByTagName("img")\n' +
  2017. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2018. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2019. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2020. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2021. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2022. "beforeUpload_shishi(file," +
  2023. "'" +
  2024. _userid +
  2025. "'" +
  2026. ", " +
  2027. "'" +
  2028. cid +
  2029. "'" +
  2030. ", " +
  2031. "'" +
  2032. stage +
  2033. "'" +
  2034. ", " +
  2035. "'" +
  2036. task +
  2037. "'" +
  2038. ", " +
  2039. "'" +
  2040. tool +
  2041. "'" +
  2042. ", " +
  2043. "'" +
  2044. str + '_loadLi' +
  2045. "'" +
  2046. ")\n" +
  2047. " });\n" +
  2048. "}\n" +
  2049. "document.head.appendChild(_js);\n";
  2050. _iframe.contentWindow.document.head.appendChild(_ajs);
  2051. }
  2052. }
  2053. //U.MD.D.I.openClick(str);
  2054. //如果有任务栏信息
  2055. if (_taskbar) {
  2056. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2057. }
  2058. }