zzwy2/view/article/service.html

33 lines
1.5 KiB
HTML
Executable File

{layout name="layout"/}
{php}
use app\model\Category;
use app\model\Article;
use app\model\Block;
$childrenMenu = Category::getChildrenByParentId($topCategoryId);
$childrenCate = Category::getChildrenByParentId(Category::CATEGORY_NEWS);
$topNews = Article::getLastTopList($category["id"],1,[],["top"=>"desc"]);
if (!$topNews->isEmpty()) {
$topNews = empty($topNews)?[]: ($topNews[0] ?? []);
$topNewsYm = date('Y.m', $topNews['create_time']);
$topNewsDay = date('d', $topNews['create_time']);
}
{/php}
{include file="public/about_second" /}
<!-- 服务列表 -->
<div class="pull-section pull-content-bg pull-section-wap content-bg-white wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
<div class="services-list w1360">
{foreach $items as $item}
<a href="/service/{$item.id}.html" class="item flex wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
<div class="img"><img src="{$isMobile ? $item['src_mobile'] : $item['src']}" alt="{$item.title}"></div>
<div class="item-mask"></div>
<div class="txt">
<h2 class="color-coffee wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">{$item.title}</h2>
<p class="capitalize wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">{$item.title_en}</p>
<span class="srevices-more-btn wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0"><img src="__STATIC__/web/images/icon/icon-srevices-more.png" alt="查看详情"></span>
</div>
</a>
{/foreach}
</div>
</div>