Selaa lähdekoodia

调整客户端登录逻辑

DW-PC\DW 5 vuotta sitten
vanhempi
commit
990422420c
1 muutettua tiedostoa jossa 12 lisäystä ja 9 poistoa
  1. 12 9
      公共资源/src/js/dwudbproxy-new.js

+ 12 - 9
公共资源/src/js/dwudbproxy-new.js

@@ -613,11 +613,11 @@
                 var url = this.baseURL + "?do=" + authorize + '&appid=' + this.appid + "&loginType=" + loginType + "&callbackUrl=" + encodeURIComponent(successURL);
             }
 
-            // this.minWindow = dwClientIncompatible.open(url, "_loginWin");
-            // dwClientIncompatible.focus(this.minWindow);
+            this.minWindow = dwClientIncompatible.open(url, "_loginWin");
+            dwClientIncompatible.focus(this.minWindow);
 
-            this.minWindow = window.open(url, "_loginWin");
-            this.minWindow.focus();
+            // this.minWindow = window.open(url, "_loginWin");
+            // this.minWindow.focus();
         },
 
         bindOauth: function (bindType, successURL) {
@@ -629,18 +629,21 @@
 
             var url = this.baseURL + "?do=" + bindUrl + '&appid=' + this.appid + "&loginType=" + bindType + "&callbackUrl=" + encodeURIComponent(successURL);
 
-            // this.minWindow = dwClientIncompatible.open(url, "_loginWin");
-            // dwClientIncompatible.focus(this.minWindow);
+            this.minWindow = dwClientIncompatible.open(url, "_loginWin");
+            dwClientIncompatible.focus(this.minWindow);
             
-            this.minWindow = window.open(url, "_loginWin");
-            this.minWindow.focus();
+            // this.minWindow = window.open(url, "_loginWin");
+            // this.minWindow.focus();
         },
 
         reloadPage: function (successURL) {
             var that = this;
             if (this.minWindow) {
-                this.minWindow.close()
+                dwClientIncompatible.close(this.minWindow)
             }
+            // if (this.minWindow) {
+            //     this.minWindow.close()
+            // }
             this.writeOtherDomainCookie(function () {
                 if (!successURL) {
                     window.location.reload();