newsDetail.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <div th:replace="common::nav('news','newsDetail')"></div>
  12. <div id="policyDetail">
  13. <div id="policy_content">
  14. <div class="content_left" th:each="newsDetail:${newsDetail}">
  15. <h3 th:text="${newsDetail.title}?${newsDetail.title}:''"></h3>
  16. <div class="small_title">
  17. <span>时间:<span th:text="${newsDetail.createTime}?${#dates.format(newsDetail.createTime,'yyyy-MM-dd')}:''"></span></span>
  18. <span>来源:<span th:text="${newsDetail.source}?${newsDetail.source}:行业新闻"></span></span>
  19. </div>
  20. <div th:each="img:${imgs}" class="content_img">
  21. <img th:src="${avatarUploadHost+img}" alt="" />
  22. </div>
  23. <p th:utext="${newsDetail.content}?${newsDetail.content}:'暂无内容'">
  24. </p>
  25. <h5 class="text_end">文章来自:</h5>
  26. <a th:href="${newsDetail.sourceUrl}?${newsDetail.sourceUrl}:'www.jishutao.com'"></a>
  27. <hr />
  28. <h5 th:if="${hasHighTech || hasPatent || hasCopyright || hasTechProj}">关联业务:</h5>
  29. <span th:if="${hasHighTech}"><a th:href="${basePath + '/user/account/services.html#contract'}" target="_blank">高企认证</a></span>
  30. <span th:if="${hasPatent}"><a th:href="${basePath + '/user/account/services.html#contract'}" target="_blank">专利申请</a></span>
  31. <span th:if="${hasCopyright}"><a th:href="${basePath + '/user/account/services.html#contract'}" target="_blank">软著申请</a></span>
  32. <span th:if="${hasTechProj}"><a th:href="${basePath + '/user/account/services.html#contract'}" target="_blank">科技项目申请</a></span>
  33. <hr />
  34. <!-- <div class="next_div">
  35. <span class="rf">
  36. <h5>下一篇:</h5> <a href="#">科技探索</a>
  37. </span> <span>
  38. <h5>上一篇:</h5> <a href="#">探索科技</a>
  39. </span>
  40. </div> -->
  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},type=${type})}" th:text="${newsList.title}?${newsList.title}:''"></a></h5>
  52. <!-- <img th:src="${avatarUploadHost+newsDetail.titleImg}" alt="" /> -->
  53. <p th:text="${newsList.createTime}?${#dates.format(newsList.createTime,'yyyy-MM-dd')}:''"></p>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <footer>
  59. <div th:replace="common::copyright"></div>
  60. <div th:replace="common::login"></div>
  61. </footer>
  62. <div th:replace="common::footer(~{::script})">
  63. <script type="text/javascript" th:src="${portalHost + '/vendors.js'}"></script>
  64. <script type="text/javascript"
  65. th:src="${portalHost + '/thinkTank/policyDetail.js'}"></script>
  66. </div>
  67. </body>
  68. </html>