优化搜索
This commit is contained in:
1 parent
465fad3969
commit
b5ac7e8f32
7 files changed
+63
-14
No files matched your search
@@ -19,7 +19,7 @@
|
||||
{if $items}
|
||||
{volist name="items" id="item"}
|
||||
<div class="layui-col-md12">
|
||||
<div class="search-result-item" onclick="window.location.href='<?php echo $type == 'article' ? url('article/detail', ['id' => $item['id']]) : $item['detail_url'] ?>'">
|
||||
<div class="search-result-item" onclick="window.location.href='<?php echo $type == 'articles' ? url('articles/detail', ['id' => $item['id']]) : $item['detail_url'] ?>'">
|
||||
<div class="search-result-image">
|
||||
<?php if($type == 'article'): ?>
|
||||
<img src="<?php echo $item['image'] ?: '/static/images/default.jpg' ?>" alt="<?php echo $item['title'] ?>">
|
||||
|
||||
Reference in new issue
Block a user