From 417da1899eaaca1e3137f419fb9a576534c76557 Mon Sep 17 00:00:00 2001 From: pushuo Date: Mon, 13 Feb 2023 09:26:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=BC=B9=E7=AA=97=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/beike/shop/default/js/common.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/beike/shop/default/js/common.js b/resources/beike/shop/default/js/common.js index 37389250..c8c36b52 100644 --- a/resources/beike/shop/default/js/common.js +++ b/resources/beike/shop/default/js/common.js @@ -3,7 +3,7 @@ * @link https://beikeshop.com * @Author pu shuo * @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; } }, -} \ No newline at end of file + + 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'); + }, +}