diff --git a/application/common.php b/application/common.php index 60ed700..7951c8b 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 42cc8b0..86df006 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 2e2f8f4..cde9389 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 b6239e5..57d7b68 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('');