Browse Source

搜索页,热门搜索

master
xiaodong 2 weeks ago
parent
commit
2264c7485f
  1. 17
      public/themes/website/1/zh/demo/single_search.html

17
public/themes/website/1/zh/demo/single_search.html

@ -68,9 +68,20 @@
<div class="sr-hot">
<span class="sr-hot__label">热门搜索:</span>
<div class="sr-hot__list">
<button type="button" class="sr-hot__tag" data-keyword="HMI">HMI</button>
<button type="button" class="sr-hot__tag" data-keyword="伺服系统">伺服系统</button>
<button type="button" class="sr-hot__tag" data-keyword="纺织行业产品">纺织行业产品</button>
{hcTaglib:category id="679" item="vo" field="id,title,description"}
{php}
$description = $vo['description'] ?? '';
$descriptionArr = [];
if(!empty($description)){
$descriptionArr = explode(',',$description);
}
{/php}
{/hcTaglib:category}
{volist name="descriptionArr" id="one"}
<button type="button" class="sr-hot__tag" data-keyword="HMI">{$one}</button>
{/volist}
</div>
</div>
</div>

Loading…
Cancel
Save