修复第三方登录弹窗失效

This commit is contained in:
pushuo 2023-02-13 09:26:38 +08:00 committed by Edward Yang
parent d7276d2f4a
commit 417da1899e
1 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,7 @@
* @link https://beikeshop.com
* @Author pu shuo <pushuo@guangda.work>
* @Date 2022-09-09 19:16:39
* @LastEditTime 2023-01-16 10:42:11
* @LastEditTime 2023-02-13 09:26:05
*/
export default {
@ -121,4 +121,12 @@ export default {
return uri + separator + key + "=" + value;
}
},
}
openWin(url, name = '', iWidth = 700, iHeight = 500) {
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight
+ ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft
+ ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
},
}