diff --git a/app/controller/Article.php b/app/controller/Article.php index f562b9c..da8d27e 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -123,7 +123,6 @@ class Article extends Base } else { // 新闻子栏目 $keyword = input('param.keyword', ''); - $category['number'] = 2; $this->data['items'] = MArticle::getListPageByCategory($category['id'], $category['number'] ? $category['number'] : 20, $keyword); $this->data['keyword'] = $keyword; } diff --git a/public/static/css/style.css b/public/static/css/style.css index e8803e4..3581eb9 100644 --- a/public/static/css/style.css +++ b/public/static/css/style.css @@ -263,9 +263,9 @@ input,select,textarea{outline:medium none; resize: none;} .marketing-box2 .center-block ul li .top-box .pull-right{ font-size: 1rem; padding-right: 3.4375rem; position: relative; color: #999;} .marketing-box2 .center-block ul li .top-box .pull-right::after{ content: ''; width: 2.5rem; height: 2.5rem; background: url(../image/icon_jt3.png) no-repeat center; background-size: 100%; position: absolute; right: 0; top: 0; transition: all .6s;} .marketing-box2 .center-block ul li .lower-box{ padding: 0 1.875rem 1.875rem; display: none;} -.marketing-box2 .center-block ul li .lower-box .table{ margin: auto;} -.marketing-box2 .center-block ul li .lower-box .table td,.marketing-box2 .center-block ul li .lower-box .table th{ vertical-align: middle; border-width: 0.125rem; text-align: center;} -.marketing-box2 .center-block ul li .lower-box .table th{ padding: 1.5rem 8px;} +.marketing-box2 .center-block ul li .lower-box table{ width: 100%; margin: auto;} +.marketing-box2 .center-block ul li .lower-box table td,.marketing-box2 .center-block ul li .lower-box table th{ vertical-align: middle; border-width: 0.125rem; text-align: center; border: 1px solid #d9d9d9;} +.marketing-box2 .center-block ul li .lower-box th{ padding: 1.5rem 8px;} .marketing-box2 .center-block ul li.active{ box-shadow: 5px 5px 10px rgba(0,0,0,0.2);} .marketing-box2 .center-block ul li.active .top-box .pull-right::after{ transform: rotate(90deg);} @@ -346,8 +346,10 @@ input,select,textarea{outline:medium none; resize: none;} .pager{ margin: 3rem 0 0;} - - +.search-form-box .layui-form{ padding: 0 20%;} +.search-form-box .layui-form .layui-input,.product-box .layui-form .layui-form-select{ width: 100%; margin: 0 15px;} +.search-form-box .layui-form .layui-btn{ width: 30%;} +.layui-form-select dl dd.layui-this{ background: #1E9FFF;} @@ -478,7 +480,7 @@ input,select,textarea{outline:medium none; resize: none;} .marketing-box2 .center-block ul li .top-box{ padding: 1rem 0;} .marketing-box2 .center-block ul li .top-box .pull-left i{ width: 3rem;} .marketing-box2 .center-block ul li .lower-box{ padding: 0 0 1rem; overflow: auto;} - .marketing-box2 .center-block ul li .lower-box .table td,.marketing-box2 .center-block ul li .lower-box .table th{ white-space: nowrap; padding: 1rem;} + .marketing-box2 .center-block ul li .lower-box table td,.marketing-box2 .center-block ul li .lower-box table th{ white-space: nowrap; padding: 1rem;} .news-box1{ padding: 2rem 0;} .news-box1 .center-block ul li a{ margin-top: 1.5rem; padding: 1rem;} @@ -516,9 +518,9 @@ input,select,textarea{outline:medium none; resize: none;} .product-box .center-block ul li:nth-child(2n){ float: right;} .product-box .center-block ul li a span{ height: 12rem;} - - - + .search-form-box .layui-form{ display: block; padding: 0;} + .search-form-box .layui-form .layui-input, .product-box .layui-form .layui-form-select{ margin: 0 0 0.8rem;} + .search-form-box .layui-form .layui-btn{ width: 100%;} } @media screen and (max-width:768px){ diff --git a/view/article/news.html b/view/article/news.html index d704cee..6ec5c32 100644 --- a/view/article/news.html +++ b/view/article/news.html @@ -12,10 +12,10 @@