调整顺寻

This commit is contained in:
2021-11-30 10:17:03 +08:00
parent d2643c8f7c
commit 97a6d9a182
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ function getCateChild($categoryId, $take = '')
{
return Category::where('status', 1)
->where('parent_id', $categoryId)
->orderBy('order', 'desc')
->orderBy('order', 'asc')
->when($take, function ($q) use ($take) {
$q->take($take);
})

View File

@@ -37,7 +37,7 @@
<div class="col-md-6 col-xs-12">
<div class="swiper-container indexBig">
<div class="swiper-wrapper">
@foreach (getArticlesCoverByCate(66,5) as $info)
@foreach (getArticlesBYCate(66,5) as $info)
<div class="swiper-slide">
<div class="indexNew-img ce-img">
<span style="background-image: url({{ $info->cover_url}});"></span>