优化前台弹窗宽高

pull/446/head
Karson 2023-06-16 21:13:06 +08:00
parent 7cd9281c74
commit 0fb7924420
1 changed files with 2 additions and 2 deletions

View File

@ -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);