调整顺寻
This commit is contained in:
@@ -80,7 +80,7 @@ function getCateChild($categoryId, $take = '')
|
|||||||
{
|
{
|
||||||
return Category::where('status', 1)
|
return Category::where('status', 1)
|
||||||
->where('parent_id', $categoryId)
|
->where('parent_id', $categoryId)
|
||||||
->orderBy('order', 'desc')
|
->orderBy('order', 'asc')
|
||||||
->when($take, function ($q) use ($take) {
|
->when($take, function ($q) use ($take) {
|
||||||
$q->take($take);
|
$q->take($take);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<div class="col-md-6 col-xs-12">
|
<div class="col-md-6 col-xs-12">
|
||||||
<div class="swiper-container indexBig">
|
<div class="swiper-container indexBig">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
@foreach (getArticlesCoverByCate(66,5) as $info)
|
@foreach (getArticlesBYCate(66,5) as $info)
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<div class="indexNew-img ce-img">
|
<div class="indexNew-img ce-img">
|
||||||
<span style="background-image: url({{ $info->cover_url}});"></span>
|
<span style="background-image: url({{ $info->cover_url}});"></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user