baefa5c3 by 任超

style:新闻动态

1 parent 772380da
1 $(function () { 1 layui.use('element', function () {
2 layui.use('element', function () {
3 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
4 }); 3 });
5 LoadNewsData(); 4 $(function () {
5 // LoadNewsData();
6 HotArticle(); 6 HotArticle();
7 PolicyHotArticle(); 7 PolicyHotArticle();
8 addTabs('#news'); 8 addTabs('#news');
......
...@@ -60,53 +60,4 @@ ...@@ -60,53 +60,4 @@
60 <script type="text/javascript" src="../staticJs/common.js"></script> 60 <script type="text/javascript" src="../staticJs/common.js"></script>
61 <script type="text/javascript" src="../staticJs/down.js"></script> 61 <script type="text/javascript" src="../staticJs/down.js"></script>
62 <script type="text/javascript" src="../staticJs/xwdt.js"></script> 62 <script type="text/javascript" src="../staticJs/xwdt.js"></script>
63 <script id="demo" type="text/html">
64 {{# layui.each(d.list, function(index, item){ }}
65 {{# if(item.isTop == 1 ){ }}
66 <li class="sticky">
67 {{# } }}
68 {{# if(item.isTop != 1 ){ }}
69 <li>
70 {{# } }}
71 <a class="left-top" title=" {{ item.headline }}" href='./news/{{item.id}}.html' target="_blank">
72 {{ item.headline }}
73 </a>
74 <a class="xw" href='./news/{{item.id}}.html' target="_blank">
75 {{# if(item.isTop == 1 ){ }}
76 <img class="istop" src="../staticImages/ding.png">
77 {{# } }}
78 <div class="newsCon">
79 <div class="xw-left">
80 {{# if(item.preViewUrl != null ){ }}
81 <img src="{{ item.preViewUrl }}">
82 {{# } }}
83 </div>
84 <div class="xw-right">
85 {{# if(item.summary !== null){ }}
86 {{ item.summary }}
87 {{# } }}
88 </div>
89 </div>
90 <div class="newsBottom">
91 <div class="newIcon">
92 <svg class="icon svg-icon" aria-hidden="true">
93 <use xlink:href="#iconchakan"></use>
94 </svg>
95 <span> {{ item.pageviews }}</span>
96 </div>
97 <div class="newIcon">
98 <svg class="icon svg-icon" aria-hidden="true">
99 <use xlink:href="#iconpinglun"></use>
100 </svg>
101 <span>{{ item.commentnum }}</span>
102 </div>
103 <div class="left-buttom-date">
104 {{ CutDate(item.publishTime) }}
105 </div>
106 </div>
107 </a>
108 </li>
109 {{# }); }}
110 </script>
111
112 </html> 63 </html>
...\ No newline at end of file ...\ No newline at end of file
......