|
|
|
@ -93,11 +93,16 @@ |
|
|
|
<article class="n-featured"> |
|
|
|
<div class="n-featured__swiper swiper"> |
|
|
|
<div class="swiper-wrapper"> |
|
|
|
{hcTaglib:content cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time" subField="" name="hc_featured" limit="10" item="vo_content" sort="sort asc"} |
|
|
|
{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"} |
|
|
|
{/hcTaglib:contentPage2} |
|
|
|
|
|
|
|
{volist name="hc_content" id="vo_content"} |
|
|
|
{php} |
|
|
|
$content = $vo_content['content'] ?? ''; // 富文本 |
|
|
|
$description = $vo_content['description'] ?? ''; |
|
|
|
$title = $vo_content['title'] ?? ''; |
|
|
|
$title = $vo_content['description'] ?? ''; |
|
|
|
$create_time_str = $vo_content['create_time'] ?? ''; |
|
|
|
// dd($vo_content->toArray());exit; |
|
|
|
{/php} |
|
|
|
<div class="swiper-slide n-featured__slide" data-category="company"> |
|
|
|
<div class="n-featured__media"> |
|
|
|
@ -121,7 +126,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/hcTaglib:content} |
|
|
|
{/volist} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -158,16 +163,14 @@ |
|
|
|
|
|
|
|
{volist name="hc_content" id="vo_content"} |
|
|
|
{php} |
|
|
|
$description = $vo_content['description'] ?? ''; |
|
|
|
$create_time_int = $vo_content['create_time'] ?? ''; |
|
|
|
$content = $hc_content['content'] ?? ''; |
|
|
|
$description = $hc_content['description'] ?? ''; |
|
|
|
$create_time_int = $hc_content['create_time'] ?? ''; |
|
|
|
$create_time_str = ''; |
|
|
|
if(!empty($create_time_int)){ |
|
|
|
if (is_numeric($create_time_int)) { |
|
|
|
$create_time_str = date('Y-m-d', (int)$create_time_int); |
|
|
|
} else { |
|
|
|
$create_time_str = $create_time_int; |
|
|
|
} |
|
|
|
$create_time_str = date('Y-m-d', $create_time_int); |
|
|
|
} |
|
|
|
// dd($hc_content->toArray());exit; |
|
|
|
{/php} |
|
|
|
|
|
|
|
<article class="n-card" data-category="insight"> |
|
|
|
|