{include file="components/header"}

搜索

热门搜索:
{php}$ui_search_hot = uiId('search_hot');{/php} {hcTaglib:category id="$ui_search_hot" 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"} {/volist}
{php} $sr_type_cur = $sr_type ?? 'all'; $sr_q = $keywords ?? ''; $sr_counts = $sr_counts ?? ['all' => 0, 'product' => 0, 'news' => 0, 'faq' => 0, 'other' => 0]; $sr_tabs = []; foreach (['all', 'product', 'news', 'faq', 'other'] as $tabType) { $query = ['type' => $tabType]; if ($sr_q !== '') { $query['q'] = $sr_q; } $sr_tabs[$tabType] = getMuiLangUrl('/search.html?' . http_build_query($query)); } {/php}
{volist name="list" id="vo"} {php} $sr_kind = $vo['sr_kind'] ?? 'content'; $sr_date = $vo['sr_date'] ?? ''; if ($sr_date === '') { $sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? ''); if ($sr_time !== '' && $sr_time !== null) { if (is_numeric($sr_time)) { $sr_date = date('Y-m-d', (int)$sr_time); } else { $ts = strtotime((string)$sr_time); $sr_date = $ts ? date('Y-m-d', $ts) : substr((string)$sr_time, 0, 10); } } } $sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0); $sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : ''; $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]); $sr_file = trim((string)($vo['url'] ?? '')); $has_sr_file = $sr_file !== ''; $sr_title = $vo['title'] ?? ''; $sr_type_name = $vo['sr_tab_name'] ?? '内容'; $sr_show_desc = ($sr_kind === 'news' || $sr_kind === 'content'); $sr_show_more = ($sr_kind === 'news' || $sr_kind === 'content'); {/php}
{if $sr_kind == 'video'} {elseif $sr_kind == 'download' /} {elseif $sr_kind == 'announce' /} {else /} {/if}
{$sr_type_name}
{if $sr_kind == 'faq'}

{$vo.content|strip_tags}

{else /}

{if $sr_kind == 'video'} {$sr_title} {elseif $sr_kind == 'download' /} {$sr_title} {elseif $sr_kind == 'announce' /} {$sr_title} {else /} {$sr_title} {/if}

{/if} {if $sr_show_desc} {notempty name="vo.description"}

{$vo.description}

{/notempty} {/if}
{if $sr_kind == 'download'} 立即下载 {elseif $sr_kind == 'product' /} 了解产品 {elseif $sr_kind == 'announce' /} 探索更多 {elseif $sr_show_more /} 探索更多 {/if}
{/volist}
{php} $list_empty = isHcListEmpty($list ?? null); if ($list_empty) { $empty_text = '未找到相关结果,请尝试其他关键词'; } {/php} {if $list_empty} {include file="components/empty"} {else /} {$list_page|raw} {/if}
{include file="components/mask"} {include file="components/footer"}