From 0ff81b948a4ec4aab234400d349482c2997be494 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 16 Dec 2019 11:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=B1=95=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index/view/default/category/index.html | 2 +- public/static/index/default/css/category.css | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/application/index/view/default/category/index.html b/application/index/view/default/category/index.html index d206c25e5..179751050 100755 --- a/application/index/view/default/category/index.html +++ b/application/index/view/default/category/index.html @@ -25,7 +25,7 @@ {{/foreach}} {{foreach $goods_category_list as $k=>$v}} -
+
{{foreach $v.items as $vs}}
diff --git a/public/static/index/default/css/category.css b/public/static/index/default/css/category.css index 45e4cdc8c..7df940e91 100755 --- a/public/static/index/default/css/category.css +++ b/public/static/index/default/css/category.css @@ -4,7 +4,7 @@ overflow-x: hidden; } .category-list .category-content { - width: calc(100% - 120px); + width: calc(100% - 110px); } .category-list ul.category-nav { width: 100px; @@ -38,7 +38,7 @@ margin-bottom: 15px; } .category-list .category-content ul { - border-top: 1px dotted #f4f4f4; + border-top: 1px dotted #e5e5e5; } .category-list ul.category-nav li, .category-list .category-content .title, @@ -58,6 +58,12 @@ line-height: 22px; } @media only screen and (min-width:640px) { + .category-list { + margin-top: 10px; + } + .category-list .category-content { + padding-top: 0; + } .category-list ul.category-nav, .category-list .category-content { height: 100vh; @@ -67,6 +73,7 @@ } .category-list .category-content { margin-right: 5px; + width: calc(100% - 120px); } } @media only screen and (min-width:1025px) { @@ -75,6 +82,7 @@ } .category-list .category-content { margin-right: 0; + width: calc(100% - 110px); } } @media only screen and (max-width:640px) { @@ -84,4 +92,8 @@ .category-list .category-content { height: calc(100vh - 97px); } + + .category-list .category-content .category-item { + margin-right: 10px; + } } \ No newline at end of file