list_news.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <!-- 禁止百度转码 -->
  8. <meta http-equiv="Cache-Control" content="no-siteapp">
  9. <!-- uc强制竖屏 -->
  10. <meta name="screen-orientation" content="portrait">
  11. <!-- QQ强制竖屏 -->
  12. <meta name="x5-orientation" content="portrait">
  13. <title>{dreamer-cms:category field="typenamecn" /}_{dreamer-cms:global name="title"/}</title>
  14. <meta name="Keywords" content="{dreamer-cms:global name="keywords"/}" />
  15. <meta name="Description" content="{dreamer-cms:global name="describe"/}" />
  16. <link rel="stylesheet" href="{dreamer-cms:template /}css/iconfont/iconfont.css">
  17. <link rel="stylesheet" href="{dreamer-cms:template /}css/reset.css">
  18. <link rel="stylesheet" href="{dreamer-cms:template /}css/animate.css">
  19. <link rel="stylesheet" href="{dreamer-cms:template /}css/style.css">
  20. <link rel="stylesheet" href="{dreamer-cms:template /}scripts/theme/default/layer.css">
  21. <script src="{dreamer-cms:template /}scripts/jquery-1.11.3.min.js"></script>
  22. <script src="{dreamer-cms:template /}scripts/jquery.SuperSlide.2.1.1.js"></script>
  23. <script src="{dreamer-cms:template /}scripts/js.js"></script>
  24. <script src="{dreamer-cms:template /}scripts/layer.js"></script>
  25. </head>
  26. <body>
  27. <div class="productNews" id="productNews">
  28. {dreamer-cms:include file='inc/header.html'/}
  29. {dreamer-cms:sql sql="select image_path as litpic from system_archives where id = [ffa10f74ca384bc0aae3ab3e1c1beebc]"}
  30. <div class="publicHeader2 min_wrapper_1200" style="background:url(/resources/uploads/[field:litpic /]) no-repeat;"></div>
  31. {/dreamer-cms:sql}
  32. <div class="wrapper_1200">
  33. {dreamer-cms:location lang="cn" /}
  34. <div class="sortNav">
  35. {dreamer-cms:channel typeid="96nbp5pc" showall="true" type="son"}
  36. <div class="item item[field:autoindex/] on">
  37. <div class="active on"></div>
  38. <div class="active1 animated"></div>
  39. <a href="[field:typeurl/]"><div class="name line1">[field:typenamecn /]</div></a>
  40. <div class="infor line1">[field:description /]</div>
  41. </div>
  42. {/dreamer-cms:channel}
  43. </div>
  44. </div>
  45. <div class="conter wrapper_1200">
  46. <div class="left">
  47. <div class="publicLists">
  48. <div class="publicList">
  49. {dreamer-cms:pagelist}
  50. <div class="item details" data-id="[field:id/]">
  51. <div class="pictrue dis"><a href="[field:arcurl/]"><img src="[field:litpic/]"></a></div>
  52. <div class="text dis">
  53. <div class="name">
  54. <a href="[field:arcurl/]">[field:title/]</a>
  55. </div>
  56. <div class="icons">
  57. <span class="iconfont iconshijian"></span>[field:createtime function="format('yyyy-MM-dd hh:mm:ss')" /]
  58. <span class="iconfont iconliulan"></span>[field:clicks /]
  59. </div>
  60. <div class="infor"><a href="[field:arcurl/]">[field:remark function="substring(0,75,'...')" /]</a></div>
  61. </div>
  62. </div>
  63. {/dreamer-cms:pagelist}
  64. </div>
  65. <div class="listpages" >
  66. {dreamer-cms:pagination /}
  67. </div>
  68. </div>
  69. </div>
  70. <div class="right">
  71. <div class="newsHead">
  72. <div class="title">新闻头条</div>
  73. <div class="list">
  74. {dreamer-cms:list typeid="96nbp5pc" pagenum="1" pagesize="10" cascade="true"}
  75. <div class="item details" data-id="[field:id/]">
  76. <div class="dis num">[field:autoindex /]</div>
  77. <div class="dis text">
  78. <div class="line1"><a href="[field:arcurl/]">[field:title/]</a></div>
  79. <div class="infor">[field:remark function="substring(0,75,'...')" /]</div>
  80. </div>
  81. </div>
  82. {/dreamer-cms:list}
  83. </div>
  84. </div>
  85. <div class="advers" >
  86. {dreamer-cms:sql sql="select image_path as litpic from system_archives where id = [42bf4ceb852e4a1cb641db209a211439]"}
  87. <img src="/resources/uploads/[field:litpic /]">
  88. {/dreamer-cms:sql}
  89. </div>
  90. <div class="technology">
  91. <div class="title">行业新闻</div>
  92. <div class="list">
  93. {dreamer-cms:list typeid="6j0r9qzq" pagenum="1" pagesize="10"}
  94. <div class="item details" data-id="[field:id/]">
  95. <div class="name line1"><a href="[field:arcurl/]">[field:title/]</a></div>
  96. <div class="time">[field:createtime function="format('MM-dd hh:mm:ss')" /]</div>
  97. </div>
  98. {/dreamer-cms:list}
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="clearfix"></div>
  104. <div id="advers" class="min_wrapper_1200">
  105. <div class="wrapper_1200 wrapper1">免费体验后台管理系统<a href="/admin" target="_blank" title="立即体验">立即体验</a></div>
  106. </div>
  107. {dreamer-cms:include file="inc/footer.html" /}
  108. </div>
  109. {dreamer-cms:include file="inc/service.html" /}
  110. <script>
  111. $(function () {
  112. $('.newsHead .list .item').on('mouseenter',function () {
  113. $(this).addClass('on').siblings().removeClass('on');
  114. });
  115. $('.sortNav .item').on('click',function () {
  116. $(this).addClass('on').siblings().removeClass('on');
  117. $(this).find('.active').addClass('on').parent().siblings().find('.active').removeClass('on');
  118. $(this).find('.active1').hide();
  119. var content_idnex = $('.sortNav .item').index(this);
  120. $('.publicLists').eq(content_idnex).show().siblings().hide();
  121. var c=$('.publicLists .publicList').eq(content_idnex).children().length;
  122. var str=c/pageSize;
  123. var r = /^[0-9]*[1-9][0-9]*$/;  //正整数
  124. var s=r.test(str); //str为你要判断的字符 执行返回结果 true 或 false
  125. if(!s){
  126. $('.publicLists .no_more').eq(content_idnex).show();
  127. $('.publicLists .outline').eq(content_idnex).hide();
  128. }else{
  129. $('.publicLists .outline').eq(content_idnex).show();
  130. $('.publicLists .no_more').eq(content_idnex).hide();
  131. }
  132. });
  133. $('.sortNav .item').hover(function () {
  134. $(this).find('.active').removeClass('on');
  135. $(this).find('.active1').addClass('slideInDown').show();
  136. },function () {
  137. $(this).find('.active1').removeClass('slideInDown').hide();
  138. });
  139. });
  140. </script>
  141. </body>
  142. </html>