From f36a3415d78ad847438e01f51684130fed647917 Mon Sep 17 00:00:00 2001 From: Karson Date: Thu, 20 Aug 2020 15:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E5=8F=B0=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 2 +- public/assets/css/frontend.css | 6 +++++- public/assets/less/frontend.less | 6 +++++- public/install.php | 4 ++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/application/common.php b/application/common.php index 60ed7005..7951c8bd 100755 --- a/application/common.php +++ b/application/common.php @@ -365,7 +365,7 @@ if (!function_exists('hsv2rgb')) { if (!function_exists('check_nav_active')) { /** - * 跨域检测 + * 检测会员中心导航是否高亮 */ function check_nav_active($url, $classname = 'active') { diff --git a/public/assets/css/frontend.css b/public/assets/css/frontend.css index 42cc8b06..86df0064 100644 --- a/public/assets/css/frontend.css +++ b/public/assets/css/frontend.css @@ -24,6 +24,10 @@ body { .navbar-nav > li > a { font-size: 14px; } +.navbar-nav ul.dropdown-menu > li > a { + padding: 5px 20px; + font-size: 13px; +} .toast-top-center { top: 50px; } @@ -444,7 +448,7 @@ main.content { } .sidenav .list-group .list-group-item.active { border-left: 2px solid #46c37b; - background: none; + background-color: #f5f5f5; } .sidenav .list-group .list-group-item.active > a { color: #46c37b; diff --git a/public/assets/less/frontend.less b/public/assets/less/frontend.less index 2e2f8f45..cde93892 100644 --- a/public/assets/less/frontend.less +++ b/public/assets/less/frontend.less @@ -43,6 +43,10 @@ body { > li > a { font-size:14px; } + ul.dropdown-menu > li > a { + padding: 5px 20px; + font-size: 13px; + } } .toast-top-center{ top:50px; @@ -404,7 +408,7 @@ main.content { } &.active { border-left: 2px solid #46c37b; - background: none; + background-color: #f5f5f5; > a { color: #46c37b; } diff --git a/public/install.php b/public/install.php index b6239e57..57d7b686 100644 --- a/public/install.php +++ b/public/install.php @@ -20,8 +20,8 @@ require __DIR__ . '/../thinkphp/base.php'; // 绑定到安装控制器 \think\Route::bind('\app\admin\command\Install', 'controller'); -// 关闭路由 -\think\App::route(false); +// 开启路由 +\think\App::route(true); // 设置根url \think\Url::root('');