From b6f2e9ef0917346776ef4162fdcbaee3a2cdc431 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 11 May 2026 23:20:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(phone-image):=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84layui=20dropdown=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8=E7=BA=AFJS=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit layui 2.x没有内置dropdown模块,导致整个页面JS回调不执行。 - layui.use依赖从['form','layer','dropdown']改为['form','layer'] - 用纯jQuery实现toggle下拉菜单替代dropdown.render() - 添加more-dropdown-menu CSS hover样式 --- public/static/css/phone-image-templates.css | 5 ++ view/admin/post/phone_image.html | 64 +++++++++++---------- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/public/static/css/phone-image-templates.css b/public/static/css/phone-image-templates.css index 606d6e4..bcf9e65 100644 --- a/public/static/css/phone-image-templates.css +++ b/public/static/css/phone-image-templates.css @@ -713,6 +713,11 @@ body > .page-header-right .layui-btn:not(.layui-btn-primary):not(.layui-btn-norm color: var(--pi-color-accent); } +.more-dropdown-menu li:hover { + background: rgba(24, 144, 255, 0.06); + color: var(--pi-color-accent); +} + /* --- 主布局两栏 --- */ .main-layout { display: flex; diff --git a/view/admin/post/phone_image.html b/view/admin/post/phone_image.html index ad2b21a..6bb1d09 100644 --- a/view/admin/post/phone_image.html +++ b/view/admin/post/phone_image.html @@ -117,9 +117,15 @@ class="layui-icon layui-icon-ok"> 保存 -
+
+
@@ -143,10 +149,9 @@