|
@@ -4817,9 +4817,22 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
$('#classroom_observation_ob_comment iframe')[0].contentDocument.location.reload()
|
|
|
}
|
|
|
U.MD.D.I.openInApplication("classroom_observation_ob_comment", e.data.type)
|
|
|
+ }else if (e.data.tools && e.data.tools == "logout"){
|
|
|
+ U.MD.U.LO.logoutSystem()
|
|
|
+ }else if (e.data.tools && e.data.tools == "getLogin"){
|
|
|
+ let _iframe = $('#UI_Login')[0];
|
|
|
+ if (_iframe) {
|
|
|
+ var userInfo = US.userInfo;
|
|
|
+ var type = 2
|
|
|
+ if(userInfo && userInfo.userid){
|
|
|
+ type = 1
|
|
|
+ }
|
|
|
+ _contentWindow = _iframe.contentWindow;
|
|
|
+ _contentWindow.postMessage({ tools: "getLogin",type: type }, "*")
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
|
|
|
U.MD.D.I.selectUser = function () {
|