baefa5c3 by 任超

style:新闻动态

1 parent 772380da
$(function () {
layui.use('element', function () {
layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
});
LoadNewsData();
});
$(function () {
// LoadNewsData();
HotArticle();
PolicyHotArticle();
addTabs('#news');
......
......@@ -60,53 +60,4 @@
<script type="text/javascript" src="../staticJs/common.js"></script>
<script type="text/javascript" src="../staticJs/down.js"></script>
<script type="text/javascript" src="../staticJs/xwdt.js"></script>
<script id="demo" type="text/html">
{{# layui.each(d.list, function(index, item){ }}
{{# if(item.isTop == 1 ){ }}
<li class="sticky">
{{# } }}
{{# if(item.isTop != 1 ){ }}
<li>
{{# } }}
<a class="left-top" title=" {{ item.headline }}" href='./news/{{item.id}}.html' target="_blank">
{{ item.headline }}
</a>
<a class="xw" href='./news/{{item.id}}.html' target="_blank">
{{# if(item.isTop == 1 ){ }}
<img class="istop" src="../staticImages/ding.png">
{{# } }}
<div class="newsCon">
<div class="xw-left">
{{# if(item.preViewUrl != null ){ }}
<img src="{{ item.preViewUrl }}">
{{# } }}
</div>
<div class="xw-right">
{{# if(item.summary !== null){ }}
{{ item.summary }}
{{# } }}
</div>
</div>
<div class="newsBottom">
<div class="newIcon">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconchakan"></use>
</svg>
<span> {{ item.pageviews }}</span>
</div>
<div class="newIcon">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconpinglun"></use>
</svg>
<span>{{ item.commentnum }}</span>
</div>
<div class="left-buttom-date">
{{ CutDate(item.publishTime) }}
</div>
</div>
</a>
</li>
{{# }); }}
</script>
</html>
\ No newline at end of file
......