From 1d58d6ed7208e883481c4124d5106f814d6ab9d1 Mon Sep 17 00:00:00 2001 From: "mail_yanpeng@163.com" Date: Wed, 15 May 2019 09:03:46 +0800 Subject: [PATCH] =?UTF-8?q?layui=20=E7=89=88=E6=9C=AC:=20=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/menunav.css | 1 + views/note.html | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/static/css/menunav.css b/static/css/menunav.css index eb97e7c..9d9e39f 100644 --- a/static/css/menunav.css +++ b/static/css/menunav.css @@ -52,6 +52,7 @@ input[id*="joacims-menu"] ~ nav a:nth-child(3) { box-shadow:5px 0 0 #e67e22; tra input[id*="joacims-menu"] ~ nav a:nth-child(4) { box-shadow:5px 0 0 #c0392b; transition-delay:.20s; } input[id*="joacims-menu"] ~ nav a:nth-child(5) { box-shadow:5px 0 0 #2c3e50; transition-delay:.25s; } input[id*="joacims-menu"] ~ nav a:nth-child(6) { box-shadow:5px 0 0 #f1c40f; transition-delay:.30s; } +input[id*="joacims-menu"] ~ nav a:nth-child(7) { box-shadow:5px 0 0 #222222; transition-delay:.35s; } input[id*="joacims-menu"]:checked ~ nav a { margin-left:0px; diff --git a/views/note.html b/views/note.html index 408fcf3..a4d43c2 100644 --- a/views/note.html +++ b/views/note.html @@ -110,9 +110,9 @@ @@ -160,7 +161,7 @@ - + @@ -317,7 +318,7 @@ content: '/iframe/note.html' //iframe的url }); }) - $("#newNoteColl").click(function () { + function newNoteColl(){ layer.prompt({title: '请输入文件夹名称'}, function (val, index) { if (val.trim().length < 3) { layer.msg('文件夹名称最低三个字哦', function () { @@ -362,6 +363,13 @@ } }, 'json') }); + } + $("#newNoteColl").click(function () { + newNoteColl(); + }) + + $("#nullNoteColl").click(function () { + newNoteColl(); }) $("#delNote").click(function () {