diff --git a/public/static/css/style.css b/public/static/css/style.css index 6c42b75..6cb7c0a 100644 --- a/public/static/css/style.css +++ b/public/static/css/style.css @@ -179,7 +179,9 @@ input,select,textarea{outline:medium none; resize: none;} .page-banner .info p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);} .page-banner .info .w-1200{ position: relative;} .page-banner .info .w-1200::after{ content: ''; width: 5rem; height: 6.5625rem; background: url(../image/icon_jt2.png) no-repeat center #fff; background-size: 2.125rem; box-shadow: 0 0 5px rgba(0,0,0,0.3); position: absolute; left: 0; top: 100%; margin-top: 0.9375rem;} - +.pt118{ + padding-top: 120px; +} .all-title-box2 span{ display: block; font-size: 2.7rem;} .all-title-box2 p{ font-size: 1.125rem; color: #666; margin-top: 0.1875rem;} .disFlex{display: flex;justify-content: space-between} @@ -275,7 +277,7 @@ input,select,textarea{outline:medium none; resize: none;} .service-box3 .box-info .pull-right::after{ content: ''; width: 3.125rem; height: 3.125rem; border-bottom: 0.25rem solid #ccc; border-right: 0.25rem solid #ccc; position: absolute; right: 0; bottom: 0;} */ -.marketing-box1{ padding: 10rem 0 0;} +.marketing-box1{ padding: 6rem 0 2rem;height: 100vh;box-sizing: border-box} .marketing-box1 .box-info{ padding-bottom: 4.5rem;} .marketing-box1 .box-info .pull-left{ background: url(../image/icon_1.png) no-repeat 0 0; background-size: 1.4375rem; padding:0.3rem 0 0 2.5rem;} .marketing-box1 .box-info .pull-left span{ display: block; color: #222;} @@ -337,7 +339,7 @@ input,select,textarea{outline:medium none; resize: none;} .news-info .lower-box a:hover{ color: #578df3;} .news-info .lower-box a.btns{ display: inline-block; background: #00418f; color: #fff; padding: 0 3.15rem; line-height: 24px; font-size: 0.8rem; margin-top: 2rem;} -.contact-box1{ padding: 10rem 0 3.75rem;} +.contact-box1{ padding: 6rem 0 3.75rem;} .contact-box1 .between-top{ padding-bottom: 7rem;} .contact-box1 .between-top .box-info{ width: 21rem;} .contact-box1 .between-top .box-info p{ margin-top: 3.4375rem; font-size: 0.875rem; line-height: 1.6;} diff --git a/view/article/news.html b/view/article/news.html index efad55e..20659c2 100644 --- a/view/article/news.html +++ b/view/article/news.html @@ -3,7 +3,7 @@
-
+
{$category.title ?? ''}

{:nl2br($category.description ?? '')}

diff --git a/view/article/news_center.html b/view/article/news_center.html index eeb668e..f6c7a5a 100644 --- a/view/article/news_center.html +++ b/view/article/news_center.html @@ -3,7 +3,7 @@
-
+
{$topCategory.title ?? ''}

{:nl2br($topCategory.description ?? '')}

diff --git a/view/article/news_detail.html b/view/article/news_detail.html index 54d41c2..7bad2dc 100644 --- a/view/article/news_detail.html +++ b/view/article/news_detail.html @@ -1,7 +1,7 @@ {layout name="layout" /}
-
+
{$category.title ?? ''}

{:nl2br($category.description ?? '')}

diff --git a/view/article/product.html b/view/article/product.html index df9388e..f1766ce 100644 --- a/view/article/product.html +++ b/view/article/product.html @@ -3,7 +3,7 @@
-
+
{$topCategory.title ?? ''}

{:nl2br($topCategory.description ?? '')}

diff --git a/view/article/products.html b/view/article/products.html index 5329ae6..0123e4e 100644 --- a/view/article/products.html +++ b/view/article/products.html @@ -3,7 +3,7 @@
-
+
{$category.title ?? ''}

{:nl2br($category.description ?? '')}

@@ -40,7 +40,7 @@ } {/php} {/foreach} {/if} diff --git a/view/public/menu.html b/view/public/menu.html index 013be1c..cc38295 100644 --- a/view/public/menu.html +++ b/view/public/menu.html @@ -1,4 +1,5 @@ {php} +//dump($menus); function getMenus($menus, $level = 1, $currentFirstId, $categoryId) { $menuHtml = ''; $levelList = ['nav-first','nav-second','nav-third']; @@ -31,7 +32,14 @@ function getMenus($menus, $level = 1, $currentFirstId, $categoryId) { } $menuHtml .= ''; } else { + if($menu['template_list']=='products'){ + $menuHtml .= ''; + }else if($menu['template_list']=='news'){ + $menuHtml .= ''; + }else + { $menuHtml .= ''; + } $menuHtml .= ''.$menu['title'].''; if ($hasChild) { $menuHtml .= getMenus($menu['children'], $level + 1, $currentFirstId, $categoryId);