|
|
@ -90,19 +90,28 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time" subField="" name="hc_featured" limit="100" item="content_sub22" sort="sort asc" isTop="1"} |
|
|
|
|
|
{/hcTaglib:contentPage2} |
|
|
|
|
|
{php} |
|
|
|
|
|
$news_has_featured = false; |
|
|
|
|
|
if (!empty($hc_featured)) { |
|
|
|
|
|
if (is_object($hc_featured) && method_exists($hc_featured, 'isEmpty')) { |
|
|
|
|
|
$news_has_featured = !$hc_featured->isEmpty(); |
|
|
|
|
|
} elseif (is_countable($hc_featured)) { |
|
|
|
|
|
$news_has_featured = count($hc_featured) > 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
{/php} |
|
|
|
|
|
{if $news_has_featured} |
|
|
<article class="n-featured"> |
|
|
<article class="n-featured"> |
|
|
<div class="n-featured__swiper swiper"> |
|
|
<div class="n-featured__swiper swiper"> |
|
|
<div class="swiper-wrapper"> |
|
|
<div class="swiper-wrapper"> |
|
|
{hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc" isTop="1"} |
|
|
|
|
|
{/hcTaglib:contentPage2} |
|
|
|
|
|
|
|
|
|
|
|
{volist name="hc_content" id="vo_content"} |
|
|
|
|
|
|
|
|
{volist name="hc_featured" id="vo_content"} |
|
|
{php} |
|
|
{php} |
|
|
$content = $vo_content['content'] ?? ''; // 富文本 |
|
|
$content = $vo_content['content'] ?? ''; // 富文本 |
|
|
$description = $vo_content['description'] ?? ''; |
|
|
$description = $vo_content['description'] ?? ''; |
|
|
$title = $vo_content['description'] ?? ''; |
|
|
$title = $vo_content['description'] ?? ''; |
|
|
$create_time_str = $vo_content['create_time'] ?? ''; |
|
|
$create_time_str = $vo_content['create_time'] ?? ''; |
|
|
// dd($vo_content->toArray());exit; |
|
|
|
|
|
{/php} |
|
|
{/php} |
|
|
<div class="swiper-slide n-featured__slide" data-category="company"> |
|
|
<div class="swiper-slide n-featured__slide" data-category="company"> |
|
|
<div class="n-featured__media"> |
|
|
<div class="n-featured__media"> |
|
|
@ -155,6 +164,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</article> |
|
|
</article> |
|
|
|
|
|
{/if} |
|
|
|
|
|
|
|
|
<div class="n-grid"> |
|
|
<div class="n-grid"> |
|
|
|
|
|
|
|
|
|