lsc 3 days ago
parent
commit
c26c70e541
1 changed files with 21 additions and 0 deletions
  1. 21 0
      uform.js

+ 21 - 0
uform.js

@@ -11590,6 +11590,27 @@ U.MD.U.L.login = U.MD.U.L.DLTC = function (fun) {
                     isenlarge: false,
                     isnarrow: false
                 }, { "style": { "height": "36px" } });
+        }else if(window.origin.includes('gm.cocorobo.cn')){
+            var _iframe = $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "id": "UI_Login", "name": "UI_Login", "frameborder": "no", "border": "0", "scrolling ": "no", "width": "360px", "height": "480px", "src": "https://edu.cocorobo.cn/course/userVerify?type=2" });
+            new U.UF.UI.form("", _iframe,
+                {
+                    "id": "U_MD_HomeC_Pop",
+                    "style": { "width": "500px", "height": "90%", "overflow": 'hidden' },
+                },
+                {
+                    isdrag: false,
+                    isstretching: false,
+                    isenlarge: false,
+                    isnarrow: false
+                });
+            //跨域回调设置
+            U.UF.DL.iframeLoad(_iframe, function () {
+                //登录有的其他回调,如,登陆后直接打开好友聊天等
+                if (U.UF.C.isFunction(fun)) {
+                    U.MD.U.L.loginCallBack = fun; //回调处理
+                }
+                _iframe.contentWindow.U.MD.U.L.loginCallBack = U.MD.U.L.defaultCallBack; //设置登录回调
+            });
         } else {
             var _iframe = $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "id": "UI_Login", "name": "UI_Login", "frameborder": "no", "border": "0", "scrolling ": "no", "width": "360px", "height": "480px", "src": "https://edu.cocorobo.cn/course/login?type=2" });
             new U.UF.UI.form("", _iframe,