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

增加搜索列表文件

  1 +<!DOCTYPE html>
  2 +<html lang="en">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7 + <title>搜索列表</title>
  8 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/header1.css">
  11 + <link rel="stylesheet" href="__TMPL__/public/assets/css/collection.css">
  12 + <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css">
  13 + <style>
  14 + .post_url{
  15 + cursor: pointer;
  16 + }
  17 + .post_url:hover{
  18 + text-decoration: none;
  19 + }
  20 + .collection_item_title:hover{
  21 + color:#09FF8E;
  22 + }
  23 + .index_search_con {
  24 + padding: 0 30px 0 30px;
  25 + }
  26 + </style>
  27 +</head>
  28 +
  29 +<body>
  30 + <include file="public@header"/>
  31 + <!--内容-->
  32 + <main>
  33 + <div class="index_search">
  34 + <div class="index_search_tit clearfix">
  35 + <img src="__TMPL__/public/assets/starImg/bicon_45.png" alt="">
  36 + <h1>{$keyword}</h1>
  37 + <div class="index_search_tit2">
  38 + <p>共搜到 {$count} 个结果</p>
  39 + </div>
  40 + </div>
  41 + <div class="index_search_con">
  42 + <!--收藏-->
  43 + <div class="collection">
  44 + <div class="collection_list">
  45 + <volist name="res" id="vo">
  46 + <div class="collection_item">
  47 + <a href="{$vo.post_url}?id={$vo.id}" class="post_url">
  48 + <div class="collection_item_title">
  49 + {$vo.post_title}
  50 + </div>
  51 + </a>
  52 + <div class="collection_item_main">
  53 + {$vo.post_excerpt}
  54 + </div>
  55 + <div class="collection_item_bottom clearfix">
  56 + <div class="collection_item_bottom_left clearfix">
  57 + <div class="collection_bottom_left_item">{$vo.category_name}</div>
  58 + <notempty name="vo.city_name">
  59 + <div class="collection_bottom_left_item">{$vo.city_name}</div>
  60 + </notempty>
  61 + </div>
  62 + <div class="collection_item_bottom_right clearfix">
  63 + <div class="collection_bottom_right_img">
  64 + <img src="__TMPL__/public/assets/starImg/bicon_13.png" alt="">
  65 + </div>
  66 + <div class="collection_bottom_right_num">{$vo.post_favorites}</div>
  67 + </div>
  68 + </div>
  69 + </div>
  70 + </volist>
  71 + </div>
  72 + <!--分页-->
  73 + <div class="pagination">
  74 + {$page|default=''}
  75 + </div>
  76 + </div>
  77 + </div>
  78 + </div>
  79 + </main>
  80 + <!-- 底部 -->
  81 + <include file="public@footer"/>
  82 + <script src="__TMPL__/public/assets/js/jquery-3.2.1.min.js"></script>
  83 + <script src="__TMPL__/public/assets/js/public.js"></script>
  84 +
  85 +</body>
  86 +
  87 +</html>