4926_10129_backup.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <html>
  2. <head>
  3. <title>${wn.name}-${website.seoTitle}</title>
  4. <website-include page="link_pc" />
  5. </head>
  6. <body style="background-color:#ecf2f6">
  7. <div class="container">
  8. <div style="height: 15px;background-color: #fff;"></div>
  9. <div class="header">
  10. <website-include page="head_pc" />
  11. <div class="header-nav wrap">
  12. <website-include page="nav_pc" />
  13. </div>
  14. </div>
  15. <!-- banner 大图 -->
  16. <div class="banner sublevel-banner">
  17. <div class="sublevel-banner-img">
  18. <img src="${wn.backgroundImage}" alt="请在后台上传此栏目的背景图片">
  19. </div>
  20. <div class="wrap">
  21. <div class="sublevel-message">
  22. <h3>
  23. ${wn.title}
  24. </h3>
  25. <p>
  26. ${wn.desc}
  27. </p>
  28. </div>
  29. </div>
  30. <div class="banner-line1"></div>
  31. <div class="banner-line2"></div>
  32. </div>
  33. <!-- 栏目标题、面包屑 -->
  34. <website-include page="article_nav_pc" />
  35. <!-- 列表 -->
  36. <div class="column-content">
  37. <ul class="column-list wrap">
  38. <c:if test="${articleList.size() == 0}">
  39. 暂无内容
  40. </c:if>
  41. <c:forEach items="${articleList}" var="item">
  42. <li>
  43. <a href="${item.url}" target="_blank">
  44. <h3>
  45. ${item.title}
  46. </h3>
  47. <dl>
  48. <c:if test="${not empty item.thumbnail}">
  49. <dt>
  50. <img src="${item.thumbnail}" alt="未上传图片">
  51. </dt>
  52. </c:if>
  53. <dd>
  54. <p class="column-list-text">
  55. ${item.desc}
  56. </p>
  57. <p class="column-list-date">
  58. <i class="time">
  59. ${item.release_time}
  60. </i>
  61. </p>
  62. </dd>
  63. </dl>
  64. </a>
  65. </li>
  66. </c:forEach>
  67. </ul>
  68. <!-- 分页 -->
  69. <div id="layPage">
  70. </div>
  71. </div>
  72. <!-- 底部 -->
  73. <website-include page="footer_pc" />
  74. </div>
  75. </body>
  76. <website-include page="script_pc" />
  77. <script>
  78. var isIndex = true;
  79. utils.formatDateByEls("yyyy-MM-dd hh:mm", $(".time"));
  80. layui.use('laypage', function() {
  81. var laypage = layui.laypage;
  82. laypage.render({
  83. elem: 'layPage',
  84. curr: '${pb.currentPageNo}',
  85. count: "${pb.rowCount}",
  86. jump: function(obj, first) {
  87. if (!first) {
  88. location.href = location.pathname + "?n=" + obj.curr;
  89. }
  90. }
  91. });
  92. });
  93. // function searchFun(){
  94. // $(".search-wrap").slideDown("fast");
  95. // }
  96. // $("body").click(function (e) {
  97. // if (!$(e.target).closest("#btn,#emoji_icon").length) {
  98. // $("#emoji_icon").hide();
  99. // }
  100. // });
  101. $(".search-icon").click(function(){
  102. $(".search-wrap").slideDown("fast");
  103. })
  104. $(document).click(function () {
  105. $(".search-wrap").slideUp("fast");
  106. });
  107. $(".search-wrap").on("click", function (event) {
  108. console.log($(this))
  109. //取消事件冒泡
  110. var e = arguments.callee.caller.arguments[0] || event; //若省略此句,下面的e改为event,IE运行可以,但是其他浏览器就不兼容
  111. if (e && e.stopPropagation) {
  112. // this code is for Mozilla and Opera
  113. e.stopPropagation();
  114. } else if (window.event) {
  115. // this code is for IE
  116. window.event.cancelBubble = true;
  117. }
  118. });
  119. </script>
  120. </html>