more.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="https://www.thymeleaf.org ">
  4. <head>
  5. <meta charset="UTF-8"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  8. <title>采美百科搜索页面</title>
  9. <link rel="stylesheet" th:href="@{/css/encyclopedia/normalize.css(v=${version})}"/>
  10. <link rel="stylesheet" th:href="@{/css/encyclopedia/base.css(v=${version})}"/>
  11. <link rel="stylesheet" th:href="@{/css/encyclopedia/common.css(v=${version})}"/>
  12. <link rel="stylesheet" th:href="@{/css/encyclopedia/pagination.css(v=${version})}"/>
  13. <link rel="stylesheet" th:href="@{/css/encyclopedia/index.css(v=${version})}"/>
  14. </head>
  15. <body>
  16. <!-- 引用公共头部 -->
  17. <template th:replace="encyclopedia/components/header"></template>
  18. <!-- 分类楼层 -->
  19. <div class="floor container more-floor" id="moreFloor" th:object="${moreData}">
  20. <div class="floor-title" th:id="${moreData}">
  21. <h2 v-text="*{typeName}"></h2>
  22. <img src="/img/encyclopedia/01.png" alt="中胚层产品"/>
  23. </div>
  24. <article class="article">
  25. <section class="section" th:each="item: *{results}">
  26. <!-- commodityType : 1 产品 2 仪器 -->
  27. <a th:href="${item.commodityType == 1 ? 'product-' + item.productId + '.html' : 'product-' + item.instrument + '.html'}">
  28. <div class="cover">
  29. <img th:src="${item.image}" th:alt="${item.name}"/>
  30. </div>
  31. <div class="content">
  32. <h3 th:text="${item.name}"></h3>
  33. <div class="title" th:text="${item.discription}"></div>
  34. <div class="question">
  35. <p th:each="question : ${item.questionList}" th:text="${question}"></p>
  36. </div>
  37. <div class="tag-list">
  38. <span class="tag">常见问题</span>
  39. <span class="tag">效果展示</span>
  40. <span class="tag">技术原理</span>
  41. <span class="tag">术前术后</span>
  42. </div>
  43. <div class="dashed-line"></div>
  44. <footer class="footer">
  45. <time>日期:<span th:text="${item.publishTime}"></span></time>
  46. <span>浏览量:<span th:text="${item.pv}"></span></span>
  47. </footer>
  48. </div>
  49. </a>
  50. </section>
  51. </article>
  52. </div>
  53. <th:block th:object="${moreData}">
  54. <div class="pagination-container" th:if="*{totalPage gt 1}">
  55. <ul class="pagination">
  56. <li th:if="*{pageNum gt 1}"><a th:href="'more-7-' + *{pageNum - 1} + '-12.html'">«</a></li>
  57. <li th:if="*{pageNum gt 3}">
  58. <a th:href="'more-7-1-12.html'">1</a>
  59. </li>
  60. <li class="ellipsis" th:if="*{pageNum gt 4}"><span>···</span></li>
  61. <li th:if="*{pageNum gt 2}">
  62. <a th:href="'more-7-' + *{pageNum - 2} + '-12.html'" th:text="*{pageNum - 2}"></a>
  63. </li>
  64. <li th:if="*{pageNum gt 1}">
  65. <a th:href="'more-7-' + *{pageNum - 1} + '-12.html'" th:text="*{pageNum - 1}"></a>
  66. </li>
  67. <li class="active"><a href="#" th:text="*{pageNum}"></a></li>
  68. <li th:if="*{pageNum lt totalPage - 1}">
  69. <a th:href="'more-7-' + *{pageNum + 1} + '-12.html'" th:text="*{pageNum + 1}"></a>
  70. </li>
  71. <li th:if="*{pageNum lt totalPage - 2}">
  72. <a th:href="'more-7-' + *{pageNum + 2} + '-12.html'" th:text="*{pageNum + 2}"></a>
  73. </li>
  74. <li class="ellipsis" th:if="*{pageNum lt totalPage - 3}"><span>···</span></li>
  75. <li th:if="*{pageNum lt totalPage}">
  76. <a th:href="'more-7-' + *{totalPage} + '-12.html'" th:text="*{totalPage}"></a>
  77. </li>
  78. <li th:if="*{pageNum lt totalPage}"><a th:href="'more-7-' + *{pageNum + 1} + '-12.html'">»</a></li>
  79. </ul>
  80. <div class="tool">
  81. <div class="total">共<span th:text="*{totalPage}"></span>页</div>
  82. <div class="jump">
  83. <div class="pagenum-input">跳至<input type="text" value="1"/>页</div>
  84. <a href="#" class="jump-btn">点击跳转</a>
  85. </div>
  86. </div>
  87. </div>
  88. </th:block>
  89. <!-- 引用公共底部 -->
  90. <template th:replace="encyclopedia/components/footer"></template>
  91. </body>
  92. </html>