更新:新闻列表展示合并
commit
e086098616
|
@ -123,7 +123,6 @@ class Article extends Base
|
||||||
} else {
|
} else {
|
||||||
// 新闻子栏目
|
// 新闻子栏目
|
||||||
$keyword = input('param.keyword', '');
|
$keyword = input('param.keyword', '');
|
||||||
$category['number'] = 2;
|
|
||||||
$this->data['items'] = MArticle::getListPageByCategory($category['id'], $category['number'] ? $category['number'] : 20, $keyword);
|
$this->data['items'] = MArticle::getListPageByCategory($category['id'], $category['number'] ? $category['number'] : 20, $keyword);
|
||||||
$this->data['keyword'] = $keyword;
|
$this->data['keyword'] = $keyword;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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{ 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 .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{ 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{ 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;}
|
.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 .table th{ padding: 1.5rem 8px;}
|
.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{ 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);}
|
.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;}
|
.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{ padding: 1rem 0;}
|
||||||
.marketing-box2 .center-block ul li .top-box .pull-left i{ width: 3rem;}
|
.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{ 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{ padding: 2rem 0;}
|
||||||
.news-box1 .center-block ul li a{ margin-top: 1.5rem; padding: 1rem;}
|
.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:nth-child(2n){ float: right;}
|
||||||
.product-box .center-block ul li a span{ height: 12rem;}
|
.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){
|
@media screen and (max-width:768px){
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<div class="all-center-box">
|
<div class="all-center-box">
|
||||||
<div class="news-box1 w-100">
|
<div class="news-box1 w-100">
|
||||||
<div class="w-1200 news-search-box">
|
<div class="w-1200 search-form-box">
|
||||||
<form action="{:url('article/index', ['category_id'=> $categoryId])}" method="get">
|
<form action="{:url('article/index', ['category_id'=> $categoryId])}" method="get" class="layui-form between-center w-100">
|
||||||
<input name="keyword" placeholder="关键词查询..." value="{$keyword ?? ''}"/>
|
<input class="layui-input" name="keyword" placeholder="关键词查询..." value="{$keyword ?? ''}"/>
|
||||||
<button type="submit">查询</button>
|
<button type="submit" class="layui-btn layui-btn-normal">查询</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1200">
|
<div class="w-1200">
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<div class="all-center-box">
|
<div class="all-center-box">
|
||||||
<div class="product-box w-100">
|
<div class="product-box w-100">
|
||||||
<div class="w-1200 products-search-box">
|
<div class="w-1200 search-form-box">
|
||||||
<form action="{:url('products.search')}" method="get">
|
<form action="{:url('products.search')}" class="layui-form between-center w-100" method="get">
|
||||||
<select name="category_id">
|
<select name="category_id">
|
||||||
<option value="{$topCategory.id}">产品选择</option>
|
<option value="{$topCategory.id}">产品选择</option>
|
||||||
{if isset($categoryChildren) && count($categoryChildren) >0}
|
{if isset($categoryChildren) && count($categoryChildren) >0}
|
||||||
|
@ -22,9 +22,14 @@
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
</select>
|
</select>
|
||||||
<input name="keyword" placeholder="关键词查询..." value="{$keyword ?? ''}" />
|
<input name="keyword" class="layui-input" placeholder="关键词查询..." value="{$keyword ?? ''}"/>
|
||||||
<button type="submit">查询</button>
|
<button type="submit" class="layui-btn layui-btn-normal">查询</button>
|
||||||
</form>
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
layui.use(['layer', 'form', 'element'], function(){
|
||||||
|
var layer = layui.layer,form = layui.form,element = layui.element;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1200">
|
<div class="w-1200">
|
||||||
{if isset($items)}
|
{if isset($items)}
|
||||||
|
|
Loading…
Reference in New Issue