From 0fb79244204823ac449408a1cb57ed3357dd08b5 Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 16 Jun 2023 21:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E5=8F=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=AE=BD=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/frontend/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/js/frontend/user.js b/public/assets/js/frontend/user.js index 45b693a4..cfbfaa60 100755 --- a/public/assets/js/frontend/user.js +++ b/public/assets/js/frontend/user.js @@ -26,7 +26,7 @@ define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, und Layer.open({ type: 1, title: __('Reset password'), - area: ["450px", "355px"], + area: [$(window).width() < 450 ? ($(window).width() - 10) + "px" : "450px", "355px"], content: content, success: function (layero) { var rule = $("#resetpwd-form input[name='captcha']").data("rule"); @@ -85,7 +85,7 @@ define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, und Layer.open({ type: 1, title: "修改", - area: ["400px", "250px"], + area: [$(window).width() < 450 ? ($(window).width() - 10) + "px" : "450px", "355px"], content: content, success: function (layero) { var form = $("form", layero);