DeskTop.js 126 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193
  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. U.UF.F.topWindow(_formel);
  448. } else if (e.data.allScreen && e.data.allScreen == "4") {
  449. var _formel = document.getElementById("studyDetail");
  450. //如果最大化了,那么就把他缩小
  451. // if (_formel.ismaximize) {
  452. // return;
  453. // }
  454. // U.UF.F.windowZooming(_formel);
  455. U.UF.F.topWindow(_formel);
  456. } else if (e.data.allScreen && e.data.allScreen == "5") {
  457. var _formel = document.getElementById("studentStudy");
  458. // if (_formel.ismaximize) {
  459. // return;
  460. // }
  461. // U.UF.F.windowZooming(_formel);
  462. U.UF.F.topWindow(_formel);
  463. } else if (e.data.tools && e.data.tools == "1") {
  464. // U.MD.D.I.openApplication("whiteboard")
  465. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  466. } else if (e.data.tools && e.data.tools == "2") {
  467. U.MD.D.I.openApplication("note")
  468. } else if (e.data.tools && e.data.tools == "3") {
  469. // U.MD.D.I.openApplication("mind")
  470. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  471. } else if (e.data.tools && e.data.tools == "4") {
  472. U.MD.D.I.openApplication("investigation")
  473. } else if (e.data.tools && e.data.tools == "6") {
  474. // U.MD.D.I.openApplication("doc")
  475. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  476. } else if (e.data.tools && e.data.tools == "7") {
  477. // U.MD.D.I.openApplication("mindNetwork")
  478. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  479. } else if (e.data.tools && e.data.tools == "8") {
  480. U.MD.D.I.openApplication("library")
  481. } else if (e.data.tools && e.data.tools == "17") {
  482. U.MD.D.I.openApplication("stuLibrary")
  483. } else if (e.data.tools && e.data.tools == "18") {
  484. U.MD.D.I.openApplication("train")
  485. } else if (e.data.tools && e.data.tools == "21") {
  486. U.MD.D.I.openApplication("program")
  487. } else if (e.data.tools && e.data.tools == "22") {
  488. U.MD.D.I.openApplication("AIprogram2")
  489. } else if (e.data.tools && e.data.tools == "23") {
  490. U.MD.D.I.openApplication("Pythonprogram")
  491. } else if (e.data.tools && e.data.tools == "24") {
  492. U.MD.D.I.openApplication("AIprogram")
  493. } else if (e.data.tools && e.data.tools == "25") {
  494. U.MD.D.I.openApplication("sys")
  495. } else if (e.data.tools && e.data.tools == "26") {
  496. // U.MD.D.I.openApplication("courseDesign")
  497. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  498. } else if (e.data.tools && e.data.tools == "31") {
  499. U.MD.D.I.openApplication("netWorkPanel")
  500. } else if (e.data.tools && e.data.tools == "32") {
  501. U.MD.D.I.openApplication("codeEdit")
  502. } else if (e.data.tools && e.data.tools == "28") {
  503. U.MD.D.I.openApplication("translation")
  504. } else if (e.data.tools && e.data.tools == "37") {
  505. U.MD.D.I.openApplication("mohe")
  506. } else if (e.data.tools && e.data.tools == "38") {
  507. U.MD.D.I.openApplication("24game")
  508. } else if (e.data.tools && e.data.tools == "39") {
  509. U.MD.D.I.openApplication("GeoGebra")
  510. }
  511. });
  512. U.MD.D.I.selectUser = function () {
  513. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  514. if (res.value[0].length > 0) {
  515. US.userInfo = res.value[0][0];
  516. $(".userName")[0].innerHTML = US.userInfo.username;
  517. }
  518. }, [], { "type": "GET", "withCredentials": true });
  519. }
  520. U.MD.D.I.openInApplication = function (str, data, screenType) {
  521. var _userinfo = US.userInfo, //登录用户信息
  522. _userid = US.userInfo.userid, //登录用户id
  523. _oid = _userinfo.organizeid,
  524. _type = US.userInfo.type,
  525. _classId = US.userInfo.classid;
  526. switch (str) {
  527. case "studyDetail":
  528. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  529. setTimeout(() => {
  530. U.MD.U.L.login();
  531. }, 2000);
  532. } else {
  533. _formdiv = new U.UF.UI.form(
  534. "项目详情",
  535. $$("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 }), {
  536. "id": "studyDetail",
  537. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  538. "onresize": function () { }
  539. }, {
  540. closecallback: function () { }
  541. }, { "style": { "height": "36px" } }).form; //创建窗体
  542. _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); } }
  543. break;
  544. }
  545. }
  546. }
  547. U.MD.D.I.openApplication = function (str, obj, info) {
  548. obj = obj || {};
  549. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  550. _formdiv, //创建任务栏时同时弹出的窗体元素。
  551. _userinfo = US.userInfo, //登录用户信息
  552. _userid = obj.userid || US.userInfo.userid, //登录用户id
  553. _oid = obj.organizeid || _userinfo.organizeid,
  554. _type = US.userInfo.type,
  555. _org = US.userInfo.org,
  556. _classId = US.userInfo.classid,
  557. _TscreenType = 1
  558. _screenType = 2,
  559. _SscreenType = 3;
  560. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  561. switch (str) {
  562. case "studnetProject": //好友打开
  563. _formdiv = new U.UF.UI.form(
  564. "我的项目",
  565. $$("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 }), {
  566. "id": "studnetProject",
  567. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  568. "onresize": function () { }
  569. }, {
  570. closecallback: function () { }
  571. }, { "style": { "height": "36px" } }).form; //创建窗体
  572. _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); } }
  573. break;
  574. case "studentEvaluate": //好友打开
  575. _formdiv = new U.UF.UI.form(
  576. "我的评价",
  577. $$("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 }), {
  578. "id": "studentEvaluate",
  579. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  580. "onresize": function () { }
  581. }, {
  582. closecallback: function () { }
  583. }, { "style": { "height": "36px" } }).form; //创建窗体
  584. _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); } }
  585. break;
  586. case "my":
  587. _formdiv = new U.UF.UI.form(
  588. "我的资料",
  589. $$("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 }), {
  590. "id": "my",
  591. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  592. "onresize": function () { }
  593. }, {
  594. closecallback: function () { }
  595. }, { "style": { "height": "36px" } }).form; //创建窗体
  596. _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); } }
  597. break;
  598. case "program":
  599. _formdiv = new U.UF.UI.form(
  600. "编程平台",
  601. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  602. "id": "program",
  603. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  604. "onresize": function () { }
  605. }, {
  606. closecallback: function () { }
  607. }, { "style": { "height": "36px" } }).form; //创建窗体
  608. _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); } }
  609. break;
  610. case "library":
  611. _formdiv = new U.UF.UI.form(
  612. "素材库",
  613. $$("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 }), {
  614. "id": "library",
  615. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  616. "onresize": function () { }
  617. }, {
  618. closecallback: function () { }
  619. }, { "style": { "height": "36px" } }).form; //创建窗体
  620. _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); } }
  621. break;
  622. case "whiteboard":
  623. _formdiv = new U.UF.UI.form(
  624. "电子白板",
  625. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  626. "id": "whiteboard",
  627. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  628. "onresize": function () { }
  629. }, {
  630. closecallback: function () { }
  631. }, { "style": { "height": "36px" } }).form; //创建窗体
  632. _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); } }
  633. break;
  634. case "investigation":
  635. _formdiv = new U.UF.UI.form(
  636. "问卷调查",
  637. $$("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 }), {
  638. "id": "investigation",
  639. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  640. "onresize": function () { }
  641. }, {
  642. closecallback: function () { }
  643. }, { "style": { "height": "36px" } }).form; //创建窗体
  644. _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); } }
  645. break;
  646. case "note":
  647. _formdiv = new U.UF.UI.form(
  648. "便签分类",
  649. $$("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 }), {
  650. "id": "note",
  651. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  652. "onresize": function () { }
  653. }, {
  654. closecallback: function () { }
  655. }, { "style": { "height": "36px" } }).form; //创建窗体
  656. _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); } }
  657. break;
  658. // case "score":
  659. // _formdiv = new U.UF.UI.form(
  660. // "量规评分",
  661. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  662. // "id": "score",
  663. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  664. // "onresize": function() {}
  665. // }, {
  666. // closecallback: function() {}
  667. // }, { "style": { "height": "36px" } }).form; //创建窗体
  668. // _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); } }
  669. // break;
  670. case "mind":
  671. _formdiv = new U.UF.UI.form(
  672. "思维导图",
  673. $$("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"
  674. "id": "mind",
  675. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  676. "onresize": function () { }
  677. }, {
  678. closecallback: function () { }
  679. }, { "style": { "height": "36px" } }).form; //创建窗体
  680. _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); } }
  681. break;
  682. case "doc":
  683. // U.MD.D.I.isRoom();
  684. _formdiv = new U.UF.UI.form(
  685. "协同文档",
  686. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  687. "id": "doc",
  688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  689. "onresize": function () { }
  690. }, {
  691. closecallback: function () { }
  692. }, { "style": { "height": "36px" } }).form; //创建窗体
  693. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  694. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  695. // })
  696. _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); } }
  697. break;
  698. case "studentStudy":
  699. _formdiv = new U.UF.UI.form(
  700. "学习中心",
  701. $$("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
  702. "id": "studentStudy",
  703. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  704. "onresize": function () { }
  705. }, {
  706. closecallback: function () { }
  707. }, { "style": { "height": "36px" } }).form; //创建窗体
  708. _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); } }
  709. break;
  710. case "train": //好友打开
  711. _formdiv = new U.UF.UI.form(
  712. "训练平台",
  713. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  714. "id": "train",
  715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  716. "onresize": function () { }
  717. }, {
  718. closecallback: function () { }
  719. }, { "style": { "height": "36px" } }).form; //创建窗体
  720. _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); } }
  721. break;
  722. case "mindNetwork": //好友打开
  723. _formdiv = new U.UF.UI.form(
  724. "思维网格",
  725. $$("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 }), {
  726. "id": "mindNetwork",
  727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  728. "onresize": function () { }
  729. }, {
  730. closecallback: function () { }
  731. }, { "style": { "height": "36px" } }).form; //创建窗体
  732. _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); } }
  733. break;
  734. case "studentClassRoom": //好友打开
  735. _formdiv = new U.UF.UI.form(
  736. "实时课堂",
  737. $$("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 }), {
  738. "id": "studentClassRoom",
  739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  740. "onresize": function () { }
  741. }, {
  742. closecallback: function () { }
  743. }, { "style": { "height": "36px" } }).form; //创建窗体
  744. _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); } }
  745. setTimeout(() => {
  746. U.UF.F.windowZooming(_formdiv)
  747. }, 0);
  748. break;
  749. }
  750. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  751. switch (str) {
  752. case "studnetProject": //好友打开
  753. _formdiv = new U.UF.UI.form(
  754. "我的项目",
  755. $$("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 }), {
  756. "id": "studnetProject",
  757. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  758. "onresize": function () { }
  759. }, {
  760. closecallback: function () { }
  761. }, { "style": { "height": "36px" } }).form; //创建窗体
  762. _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); } }
  763. break;
  764. case "studentEvaluate": //好友打开
  765. _formdiv = new U.UF.UI.form(
  766. "我的评价",
  767. $$("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 }), {
  768. "id": "studentEvaluate",
  769. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  770. "onresize": function () { }
  771. }, {
  772. closecallback: function () { }
  773. }, { "style": { "height": "36px" } }).form; //创建窗体
  774. _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); } }
  775. break;
  776. case "my":
  777. _formdiv = new U.UF.UI.form(
  778. "我的资料",
  779. $$("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 }), {
  780. "id": "my",
  781. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  782. "onresize": function () { }
  783. }, {
  784. closecallback: function () { }
  785. }, { "style": { "height": "36px" } }).form; //创建窗体
  786. _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); } }
  787. break;
  788. case "program":
  789. _formdiv = new U.UF.UI.form(
  790. "编程平台",
  791. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  792. "id": "program",
  793. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  794. "onresize": function () { }
  795. }, {
  796. closecallback: function () { }
  797. }, { "style": { "height": "36px" } }).form; //创建窗体
  798. _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); } }
  799. break;
  800. case "library":
  801. _formdiv = new U.UF.UI.form(
  802. "素材库",
  803. $$("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 }), {
  804. "id": "library",
  805. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  806. "onresize": function () { }
  807. }, {
  808. closecallback: function () { }
  809. }, { "style": { "height": "36px" } }).form; //创建窗体
  810. _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); } }
  811. break;
  812. case "whiteboard":
  813. _formdiv = new U.UF.UI.form(
  814. "电子白板",
  815. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  816. "id": "whiteboard",
  817. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  818. "onresize": function () { }
  819. }, {
  820. closecallback: function () { }
  821. }, { "style": { "height": "36px" } }).form; //创建窗体
  822. _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); } }
  823. break;
  824. case "investigation":
  825. _formdiv = new U.UF.UI.form(
  826. "问卷调查",
  827. $$("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 }), {
  828. "id": "investigation",
  829. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  830. "onresize": function () { }
  831. }, {
  832. closecallback: function () { }
  833. }, { "style": { "height": "36px" } }).form; //创建窗体
  834. _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); } }
  835. break;
  836. case "note":
  837. _formdiv = new U.UF.UI.form(
  838. "便签分类",
  839. $$("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 }), {
  840. "id": "note",
  841. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  842. "onresize": function () { }
  843. }, {
  844. closecallback: function () { }
  845. }, { "style": { "height": "36px" } }).form; //创建窗体
  846. _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); } }
  847. break;
  848. // case "score":
  849. // _formdiv = new U.UF.UI.form(
  850. // "量规评分",
  851. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  852. // "id": "score",
  853. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  854. // "onresize": function() {}
  855. // }, {
  856. // closecallback: function() {}
  857. // }, { "style": { "height": "36px" } }).form; //创建窗体
  858. // _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); } }
  859. // break;
  860. case "mind":
  861. _formdiv = new U.UF.UI.form(
  862. "思维导图",
  863. $$("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"
  864. "id": "mind",
  865. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  866. "onresize": function () { }
  867. }, {
  868. closecallback: function () { }
  869. }, { "style": { "height": "36px" } }).form; //创建窗体
  870. _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); } }
  871. break;
  872. case "doc":
  873. // U.MD.D.I.isRoom();
  874. _formdiv = new U.UF.UI.form(
  875. "协同文档",
  876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  877. "id": "doc",
  878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  879. "onresize": function () { }
  880. }, {
  881. closecallback: function () { }
  882. }, { "style": { "height": "36px" } }).form; //创建窗体
  883. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  884. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  885. })
  886. _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); } }
  887. break;
  888. case "train": //好友打开
  889. _formdiv = new U.UF.UI.form(
  890. "训练平台",
  891. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  892. "id": "train",
  893. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  894. "onresize": function () { }
  895. }, {
  896. closecallback: function () { }
  897. }, { "style": { "height": "36px" } }).form; //创建窗体
  898. _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); } }
  899. break;
  900. case "studentStudy":
  901. _formdiv = new U.UF.UI.form(
  902. "学习中心",
  903. $$("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
  904. "id": "studentStudy",
  905. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  906. "onresize": function () { }
  907. }, {
  908. closecallback: function () { }
  909. }, { "style": { "height": "36px" } }).form; //创建窗体
  910. _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); } }
  911. break;
  912. case "mindNetwork": //好友打开
  913. _formdiv = new U.UF.UI.form(
  914. "思维网格",
  915. $$("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 }), {
  916. "id": "mindNetwork",
  917. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  918. "onresize": function () { }
  919. }, {
  920. closecallback: function () { }
  921. }, { "style": { "height": "36px" } }).form; //创建窗体
  922. _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); } }
  923. break;
  924. case "studentClassRoom": //好友打开
  925. _formdiv = new U.UF.UI.form(
  926. "实时课堂",
  927. $$("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 }), {
  928. "id": "studentClassRoom",
  929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  930. "onresize": function () { }
  931. }, {
  932. closecallback: function () { }
  933. }, { "style": { "height": "36px" } }).form; //创建窗体
  934. _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); } }
  935. setTimeout(() => {
  936. U.UF.F.windowZooming(_formdiv)
  937. }, 0);
  938. break;
  939. }
  940. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  941. //选择应用处理
  942. switch (str) {
  943. case "project": //好友打开
  944. _formdiv = new U.UF.UI.form(
  945. "项目管理",
  946. $$("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 }), {
  947. "id": "project",
  948. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  949. "onresize": function () { }
  950. }, {
  951. closecallback: function () { }
  952. }, { "style": { "height": "36px" } }).form; //创建窗体
  953. _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); } }
  954. break;
  955. case "student":
  956. _formdiv = new U.UF.UI.form(
  957. "学生管理",
  958. $$("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 }), {
  959. "id": "student",
  960. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  961. "onresize": function () { }
  962. }, {
  963. closecallback: function () { }
  964. }, { "style": { "height": "36px" } }).form; //创建窗体
  965. _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); } }
  966. break;
  967. case "evaluate":
  968. _formdiv = new U.UF.UI.form(
  969. "学生评价",
  970. $$("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 }), {
  971. "id": "evaluate",
  972. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  973. "onresize": function () { }
  974. }, {
  975. closecallback: function () { }
  976. }, { "style": { "height": "36px" } }).form; //创建窗体
  977. _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); } }
  978. break;
  979. case "sys":
  980. _formdiv = new U.UF.UI.form(
  981. "目标管理",
  982. $$("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 }), {
  983. "id": "sys",
  984. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  985. "onresize": function () { }
  986. }, {
  987. closecallback: function () { }
  988. }, { "style": { "height": "36px" } }).form; //创建窗体
  989. _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); } }
  990. break;
  991. case "courseDesign":
  992. _formdiv = new U.UF.UI.form(
  993. "课程设计",
  994. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  995. "id": "courseDesign",
  996. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  997. "onresize": function () { }
  998. }, {
  999. closecallback: function () { }
  1000. }, { "style": { "height": "36px" } }).form; //创建窗体
  1001. _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); } }
  1002. break;
  1003. case "program":
  1004. _formdiv = new U.UF.UI.form(
  1005. "编程平台",
  1006. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1007. "id": "program",
  1008. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1009. "onresize": function () { }
  1010. }, {
  1011. closecallback: function () { }
  1012. }, { "style": { "height": "36px" } }).form; //创建窗体
  1013. _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); } }
  1014. break;
  1015. case "class":
  1016. _formdiv = new U.UF.UI.form(
  1017. "班级管理",
  1018. $$("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 }), {
  1019. "id": "class",
  1020. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1021. "onresize": function () { }
  1022. }, {
  1023. closecallback: function () { }
  1024. }, { "style": { "height": "36px" } }).form; //创建窗体
  1025. _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); } }
  1026. break;
  1027. case "my":
  1028. _formdiv = new U.UF.UI.form(
  1029. "我的资料",
  1030. $$("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 }), {
  1031. "id": "my",
  1032. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1033. "onresize": function () { }
  1034. }, {
  1035. closecallback: function () { }
  1036. }, { "style": { "height": "36px" } }).form; //创建窗体
  1037. _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); } }
  1038. break;
  1039. case "notice":
  1040. _formdiv = new U.UF.UI.form(
  1041. "通知公告",
  1042. $$("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 }), {
  1043. "id": "notice",
  1044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1045. "onresize": function () { }
  1046. }, {
  1047. closecallback: function () { }
  1048. }, { "style": { "height": "36px" } }).form; //创建窗体
  1049. _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); } }
  1050. break;
  1051. case "library":
  1052. _formdiv = new U.UF.UI.form(
  1053. "素材库",
  1054. $$("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 }), {
  1055. "id": "library",
  1056. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1057. "onresize": function () { }
  1058. }, {
  1059. closecallback: function () { }
  1060. }, { "style": { "height": "36px" } }).form; //创建窗体
  1061. _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); } }
  1062. break;
  1063. case "whiteboard":
  1064. _formdiv = new U.UF.UI.form(
  1065. "电子白板",
  1066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1067. "id": "whiteboard",
  1068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1069. "onresize": function () { }
  1070. }, {
  1071. closecallback: function () { }
  1072. }, { "style": { "height": "36px" } }).form; //创建窗体
  1073. _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); } }
  1074. break;
  1075. case "investigation":
  1076. _formdiv = new U.UF.UI.form(
  1077. "问卷调查",
  1078. $$("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 }), {
  1079. "id": "investigation",
  1080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1081. "onresize": function () { }
  1082. }, {
  1083. closecallback: function () { }
  1084. }, { "style": { "height": "36px" } }).form; //创建窗体
  1085. _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); } }
  1086. break;
  1087. case "note":
  1088. _formdiv = new U.UF.UI.form(
  1089. "便签分类",
  1090. $$("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 }), {
  1091. "id": "note",
  1092. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1093. "onresize": function () { }
  1094. }, {
  1095. closecallback: function () { }
  1096. }, { "style": { "height": "36px" } }).form; //创建窗体
  1097. _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); } }
  1098. break;
  1099. // case "score":
  1100. // _formdiv = new U.UF.UI.form(
  1101. // "量规评分",
  1102. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1103. // "id": "score",
  1104. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1105. // "onresize": function() {}
  1106. // }, {
  1107. // closecallback: function() {}
  1108. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1109. // _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); } }
  1110. // break;
  1111. case "mind":
  1112. _formdiv = new U.UF.UI.form(
  1113. "思维导图",
  1114. $$("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"
  1115. "id": "mind",
  1116. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1117. "onresize": function () { }
  1118. }, {
  1119. closecallback: function () { }
  1120. }, { "style": { "height": "36px" } }).form; //创建窗体
  1121. _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); } }
  1122. break;
  1123. case "doc":
  1124. // U.MD.D.I.isRoom();
  1125. _formdiv = new U.UF.UI.form(
  1126. "协同文档",
  1127. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1128. "id": "doc",
  1129. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1130. "onresize": function () { }
  1131. }, {
  1132. closecallback: function () { }
  1133. }, { "style": { "height": "36px" } }).form; //创建窗体
  1134. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1135. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1136. })
  1137. _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); } }
  1138. break;
  1139. case "study":
  1140. _formdiv = new U.UF.UI.form(
  1141. "学习中心",
  1142. $$("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
  1143. "id": "study",
  1144. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1145. "onresize": function () { }
  1146. }, {
  1147. closecallback: function () { }
  1148. }, { "style": { "height": "36px" } }).form; //创建窗体
  1149. _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); } }
  1150. break;
  1151. case "mindNetwork": //好友打开
  1152. _formdiv = new U.UF.UI.form(
  1153. "思维网格",
  1154. $$("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 }), {
  1155. "id": "mindNetwork",
  1156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1157. "onresize": function () { }
  1158. }, {
  1159. closecallback: function () { }
  1160. }, { "style": { "height": "36px" } }).form; //创建窗体
  1161. _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); } }
  1162. break;
  1163. case "train": //好友打开
  1164. _formdiv = new U.UF.UI.form(
  1165. "训练平台",
  1166. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1167. "id": "mindNetwork",
  1168. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1169. "onresize": function () { }
  1170. }, {
  1171. closecallback: function () { }
  1172. }, { "style": { "height": "36px" } }).form; //创建窗体
  1173. _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); } }
  1174. break;
  1175. case "teacherClassRoom": //好友打开
  1176. _formdiv = new U.UF.UI.form(
  1177. "实时课堂",
  1178. $$("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 }), {
  1179. "id": "teacherClassRoom",
  1180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1181. "onresize": function () { }
  1182. }, {
  1183. closecallback: function () { }
  1184. }, { "style": { "height": "36px" } }).form; //创建窗体
  1185. _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); } }
  1186. setTimeout(() => {
  1187. U.UF.F.windowZooming(_formdiv)
  1188. }, 0);
  1189. break;
  1190. }
  1191. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1192. switch (str) {
  1193. case "project": //好友打开
  1194. _formdiv = new U.UF.UI.form(
  1195. "项目管理",
  1196. $$("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 }), {
  1197. "id": "project",
  1198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1199. "onresize": function () { }
  1200. }, {
  1201. closecallback: function () { }
  1202. }, { "style": { "height": "36px" } }).form; //创建窗体
  1203. _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); } }
  1204. break;
  1205. case "evaluate":
  1206. _formdiv = new U.UF.UI.form(
  1207. "学生评价",
  1208. $$("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 }), {
  1209. "id": "evaluate",
  1210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1211. "onresize": function () { }
  1212. }, {
  1213. closecallback: function () { }
  1214. }, { "style": { "height": "36px" } }).form; //创建窗体
  1215. _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); } }
  1216. break;
  1217. case "notice":
  1218. _formdiv = new U.UF.UI.form(
  1219. "通知公告",
  1220. $$("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 }), {
  1221. "id": "notice",
  1222. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1223. "onresize": function () { }
  1224. }, {
  1225. closecallback: function () { }
  1226. }, { "style": { "height": "36px" } }).form; //创建窗体
  1227. _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); } }
  1228. break;
  1229. case "stuLibrary":
  1230. _formdiv = new U.UF.UI.form(
  1231. "学习资料",
  1232. $$("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 }), {
  1233. "id": "stuLibrary",
  1234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1235. "onresize": function () { }
  1236. }, {
  1237. closecallback: function () { }
  1238. }, { "style": { "height": "36px" } }).form; //创建窗体
  1239. _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); } }
  1240. break;
  1241. case "program":
  1242. _formdiv = new U.UF.UI.form(
  1243. "编程平台",
  1244. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1245. "id": "program",
  1246. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1247. "onresize": function () { }
  1248. }, {
  1249. closecallback: function () { }
  1250. }, { "style": { "height": "36px" } }).form; //创建窗体
  1251. _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); } }
  1252. break;
  1253. case "whiteboard":
  1254. _formdiv = new U.UF.UI.form(
  1255. "电子白板",
  1256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1257. "id": "whiteboard",
  1258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1259. "onresize": function () { }
  1260. }, {
  1261. closecallback: function () { }
  1262. }, { "style": { "height": "36px" } }).form; //创建窗体
  1263. _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); } }
  1264. break;
  1265. case "investigation":
  1266. _formdiv = new U.UF.UI.form(
  1267. "问卷调查",
  1268. $$("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 }), {
  1269. "id": "investigation",
  1270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1271. "onresize": function () { }
  1272. }, {
  1273. closecallback: function () { }
  1274. }, { "style": { "height": "36px" } }).form; //创建窗体
  1275. _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); } }
  1276. break;
  1277. case "mind":
  1278. _formdiv = new U.UF.UI.form(
  1279. "思维导图",
  1280. $$("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"
  1281. "id": "mind",
  1282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1283. "onresize": function () { }
  1284. }, {
  1285. closecallback: function () { }
  1286. }, { "style": { "height": "36px" } }).form; //创建窗体
  1287. _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); } }
  1288. break;
  1289. case "doc":
  1290. // U.MD.D.I.isRoom();
  1291. _formdiv = new U.UF.UI.form(
  1292. "协同文档",
  1293. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1294. "id": "doc",
  1295. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1296. "onresize": function () { }
  1297. }, {
  1298. closecallback: function () { }
  1299. }, { "style": { "height": "36px" } }).form; //创建窗体
  1300. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1301. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1302. })
  1303. _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); } }
  1304. break;
  1305. case "study":
  1306. _formdiv = new U.UF.UI.form(
  1307. "学习中心",
  1308. $$("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
  1309. "id": "study",
  1310. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1311. "onresize": function () { }
  1312. }, {
  1313. closecallback: function () { }
  1314. }, { "style": { "height": "36px" } }).form; //创建窗体
  1315. _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); } }
  1316. break;
  1317. case "mindNetwork": //好友打开
  1318. _formdiv = new U.UF.UI.form(
  1319. "思维网格",
  1320. $$("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 }), {
  1321. "id": "mindNetwork",
  1322. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1323. "onresize": function () { }
  1324. }, {
  1325. closecallback: function () { }
  1326. }, { "style": { "height": "36px" } }).form; //创建窗体
  1327. _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); } }
  1328. break;
  1329. case "train": //好友打开
  1330. _formdiv = new U.UF.UI.form(
  1331. "训练平台",
  1332. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1333. "id": "train",
  1334. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1335. "onresize": function () { }
  1336. }, {
  1337. closecallback: function () { }
  1338. }, { "style": { "height": "36px" } }).form; //创建窗体
  1339. _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); } }
  1340. break;
  1341. case "sys":
  1342. _formdiv = new U.UF.UI.form(
  1343. "目标管理",
  1344. $$("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 }), {
  1345. "id": "sys",
  1346. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1347. "onresize": function () { }
  1348. }, {
  1349. closecallback: function () { }
  1350. }, { "style": { "height": "36px" } }).form; //创建窗体
  1351. _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); } }
  1352. break;
  1353. case "courseDesign":
  1354. _formdiv = new U.UF.UI.form(
  1355. "课程设计",
  1356. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  1357. "id": "courseDesign",
  1358. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1359. "onresize": function () { }
  1360. }, {
  1361. closecallback: function () { }
  1362. }, { "style": { "height": "36px" } }).form; //创建窗体
  1363. _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); } }
  1364. break;
  1365. }
  1366. } else if (!_type) {
  1367. switch (str) {
  1368. case "my":
  1369. _formdiv = new U.UF.UI.form(
  1370. "我的资料",
  1371. $$("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 }), {
  1372. "id": "my",
  1373. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1374. "onresize": function () { }
  1375. }, {
  1376. closecallback: function () { }
  1377. }, { "style": { "height": "36px" } }).form; //创建窗体
  1378. _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); } }
  1379. break;
  1380. }
  1381. }
  1382. switch (str) {
  1383. // AIprogram2 AI体验 aihub.cocorobo.cn
  1384. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1385. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1386. case "AIprogram2": //AI体验
  1387. _formdiv = new U.UF.UI.form(
  1388. "AI体验",
  1389. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1390. "id": "AIprogram2",
  1391. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1392. "onresize": function () { }
  1393. }, {
  1394. closecallback: function () { }
  1395. }, { "style": { "height": "36px" } }).form; //创建窗体
  1396. _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); } }
  1397. break;
  1398. case "Pythonprogram": //python编程
  1399. _formdiv = new U.UF.UI.form(
  1400. "Python编程",
  1401. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1402. "id": "Pythonprogram",
  1403. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1404. "onresize": function () { }
  1405. }, {
  1406. closecallback: function () { }
  1407. }, { "style": { "height": "36px" } }).form; //创建窗体
  1408. _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); } }
  1409. break;
  1410. case "AIprogram": //ai编程
  1411. _formdiv = new U.UF.UI.form(
  1412. "AI编程平台",
  1413. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1414. "id": "AIprogram",
  1415. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1416. "onresize": function () { }
  1417. }, {
  1418. closecallback: function () { }
  1419. }, { "style": { "height": "36px" } }).form; //创建窗体
  1420. _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); } }
  1421. break;
  1422. case "resources": //国家教育
  1423. _formdiv = new U.UF.UI.form(
  1424. "国家教育",
  1425. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1426. "id": "resources",
  1427. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1428. "onresize": function () { }
  1429. }, {
  1430. closecallback: function () { }
  1431. }, { "style": { "height": "36px" } }).form; //创建窗体
  1432. _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); } }
  1433. break;
  1434. case "codeEdit": //源码编辑
  1435. _formdiv = new U.UF.UI.form(
  1436. "源码编辑",
  1437. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1438. "id": "codeEdit",
  1439. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1440. "onresize": function () { }
  1441. }, {
  1442. closecallback: function () { }
  1443. }, { "style": { "height": "36px" } }).form; //创建窗体
  1444. _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); } }
  1445. break; //
  1446. case "MindMap": //MindMap
  1447. _formdiv = new U.UF.UI.form(
  1448. "MindMap",
  1449. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1450. "id": "MindMap",
  1451. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1452. "onresize": function () { }
  1453. }, {
  1454. closecallback: function () { }
  1455. }, { "style": { "height": "36px" } }).form; //创建窗体
  1456. _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); } }
  1457. break;
  1458. case "netWorkPanel": //netWorkPanel
  1459. _formdiv = new U.UF.UI.form(
  1460. "netWorkPanel",
  1461. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1462. "id": "netWorkPanel",
  1463. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1464. "onresize": function () { }
  1465. }, {
  1466. closecallback: function () { }
  1467. }, { "style": { "height": "36px" } }).form; //创建窗体
  1468. _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); } }
  1469. break;
  1470. case "GeoGebra": //GeoGebra
  1471. _formdiv = new U.UF.UI.form(
  1472. "GeoGebra",
  1473. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1474. "id": "GeoGebra",
  1475. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1476. "onresize": function () { }
  1477. }, {
  1478. closecallback: function () { }
  1479. }, { "style": { "height": "36px" } }).form; //创建窗体
  1480. _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); } }
  1481. break;
  1482. case "translation": //翻译
  1483. _formdiv = new U.UF.UI.form(
  1484. "翻译",
  1485. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1486. "id": "translation",
  1487. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1488. "onresize": function () { }
  1489. }, {
  1490. closecallback: function () { }
  1491. }, { "style": { "height": "36px" } }).form; //创建窗体
  1492. _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); } }
  1493. break;
  1494. case "mohe": //魔盒
  1495. _formdiv = new U.UF.UI.form(
  1496. "魔盒识字",
  1497. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1498. "id": "mohe",
  1499. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1500. "onresize": function () { }
  1501. }, {
  1502. closecallback: function () { }
  1503. }, { "style": { "height": "36px" } }).form; //创建窗体
  1504. _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); } }
  1505. break;
  1506. case "24game": //24点
  1507. _formdiv = new U.UF.UI.form(
  1508. "24点",
  1509. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1510. "id": "24game",
  1511. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1512. "onresize": function () { }
  1513. }, {
  1514. closecallback: function () { }
  1515. }, { "style": { "height": "36px" } }).form; //创建窗体
  1516. _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); } }
  1517. break;
  1518. case "case":
  1519. _formdiv = new U.UF.UI.form(
  1520. "项目进展",
  1521. $$("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 }), {
  1522. "id": "evaluate",
  1523. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1524. "onresize": function () { }
  1525. }, {
  1526. closecallback: function () { }
  1527. }, { "style": { "height": "36px" } }).form; //创建窗体
  1528. _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); } }
  1529. break;
  1530. }
  1531. //U.MD.D.I.openClick(str);
  1532. //如果有任务栏信息
  1533. if (_taskbar) {
  1534. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1535. }
  1536. }
  1537. // U.MD.D.I.openClick = function(str){
  1538. // var click = '';
  1539. // switch(str){
  1540. // case 'friend':
  1541. // click = '我的好友';
  1542. // break;
  1543. // case 'domain':
  1544. // click = '域名管理';
  1545. // break;
  1546. // case 'disk':
  1547. // click = '我的云盘';
  1548. // break;
  1549. // case 'word':
  1550. // click = 'Word';
  1551. // break;
  1552. // case 'excel':
  1553. // click = 'Execl';
  1554. // break;
  1555. // case 'txt':
  1556. // click = '文本文件';
  1557. // break;
  1558. // case 'lookupFriend':
  1559. // click = '查找好友';
  1560. // break;
  1561. // case 'ftp':
  1562. // click = 'FTP';
  1563. // break;
  1564. // case 'group':
  1565. // click = '群组';
  1566. // break;
  1567. // case 'set':
  1568. // click = '我的设置';
  1569. // break;
  1570. // case 'systemSet':
  1571. // click = '系统设置';
  1572. // break;
  1573. // case 'boomYun':
  1574. // click = '互联办公';
  1575. // break;
  1576. // case 'xz':
  1577. // click = '云端下载';
  1578. // break;
  1579. // case 'client':
  1580. // click = '有思浏览器';
  1581. // break;
  1582. // case 'backEndProgramming':
  1583. // click = '在线后台编程';
  1584. // break;
  1585. // case 'frontEndProgramming':
  1586. // click = '在线前端编程';
  1587. // break;
  1588. // default: break;
  1589. // }
  1590. // if(U.MD.D.I.Ip && click){
  1591. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1592. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1593. // })
  1594. // }
  1595. // }
  1596. /**
  1597. *函数作用:ajax简易函数,使用post格式
  1598. *@param url {data} 后台地址
  1599. *@param data {data} 参数json
  1600. *@param fn {data} 回调函数
  1601. *
  1602. */
  1603. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1604. // var xhr = new XMLHttpRequest();
  1605. // xhr.open("GET",url,true);
  1606. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1607. // xhr.onreadystatechange = function(){
  1608. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1609. // fn.call(this,xhr.responseText);
  1610. // }
  1611. // };
  1612. // xhr.send();
  1613. // }
  1614. /*判断是否是内网IP*/
  1615. // U.MD.D.I.isInnerIPFn = function(str){
  1616. // var curPageUrl = str;
  1617. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1618. // curPageUrl =curPageUrl.replace(reg1,'');
  1619. // // console.log('curPageUrl-1 '+curPageUrl);
  1620. // var reg2 = /\:+/g;//替换冒号为一点
  1621. // curPageUrl =curPageUrl.replace(reg2,'.');
  1622. // // console.log('curPageUrl-2 '+curPageUrl);
  1623. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1624. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1625. // if(curPageUrl[2] != '16'){
  1626. // return ipAddress;
  1627. // }else{
  1628. // return false;
  1629. // }
  1630. // }
  1631. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1632. // //compatibility for firefox and chrome
  1633. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1634. // var pc = new myPeerConnection({
  1635. // iceServers: []
  1636. // }),
  1637. // noop = function() {},
  1638. // localIPs = {},
  1639. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1640. // key;
  1641. // function iterateIP(ip) {
  1642. // if (!localIPs[ip]) onNewIP(ip);
  1643. // localIPs[ip] = true;
  1644. // }
  1645. // //create a bogus data channel
  1646. // pc.createDataChannel("");
  1647. // // create offer and set local description
  1648. // pc.createOffer().then(function(sdp) {
  1649. // sdp.sdp.split('\n').forEach(function(line) {
  1650. // if (line.indexOf('candidate') < 0) return;
  1651. // line.match(ipRegex).forEach(iterateIP);
  1652. // });
  1653. // pc.setLocalDescription(sdp, noop, noop);
  1654. // }).catch(function(reason) {
  1655. // // An error occurred, so handle the failure to connect
  1656. // });
  1657. // //sten for candidate events
  1658. // pc.onicecandidate = function(ice) {
  1659. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1660. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1661. // };
  1662. // }
  1663. // U.MD.D.I.getUserIpBool = function(callback){
  1664. // U.MD.D.I.getUserIP(function(ip){
  1665. // alert("Got IP! :" + ip);
  1666. // });
  1667. //}
  1668. //#endregion
  1669. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  1670. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1671. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1672. _userinfo = US.userInfo, //登录用户信息
  1673. _userid = US.userInfo.userid //登录用户id
  1674. let _iframe;
  1675. var _jie = $$("div", {
  1676. "style": {
  1677. "position": "absolute",
  1678. "bottom": "50px",
  1679. "right": "50px",
  1680. "zIndex": "9999",
  1681. "backgroundColor": "#2268bc",
  1682. "color": "#fff",
  1683. "padding": "12px 20px",
  1684. "cursor": "pointer",
  1685. "borderRadius": "4px",
  1686. },
  1687. "innerHTML": "提交作业"
  1688. })
  1689. let _loading = document.createElement('div')
  1690. _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;"
  1691. // _loading.id = "";
  1692. let _lchild = document.createElement('div')
  1693. let _limg = document.createElement('img')
  1694. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1695. _limg.style = "width: 26px;margin-right: 10px;"
  1696. _lchild.appendChild(_limg)
  1697. let _lspan = document.createElement('span')
  1698. _lspan.innerHTML = "上传中..."
  1699. _lchild.appendChild(_lspan)
  1700. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1701. _loading.appendChild(_lchild)
  1702. var _box = $$('div', {
  1703. "style": {
  1704. "position": "relative",
  1705. "width": "100%",
  1706. "height": "100%",
  1707. },
  1708. })
  1709. _box.appendChild(_loading)
  1710. _box.id = str + '_loadLi'
  1711. switch (str) {
  1712. case "whiteboard":
  1713. _iframe = $$("iframe", {
  1714. "frameborder": "no",
  1715. "border": "0",
  1716. "scrolling ": "no",
  1717. "style": {
  1718. "cssText": "border:0;width:100%;height:100%"
  1719. },
  1720. "src": "https://iwb.cocorobo.cn/"
  1721. })
  1722. _box.appendChild(_iframe);
  1723. _box.appendChild(_jie);
  1724. _formdiv = new U.UF.UI.form(
  1725. "电子白板",
  1726. _box, {
  1727. "id": "whiteboard",
  1728. "style": {
  1729. "width": "90%",
  1730. "height": "90%",
  1731. "overflow": 'hidden'
  1732. },
  1733. "onresize": function () { }
  1734. }, {
  1735. closecallback: function () { }
  1736. }, {
  1737. "style": {
  1738. "height": "36px"
  1739. }
  1740. }).form; //创建窗体
  1741. _taskbar = {
  1742. "id": str + _formdiv.id,
  1743. "style": {
  1744. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1745. },
  1746. "name": "电子白板",
  1747. "forms": _formdiv,
  1748. "click": function () {
  1749. U.MD.D.I.openApplication(str, obj, info);
  1750. }
  1751. }
  1752. break;
  1753. case "mind":
  1754. _iframe = $$("iframe", {
  1755. "frameborder": "no",
  1756. "border": "0",
  1757. "scrolling ": "no",
  1758. "style": {
  1759. "cssText": "border:0;width:100%;height:100%"
  1760. },
  1761. "src": "/kityminder-editor/dist/index.html"
  1762. })
  1763. _box.appendChild(_iframe);
  1764. _box.appendChild(_jie);
  1765. _formdiv = new U.UF.UI.form(
  1766. "思维导图",
  1767. _box, { //"/jsmind/example/demo.html"
  1768. "id": "mind",
  1769. "style": {
  1770. "width": "90%",
  1771. "height": "90%",
  1772. "overflow": 'hidden'
  1773. },
  1774. "onresize": function () { }
  1775. }, {
  1776. closecallback: function () { }
  1777. }, {
  1778. "style": {
  1779. "height": "36px"
  1780. }
  1781. }).form; //创建窗体
  1782. _taskbar = {
  1783. "id": str + _formdiv.id,
  1784. "style": {
  1785. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1786. },
  1787. "name": "思维导图",
  1788. "forms": _formdiv,
  1789. "click": function () {
  1790. U.MD.D.I.openApplication(str, obj, info);
  1791. }
  1792. }
  1793. break;
  1794. case "MindMap":
  1795. _iframe = $$("iframe", {
  1796. "frameborder": "no",
  1797. "border": "0",
  1798. "scrolling ": "no",
  1799. "style": {
  1800. "cssText": "border:0;width:100%;height:100%"
  1801. },
  1802. "src": "//cloud.cocorobo.cn/mind/"
  1803. })
  1804. _box.appendChild(_iframe);
  1805. _box.appendChild(_jie);
  1806. _formdiv = new U.UF.UI.form(
  1807. "思维导图",
  1808. _box, { //"/jsmind/example/demo.html"
  1809. "id": "mind",
  1810. "style": {
  1811. "width": "90%",
  1812. "height": "90%",
  1813. "overflow": 'hidden'
  1814. },
  1815. "onresize": function () { }
  1816. }, {
  1817. closecallback: function () { }
  1818. }, {
  1819. "style": {
  1820. "height": "36px"
  1821. }
  1822. }).form; //创建窗体
  1823. _taskbar = {
  1824. "id": str + _formdiv.id,
  1825. "style": {
  1826. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1827. },
  1828. "name": "思维导图",
  1829. "forms": _formdiv,
  1830. "click": function () {
  1831. U.MD.D.I.openApplication(str, obj, info);
  1832. }
  1833. }
  1834. break;
  1835. case "doc":
  1836. _iframe = $$("iframe", {
  1837. "frameborder": "no",
  1838. "border": "0",
  1839. "scrolling ": "no",
  1840. "style": {
  1841. "cssText": "border:0;width:100%;height:100%"
  1842. },
  1843. "src": "/Office/Word/WordEditArea.htm"
  1844. })
  1845. _box.appendChild(_iframe);
  1846. _box.appendChild(_jie);
  1847. _formdiv = new U.UF.UI.form(
  1848. "协同文档",
  1849. _box, {
  1850. "id": "doc",
  1851. "style": {
  1852. "width": "90%",
  1853. "height": "90%",
  1854. "overflow": 'hidden'
  1855. },
  1856. "onresize": function () { }
  1857. }, {
  1858. closecallback: function () { }
  1859. }, {
  1860. "style": {
  1861. "height": "36px"
  1862. }
  1863. }).form; //创建窗体
  1864. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1865. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1866. })
  1867. _taskbar = {
  1868. "id": str + _formdiv.id,
  1869. "style": {
  1870. "backgroundImage": "url(/img/icon/doc.png)"
  1871. },
  1872. "name": "协同文档",
  1873. "forms": _formdiv,
  1874. "click": function () {
  1875. U.MD.D.I.openApplication(str, obj, info);
  1876. }
  1877. }
  1878. break;
  1879. case "mindNetwork": //好友打开
  1880. _iframe = $$("iframe", {
  1881. "webkitallowfullscreen": "",
  1882. "mozallowfullscreen": "",
  1883. "allowfullscreen": "",
  1884. "frameborder": "no",
  1885. "border": "0",
  1886. "scrolling ": "no",
  1887. "style": {
  1888. "cssText": "border:0; width:100%; height:100%;"
  1889. },
  1890. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1891. })
  1892. _box.appendChild(_iframe);
  1893. _box.appendChild(_jie);
  1894. _formdiv = new U.UF.UI.form(
  1895. "思维网格",
  1896. _box, {
  1897. "id": "mindNetwork",
  1898. "style": {
  1899. "width": "90%",
  1900. "height": "90%",
  1901. "overflow": 'hidden'
  1902. },
  1903. "onresize": function () { }
  1904. }, {
  1905. closecallback: function () { }
  1906. }, {
  1907. "style": {
  1908. "height": "36px"
  1909. }
  1910. }).form; //创建窗体
  1911. _taskbar = {
  1912. "id": str + _formdiv.id,
  1913. "style": {
  1914. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1915. },
  1916. "name": "思维网格",
  1917. "forms": _formdiv,
  1918. "click": function () {
  1919. U.MD.D.I.openApplication(str, obj, info);
  1920. }
  1921. }
  1922. break;
  1923. case "courseDesign":
  1924. _iframe = $$("iframe", {
  1925. "webkitallowfullscreen": "",
  1926. "mozallowfullscreen": "",
  1927. "allowfullscreen": "",
  1928. "frameborder": "no",
  1929. "border": "0",
  1930. "scrolling ": "no",
  1931. "style": {
  1932. "cssText": "border:0; width:100%; height:100%;"
  1933. },
  1934. "src": "/course-design/index.html"
  1935. })
  1936. _box.appendChild(_iframe);
  1937. _box.appendChild(_jie);
  1938. _formdiv = new U.UF.UI.form(
  1939. "课程设计",
  1940. _box, {
  1941. "id": "courseDesign",
  1942. "style": {
  1943. "width": "90%",
  1944. "height": "90%",
  1945. "overflow": 'hidden'
  1946. },
  1947. "onresize": function () { }
  1948. }, {
  1949. closecallback: function () { }
  1950. }, {
  1951. "style": {
  1952. "height": "36px"
  1953. }
  1954. }).form; //创建窗体
  1955. _taskbar = {
  1956. "id": str + _formdiv.id,
  1957. "style": {
  1958. "backgroundImage": "url(/img/icon/courseDesign.png)"
  1959. },
  1960. "name": "课程设计",
  1961. "forms": _formdiv,
  1962. "click": function () {
  1963. U.MD.D.I.openApplication(str, obj, info);
  1964. }
  1965. }
  1966. break;
  1967. }
  1968. const script1 = document.createElement("script");
  1969. script1.type = "text/javascript";
  1970. script1.src =
  1971. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1972. const script2 = document.createElement("script");
  1973. script2.type = "text/javascript";
  1974. script2.src =
  1975. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1976. const script3 = document.createElement("script");
  1977. script3.type = "text/javascript";
  1978. script3.charset = "UTF-8";
  1979. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  1980. const script4 = document.createElement("script");
  1981. script4.type = "text/javascript";
  1982. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  1983. if (_iframe) {
  1984. if (str == 'doc') {
  1985. U.UF.DL.iframeLoad(_iframe, function () {
  1986. _iframe.contentWindow.U.MD.O.W.load();
  1987. _iframe.contentWindow.document.body.appendChild(script1);
  1988. _iframe.contentWindow.document.body.appendChild(script2);
  1989. // _iframe.contentWindow.document.body.appendChild(script3);
  1990. _iframe.contentWindow.document.body.appendChild(script4);
  1991. })
  1992. } else if (str == 'courseDesign') {
  1993. U.UF.DL.iframeLoad(_iframe, function () {
  1994. // _iframe.contentWindow.U.MD.O.W.load();
  1995. // _iframe.contentWindow.document.body.appendChild(script1);
  1996. _iframe.contentWindow.document.body.appendChild(script2);
  1997. _iframe.contentWindow.document.body.appendChild(script4);
  1998. })
  1999. } else {
  2000. _iframe.onload = () => {
  2001. _iframe.contentWindow.document.body.appendChild(script1);
  2002. _iframe.contentWindow.document.body.appendChild(script2);
  2003. // _iframe.contentWindow.document.body.appendChild(script3);
  2004. _iframe.contentWindow.document.body.appendChild(script4);
  2005. };
  2006. }
  2007. _jie.onclick = () => {
  2008. _loading.style.display = 'flex'
  2009. console.log(_loading);
  2010. var _ajs = _iframe.contentWindow.document.createElement("script");
  2011. _ajs.type = "text/javascript";
  2012. _ajs.innerHTML =
  2013. // 'console.log(' + _loading + ');\n' +
  2014. 'var _js = document.createElement("script");\n' +
  2015. '_js.type="text/javascript";\n' +
  2016. '_js.charset="UTF-8";\n' +
  2017. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2018. "_js.onload = function(){\n" +
  2019. ' var a = document.getElementsByTagName("img")\n' +
  2020. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2021. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2022. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2023. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2024. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2025. "beforeUpload_shishi(file," +
  2026. "'" +
  2027. _userid +
  2028. "'" +
  2029. ", " +
  2030. "'" +
  2031. cid +
  2032. "'" +
  2033. ", " +
  2034. "'" +
  2035. stage +
  2036. "'" +
  2037. ", " +
  2038. "'" +
  2039. task +
  2040. "'" +
  2041. ", " +
  2042. "'" +
  2043. tool +
  2044. "'" +
  2045. ", " +
  2046. "'" +
  2047. str + '_loadLi' +
  2048. "'" +
  2049. ")\n" +
  2050. " });\n" +
  2051. "}\n" +
  2052. "document.head.appendChild(_js);\n";
  2053. _iframe.contentWindow.document.head.appendChild(_ajs);
  2054. }
  2055. }
  2056. //U.MD.D.I.openClick(str);
  2057. //如果有任务栏信息
  2058. if (_taskbar) {
  2059. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2060. }
  2061. }