lsc пре 1 година
родитељ
комит
349c741a5d
2 измењених фајлова са 29 додато и 25 уклоњено
  1. 3 0
      szdjg/Onload.js
  2. 26 25
      uform.js

+ 3 - 0
szdjg/Onload.js

@@ -572,6 +572,9 @@ U.MD.D.getuser2 = function (userid, cid) {
         if ($("#U_MD_HomeC_Pop")[0]) {
             $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
         }
+        if ($("#loginSz")[0]) {
+            $("#loginSz")[0].close(); //关闭登陆
+        }
         U.A.Request(US.Config.pbl + "addLoginOperation", [userid], function (res) {
         }, [], { "type": "POST", "withCredentials": true });
 

+ 26 - 25
uform.js

@@ -11576,13 +11576,13 @@ U.MD.U.L.login = U.MD.U.L.DLTC = function (fun) {
         catch (e) { }
     }
     else {
-        if (U.UF.C.queryString('code')) {
-            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", "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/inviteLogin?code=" + U.UF.C.queryString('code') });
+        // if (U.UF.C.queryString('code')) {
+            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", "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/inviteLoginSZ" });
             // 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", "src": "http://localhost:8080/#/inviteLogin?code="+U.UF.C.queryString('code') });
             new U.UF.UI.form("登录", _iframe,
                 {
                     "id": "U_MD_HomeC_Pop",
-                    "style": { "width": "490px", "height": "660px", "overflow": 'hidden', 'borderRadius': '10px' },
+                    "style": { "width": "90%", "height": "90%", "overflow": 'hidden', 'borderRadius': '10px' },
                 },
                 {
                     isdrag: false,
@@ -11590,28 +11590,29 @@ U.MD.U.L.login = U.MD.U.L.DLTC = function (fun) {
                     isenlarge: false,
                     isnarrow: false
                 }, { "style": { "height": "36px" } });
-        } 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,
-                {
-                    "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; //设置登录回调
-            });
-        }
+                U.UF.DL.iframeLoad(_iframe)
+        // } 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,
+        //         {
+        //             "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; //设置登录回调
+        //     });
+        // }
     }
     return _iframe;
 }