newsDetail.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:th="http://www.thymeleaf.org"
  4. xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  5. <head th:replace="common::header(~{::title},~{::link})">
  6. <title>新闻详情</title>
  7. <link th:href="${portalHost + '/vendors.css'}" rel="stylesheet">
  8. <link th:href="${portalHost + '/thinkTank/policyDetail.css'}" rel="stylesheet">
  9. </head>
  10. <body>
  11. <header>
  12. <div th:replace="common::nav('news','newsDetail')"></div>
  13. </header>
  14. <div id="policyDetail">
  15. <div id="policy_content">
  16. <div class="content_left" th:each="newsDetail:${newsDetail}">
  17. <h3 th:text="${newsDetail.title}?${newsDetail.title}:''"></h3>
  18. <div class="small_title">
  19. <span>时间:<span th:text="${newsDetail.createTime}?${newsDetail.createTimeS}:''"></span></span>
  20. <span>来源:<span th:text="${newsDetail.source}?${newsDetail.source}:行业新闻"></span></span>
  21. </div>
  22. <div th:if="${newsDetail.titleImg != null and newsDetail.titleImg !=''}" class="content_img">
  23. <img th:src="${avatarUploadHost+newsDetail.titleImg}" alt="" />
  24. </div>
  25. <p th:utext="${newsDetail.content}?${newsDetail.content}:'暂无内容'">
  26. </p>
  27. <h5 class="text_end">文章来自:</h5>
  28. <a th:href="${newsDetail.sourceUrl}?${newsDetail.sourceUrl}:'www.jishutao.com'"></a>
  29. <hr />
  30. <h5 >本文关键词:</h5>
  31. <span>高新</span> <span>信息</span> <span>技术</span>
  32. <hr />
  33. <!-- <div class="next_div">
  34. <span class="rf">
  35. <h5>下一篇:</h5> <a href="#">科技探索</a>
  36. </span> <span>
  37. <h5>上一篇:</h5> <a href="#">探索科技</a>
  38. </span>
  39. </div> -->
  40. <hr />
  41. <h5>推荐文章:</h5>
  42. <div th:each="news:${news}">
  43. <span ><a th:href="@{/portal/news/newsDetail(id=${news.id})}" th:text="${news.title}?${news.title}:'暂无更多内容'"></a></span>
  44. </div>
  45. </div>
  46. <div class="contetn_right" >
  47. <div class="right_title">
  48. <div>热点资讯</div>
  49. </div>
  50. <div th:each="newsList:${newsList}">
  51. <h5 ><a th:href="@{/portal/news/newsDetail(id=${newsList.id})}" th:text="${newsList.title}?${newsList.title}:''"></a></h5>
  52. <!-- <img th:src="${avatarUploadHost+newsDetail.titleImg}" alt="" /> -->
  53. <p th:text="${newsList.createTime}?${newsList.DataS}:''"></p>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <footer>
  59. <div th:replace="common::copyright"></div>
  60. </footer>
  61. <div th:replace="common::footer(~{::script})">
  62. <script type="text/javascript" th:src="${portalHost + '/vendors.js'}"></script>
  63. <script type="text/javascript"
  64. th:src="${portalHost + '/thinkTank/policyDetail.js'}"></script>
  65. </div>
  66. </body>
  67. </html>