作者 景龙
1 个管道 的构建 通过 耗费 0 秒

增加搜索列表文件

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>搜索列表</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/header1.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/collection.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/show.css">
<style>
.post_url{
cursor: pointer;
}
.post_url:hover{
text-decoration: none;
}
.collection_item_title:hover{
color:#09FF8E;
}
.index_search_con {
padding: 0 30px 0 30px;
}
</style>
</head>
<body>
<include file="public@header"/>
<!--内容-->
<main>
<div class="index_search">
<div class="index_search_tit clearfix">
<img src="__TMPL__/public/assets/starImg/bicon_45.png" alt="">
<h1>{$keyword}</h1>
<div class="index_search_tit2">
<p>共搜到 {$count} 个结果</p>
</div>
</div>
<div class="index_search_con">
<!--收藏-->
<div class="collection">
<div class="collection_list">
<volist name="res" id="vo">
<div class="collection_item">
<a href="{$vo.post_url}?id={$vo.id}" class="post_url">
<div class="collection_item_title">
{$vo.post_title}
</div>
</a>
<div class="collection_item_main">
{$vo.post_excerpt}
</div>
<div class="collection_item_bottom clearfix">
<div class="collection_item_bottom_left clearfix">
<div class="collection_bottom_left_item">{$vo.category_name}</div>
<notempty name="vo.city_name">
<div class="collection_bottom_left_item">{$vo.city_name}</div>
</notempty>
</div>
<div class="collection_item_bottom_right clearfix">
<div class="collection_bottom_right_img">
<img src="__TMPL__/public/assets/starImg/bicon_13.png" alt="">
</div>
<div class="collection_bottom_right_num">{$vo.post_favorites}</div>
</div>
</div>
</div>
</volist>
</div>
<!--分页-->
<div class="pagination">
{$page|default=''}
</div>
</div>
</div>
</div>
</main>
<!-- 底部 -->
<include file="public@footer"/>
<script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script>
<script src="__TMPL__/public/assets/js/public.js"></script>
</body>
</html>
... ...